Re: [tip:x86/mm] x86, mm: NX protection for kernel data

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: matthieu castet
Date: Saturday, March 13, 2010 - 5:12 am

Hi,


This may be stupid but :


0xc1600000 2MB page is in 0xc1600000-0xc1800000 range.  pgd_lock (0xc17ebdac) seems to be in that range.

You change attribute from (low=0x16001e3, high=0x0) to (low=0x16001e1, high=0x80000000). IE you set
NX bit (bit 63), but you also clear R/W bit (bit 2). So the page become read only, but you are using a lock
inside this page that need RW access. So you got a page fault.


Now I don't know what should be done.
Is that normal we set the page RO ?

Matthieu
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [tip:x86/mm] x86, mm: NX protection for kernel data, matthieu castet, (Sat Mar 13, 5:12 am)
Re: [tip:x86/mm] x86, mm: NX protection for kernel data, Siarhei Liakh, (Mon Mar 15, 11:20 am)
Re: [tip:x86/mm] x86, mm: NX protection for kernel data, Siarhei Liakh, (Mon Mar 15, 2:40 pm)