vmalloc problem with DEBUG_PAGEALLOC config option
From: Zdenek Kabelac
Date: Tue May 27 2008 - 03:51:18 EST
Hello
Recently I've spent some time with hunting weird problem which
appeared to be caused by the CONFIG_DEBUG_PAGEALLOC option. After the
crash of 'nash' sometimes my application started to behave strange -
after some debugging and testing when I've basically tried everything
else :) because it wouldn't come to my mind what could be wrong I' ve
noticed, that inside the kernel driver 'vmalloc-ated' memory chunk
simply doesn't get the right memory copy from the funtion call
copy_from_user().
When I want to get 16kb copied from user space and I prefil it with
some byte pattern, I get zeroed area. When I use 'get_user()' I see
correct user-space data - so the problem is with the copying and
DEBUG_PAGEALLOC enabled.
When I'm not using this debug option - I'm not able to replicate my
problem with copy_from_user().
I'm using 64bit x86 kernel on 2GB T61
Zdenek
--
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/