Thread (8 messages) flat view 8 messages, 4 authors, 2012-04-10

Re: [PATCH] video:uvesafb: Fix oops that uvesafb try to execute NX-protected page

From: Alan Cox <hidden>
Date: 2012-03-27 13:30:25
Also in: lkml

On Tue, 27 Mar 2012 18:01:36 +0800
Wang YanQing [off-list ref] wrote:
Ok! I try to check pcibios_enabled first, but get some opposition by Alan Cox,
but I want to make thing work and fix the oops, so I choice the simple way to
check the (__supported_pte_mask & _PAGE_NX) instead of to check this variable plus
pci kernel boot parameter, pci mmconfig works or not, and more, and more. It is not
the best method, but it works and maybe all will feel happy.
Okay let me ask the obvious question - why is it not the best method ?

Apart from adding a helper in the includes for the arch code of

	static inline is_nx_enabled(void)
	{
		return !!(__supported_pte_mask & _PAGE_NX);
	}

is there anything else it lacks ?

Yes ideally we'd set the relevant ROM areas executable, but for a simple
fix is there anything else that's a problem with it ?

Alan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help