Re: [PATCH] x86: make SMP locks handling interact properly with CONFIG_DEBUG_RODATA (2nd try)

Jan Beulich
2007-07-04T16:29:09Z

>>> Jeremy Fitzhardinge <jeremy@goop.org> 04.07.07 17:41 >>>
>Jan Beulich wrote:
>> Instead of suppressing the change of .text to become readonly, make
>> the SMP locks patching code properly adjust/restore the page access
>> rights.
>>
>
>I guess we'll need to do the same thing for paravirt_ops patching?

No, the patch already does this (as long as there no code to do that other
than in alternatives.c).

>> On x86-64 additionally remove all mappings past the kernel image, and
>> remove leftovers from the removal of the more general (but abandoned)
>> SMP alternatives.
>>
>
>I'd already posted a patch to remove smp alternatives. I thought it had
>been merged already, but I guess it's in Andi's queue.

Oh, sorry, I forgot to remove that part of the comment after merging up to
2.6..22-rcX.

Jan