Re: 2.6.10-mm2: panic when munmap()ping the stack

From: Frank Denis (Jedi/Sector One)
Date: Tue Jan 11 2005 - 18:09:16 EST


On Mon, Jan 10, 2005 at 04:01:58PM -0800, Jeremy Fitzhardinge wrote:
> This program causes an instant panic for me:
> #include <sys/mman.h>
> int main(int argc, char **argv)
> {
> munmap((char *)(((unsigned long)&argc) & ~4095), 4096*2);
> return 0;
> }
> Plain 2.6.10 segfaults as expected; I haven't tried -mm1 to see what it
> does.

I get an instant reboot with 2.6.10-mm2 and 2.6.10-mm1 with one page.

2.6.10-rc3-mm1 just segfaults as expected.

--
Frank - my stupid blog: http://00f.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/