Thread (1 message) 1 message, 1 author, 2014-08-25

[PATCHv3 1/7] arm64: Treat handle_arch_irq as a function pointer

From: Laura Abbott <hidden>
Date: 2014-08-25 18:23:53

On 8/22/2014 10:41 PM, Kees Cook wrote:


On Wed, Aug 20, 2014 at 6:20 PM, Laura Abbott <lauraa@codeaurora.org
<mailto:lauraa@codeaurora.org>> wrote:

    handle_arch_irq isn't actually text, it's just a function pointer.
    It doesn't need to be stored in the text section and doing so
    causes problesm if we ever want to make the kernel text read only.
    Declare handle_arch_irq as a proper function pointer stored in
    the data section.

    Signed-off-by: Laura Abbott <lauraa@codeaurora.org
    <mailto:lauraa@codeaurora.org>>


Out of curiosity, did you find these cases via inspection, or were you
debugging faults after making stuff RO/NX?

These were all faults after making things RO/NX. It was a good way to know
that the code was working as expected.

Laura

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help