login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
22
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX protection for kernel data)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Ingo Molnar
Subject:
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX protection for kernel data)
Date: Monday, November 22, 2010 - 1:07 am
* Lin Ming <ming.m.lin@intel.com> wrote:
quoted text
> Hi, all > > Current -tip tree(92c883a) fail to resume after suspend to mem. > Bisect to commit 5bd5a45(x86: Add NX protection for kernel data). > > commit 5bd5a452662bc37c54fb6828db1a3faf87e6511c > Author: Matthieu Castet <castet.matthieu@free.fr> > Date: Tue Nov 16 22:31:26 2010 +0100 > > x86: Add NX protection for kernel data > > > I did some debug and found the regression is caused by below line. > > - set_memory_nx(rodata_start, (end - rodata_start) >> PAGE_SHIFT); > + set_memory_nx(rodata_start, (kernel_end - rodata_start) >> PAGE_SHIFT); > > In my machine, > rodata_start=0xffffffff81a00000, end=0xffffffff81e00000, kernel_end=0xffffffff82200000 > > Without this commit, kernel page table dumps > > ---[ High Kernel Mapping ]--- > .... > 0xffffffff81a00000-0xffffffff81c00000 2M ro PSE GLB NX pmd > 0xffffffff81c00000-0xffffffff81d91000 1604K ro GLB NX pte > 0xffffffff81d91000-0xffffffff81e00000 444K ro GLB NX pte > 0xffffffff81e00000-0xffffffff82000000 2M RW PSE GLB x pmd > 0xffffffff82000000-0xffffffff8200c000 48K RW GLB x pte > 0xffffffff8200c000-0xffffffff82100000 976K RW GLB x pte > 0xffffffff82100000-0xffffffff82200000 1M RW GLB x pte > ..... > > With this commit, kernel page table dumps > > ---[ High Kernel Mapping ]--- > .... > 0xffffffff81a00000-0xffffffff81c00000 2M ro PSE GLB NX pmd > 0xffffffff81c00000-0xffffffff81d91000 1604K ro GLB NX pte > 0xffffffff81d91000-0xffffffff81e00000 444K ro GLB NX pte > 0xffffffff81e00000-0xffffffff82000000 2M RW PSE GLB NX pmd > 0xffffffff82000000-0xffffffff8200c000 48K RW GLB NX pte > 0xffffffff8200c000-0xffffffff82100000 976K RW GLB NX pte > 0xffffffff82100000-0xffffffff82200000 1M RW GLB NX pte > ..... > > The only difference is 0xffffffff81e00000(end) to 0xffffffff82200000(kernel_end) is set to NX. > > I guess this range code is used by resume wakeup code. So setting it to NX causes problem. > > Any idea?
Yeah, the resume area is a trampoline, it needs to be executable. Thanks, Ingo --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
-tip tree resume fail, bisect to 5bd5a45(x86: Add NX prote ...
, Lin Ming
, (Mon Nov 22, 12:23 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, Ingo Molnar
, (Mon Nov 22, 1:07 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, Andi Kleen
, (Mon Nov 22, 2:20 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, castet.matthieu
, (Mon Nov 22, 3:29 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, Andi Kleen
, (Mon Nov 22, 3:47 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, Peter Zijlstra
, (Mon Nov 22, 6:03 am)
[tip:x86/security] x86: Resume trampoline must be executable
, tip-bot for Lin Ming
, (Mon Nov 22, 6:42 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, castet.matthieu
, (Mon Nov 22, 9:29 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, Peter Zijlstra
, (Mon Nov 22, 9:35 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, Andi Kleen
, (Mon Nov 22, 9:42 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, mat
, (Tue Nov 23, 3:55 pm)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, mat
, (Fri Nov 26, 10:31 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, Lin Ming
, (Fri Nov 26, 4:39 pm)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, Lin Ming
, (Mon Nov 29, 10:00 pm)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, Peter Zijlstra
, (Tue Nov 30, 4:27 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, Lin Ming
, (Tue Nov 30, 5:15 pm)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, matthieu castet
, (Fri Dec 24, 10:26 am)
Re: -tip tree resume fail, bisect to 5bd5a45(x86: Add NX p ...
, Lin Ming
, (Sun Dec 26, 7:10 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Hugh Dickins
Re: Linux 2.6.26-rc1 - pgtable_32.c:178 pmd_bad
Bernhard Beck
[PATCH 001/001] usb-serial: Add ThinkOptics WavIT
Oleg Nesterov
Re: [PATCH 4/5] don't panic if /sbin/init exits or killed
Greg KH
[patch 07/21] rtc-pcf8563: detect polarity of century bit automatically
git
:
Jonathan del Strother
Re: [PATCH] Fixing path quoting issues
Gerrit Pape
[PATCH] fix skipping merge-order test with NO_OPENSSL=1.
Linus Torvalds
Re: Implementing branch attributes in git config
Johannes Schindelin
Re: Trying to use git-filter-branch to compress history by removing large, obsolet...
Gerrit Pape
[PATCH] hooks--update: fix test for properly set up project description file
linux-netdev
:
David Miller
Re: [PATCH 04/15] tg3: Preserve LAA when device control is released
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Sven Wegener
[PATCH] ipvs: Add missing locking during connection table hashing and unhashing
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
Stephen Hemminger
[PATCH 2/2] sky2: fix transmit state on resume
git-commits-head
:
Linux Kernel Mailing List
[SCSI] scsi ioctl: fix kernel-doc warning
Linux Kernel Mailing List
ALSA: HDA - Correct trivial typos in comments.
Linux Kernel Mailing List
i2c-viapro: Add support for SMBus Process Call transactions
Linux Kernel Mailing List
i2c: Documentation: upgrading clients HOWTO
Linux Kernel Mailing List
[PATCH] fix sysctl_nr_open bugs
openbsd-misc
:
Die Gestalt
Re: How to re-build openssl with SHA1 support?
Edwin Eyan Moragas
Re: managing routes for multiple PPPoE connections
Brian Candler
Re: OBSD's perspective on SELinux
Jonathan Schleifer
Why is getaddrinfo breaking POSIX?
Predrag Punosevac
Re: Kernel developers guide/tutorial
Colocation donated by:
Syndicate