login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
5
Re: [PATCH 1/4] [tip:x86/mm] Correcting improper large page preservation
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Siarhei Liakh
Subject:
Re: [PATCH 1/4] [tip:x86/mm] Correcting improper large page preservation
Date: Wednesday, May 5, 2010 - 11:14 am
On Tue, Apr 6, 2010 at 10:51 AM, Siarhei Liakh <sliakh.lkml@gmail.com> wrote:
quoted text
> On Sat, Apr 3, 2010 at 2:43 AM, Suresh Siddha <suresh.b.siddha@intel.com> wrote: >> On Wed, 2010-03-31 at 18:59 -0700, Siarhei Liakh wrote: >>> + /* >>> + * .data and .bss should always be writable. >>> + */ >>> + if ((within(pfn, __pa((unsigned long)_sdata) >> PAGE_SHIFT, >>> + __pa((unsigned long)_edata) >> PAGE_SHIFT)) || >>> + (within(pfn, __pa((unsigned long)__bss_start) >> PAGE_SHIFT, >>> + __pa((unsigned long)__bss_stop) >> PAGE_SHIFT))) { >>> + pgprot_val(required) |= _PAGE_RW; >>> + } >> >> I have reviewed this patch and the only comment I have is: >> >> On 64bit kernels, kernel text/data mapping and kernel identity mappings >> are different virtual addresses mapping to same pfn ranges. For the >> data/bss pages, does it help (in identifying certain data corruptions >> more easily) in making the kernel identity mapping to be set to >> read-only and enforce the need of RW only for the kernel data mappings. >> >> Or is there some obscure code that uses something like >> __va(__pa(data_symbol)) and writes to it? >> >> If not, we can remove the __pa() constructs above and use the addr for >> comparisons. > > Done. > Patch V2 have been posted.
Does anyone have any feedback on the whole kernel RO/NX patch set? Or should I re-post all 4 patches one more time? Thank you. --
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:
[PATCH 1/4] [tip:x86/mm] Correcting improper large page pr ...
, Siarhei Liakh
, (Wed Mar 31, 6:59 pm)
Re: [PATCH 1/4] [tip:x86/mm] Correcting improper large pag ...
, Suresh Siddha
, (Fri Apr 2, 11:43 pm)
[No subject]
, Siarhei Liakh
, (Tue Apr 6, 7:51 am)
Re: [PATCH 1/4] [tip:x86/mm] Correcting improper large pag ...
, Siarhei Liakh
, (Wed May 5, 11:14 am)
Re: [PATCH 1/4] [tip:x86/mm] Correcting improper large pag ...
, Ingo Molnar
, (Wed May 5, 11:19 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jarek Poplawski
Re: Network slowdown due to CFS
Srikar Dronamraju
[PATCH v2 11/11] Uprobes traceevents patch.
jimmy bahuleyan
Re: how about mutual compatibility between Linux's GPLv2 and GPLv3?
Greg KH
[003/129] xen: handle events as edge-triggered
git
:
Eyvind Bernhardsen
Re: Where has "git ls-remote" reference pattern matching gone?
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Todd Zullinger
Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters
Shawn O. Pearce
Re: Switching from CVS to GIT
Santi Béjar
Re: How to use git-fmt-merge-msg?
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
[Bluetooth] Make use of the default link policy settings
Linux Kernel Mailing List
x86/doc: mini-howto for using earlyprintk=dbgp
Linux Kernel Mailing List
geode lists are subscriber only
freebsd-current
:
Michael Moll
Re: Unable to boot on ECS K7S5A
=?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?=
Re: Root exploit for FreeBSD
FreeBSD Tinderbox
[head tinderbox] failure on ia64/ia64
Andrew Thompson
Re: USB2 makes moused insane
Garrett Cooper
Re: linux 3d applications keep crashing
linux-netdev
:
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Ramkrishna Vepa
[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Florian Fainelli
[PATCH] cpmac: fix all checkpatch errors and warnings
Alexey Dobriyan
[PATCH v2 2/6] netns ct: per-netns /proc/net/stat/nf_conntrack , /proc/net/stat/ip...
Colocation donated by:
Syndicate