grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-static variables and nested function pointers [bug #28392]


From: Seth Goldberg
Subject: Re: Non-static variables and nested function pointers [bug #28392]
Date: Wed, 23 Dec 2009 19:52:56 -0800 (PST)
User-agent: Alpine 2.00 (GSO 1167 2008-08-23)


Quoting Grégoire Sutre, who wrote the following on Thu, 24 Dec 2009:

Seth Goldberg wrote:

Exactly -- the presence of the execstack attribute in the segment is merely a request -- the kernel is free to discard it, and many OSes do, as you've found :).

The problem is more complex: I tried a simple example with a pointer to a nested function, and it runs without any segfault on NetBSD/i386. This would suggest that, by default, the stack is executable -- at least if trampolines are used?


I forgot to add: the NX bit is only supported when PAE mode is enabled on a 32-bit kernel, so if NetBSD/i386 isn't using PAE mode (for whatever reason), the NX bit won't be supported.

 --S

reply via email to

[Prev in Thread] Current Thread [Next in Thread]