]> err.no Git - linux-2.6/commit
generalize lgread_u32/lgwrite_u32.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Oct 2007 01:24:24 +0000 (11:24 +1000)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 23 Oct 2007 05:49:56 +0000 (15:49 +1000)
commit2d37f94a28170ca656438758fca577acb49a7932
tree21049219a98d314a2c442293e512b74d879e6270
parent56ae43dfe233323683248a5c553bad7160db2fa5
generalize lgread_u32/lgwrite_u32.

Jes complains that page table code still uses lgread_u32 even though
it now uses general kernel pte types.  The best thing to do is to
generalize lgread_u32 and lgwrite_u32.

This means we lose the efficiency of getuser().  We could potentially
regain it if we used __copy_from_user instead of copy_from_user, but
I'm not certain that our range check is equivalent to access_ok() on
all platforms.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Jes Sorensen <jes@sgi.com>
drivers/lguest/core.c
drivers/lguest/hypercalls.c
drivers/lguest/interrupts_and_traps.c
drivers/lguest/lg.h
drivers/lguest/page_tables.c
drivers/lguest/segments.c
drivers/lguest/x86/core.c