Re: Unaligned handler broken (kernel BUG at mm/mmap.c:1991!)

Kyle McMartin <[email protected]> Wed, 20 Jun 2007 14:45:02 -0400
Newsgroups gmane.linux.ports.hppa
Message-ID <[email protected]>
On Mon, Jun 18, 2007 at 09:31:06PM +0200, Helge Deller wrote:
> The following small test case - which is itself wrong - crashes 2.6.22-rc5 (32bit kernel) badly:
> 
> #include <stdio.h>
> int main()
> {
>         int *ptr = (int *) 0xffffffff;
>         printf("ptr=%x, val=%d\n", ptr, *ptr);
> }
> 

I have a fix for this, will post after rudimentary testing.

Cheers,
	Kyle