login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
6
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Siarhei Liakh
Subject:
Date: Tuesday, April 6, 2010 - 7:51 am
On Sat, Apr 3, 2010 at 2:43 AM, Suresh Siddha <suresh.b.siddha@intel.com> wrote:
quoted text
> 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. --
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
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Trent Waddington
Re: Gaming Interface
Pekka Enberg
Re: latest -git: suspend: unable to handle kernel paging request (was Re: no_conso...
Dan Carpenter
Re: [patch] dma-debug: off by one issue
Adrian McMenamin
time_after - what on earth???
Paul E. McKenney
Re: [PATCH, RFC] v4 scalable classic RCU implementation
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Christian Stimming
git-gui: Fix broken revert confirmation.
Junio C Hamano
Re: git-svnimport
Mark Burton
Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
linux-netdev
:
Nick Piggin
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
i7core_edac: Probe on Xeons eariler
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Ryan McBride
Re: Packets Per Second Limit?
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Marco Peereboom
Re: Singularity OS
Colocation donated by:
Syndicate