[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Tony found a direct userspace access with his unit test for
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 3627c3c29b21390029db86ca28085783cf35e105 # Parent 269abc1e4fa5616806504f79585ab5c6b354d477 Tony found a direct userspace access with his unit test for grant_table.c. We access "uop->frame_list" (a pointer) directly, rather than using "op.frame_list". Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx> Signed-off-by: Tony Breeds <tony@xxxxxxxxxxxxxxxxxx> diff -r 269abc1e4fa5 -r 3627c3c29b21 xen/common/grant_table.c --- a/xen/common/grant_table.c Tue Dec 13 16:12:59 2005 +++ b/xen/common/grant_table.c Tue Dec 13 16:15:26 2005 @@ -579,7 +579,7 @@ (void)put_user(GNTST_okay, &uop->status); for ( i = 0; i < op.nr_frames; i++ ) (void)put_user(gnttab_shared_mfn(d, d->grant_table, i), - &uop->frame_list[i]); + &op.frame_list[i]); } put_domain(d); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |