[PATCHv3 1/7] arm64: Treat handle_arch_irq as a function pointer
Laura Abbott
lauraa at codeaurora.org
Mon Aug 25 11:23:53 PDT 2014
On 8/22/2014 10:41 PM, Kees Cook wrote:
>
>
>
> On Wed, Aug 20, 2014 at 6:20 PM, Laura Abbott <lauraa at codeaurora.org
> <mailto:lauraa at 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 at codeaurora.org
> <mailto:lauraa at 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
More information about the linux-arm-kernel
mailing list