]> xenbits.xensource.com Git - xen.git/commit
gnttab: fix GNTTABOP_copy continuation handling
authorJan Beulich <jbeulich@suse.com>
Tue, 14 Apr 2020 13:05:54 +0000 (15:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Apr 2020 13:05:54 +0000 (15:05 +0200)
commitd353f82b2edae3019b0b9405976a05f18d120ce7
tree1df2177973b179989f183ea9052890543f3609a8
parent52da38987adec9c1f2138d6eb4a1f107744936c1
gnttab: fix GNTTABOP_copy continuation handling

The XSA-226 fix was flawed - the backwards transformation on rc was done
too early, causing a continuation to not get invoked when the need for
preemption was determined at the very first iteration of the request.
This in particular means that all of the status fields of the individual
operations would be left untouched, i.e. set to whatever the caller may
or may not have initialized them to.

This is part of XSA-318.

Reported-by: Pawel Wieczorkiewicz <wipawel@amazon.de>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Tested-by: Pawel Wieczorkiewicz <wipawel@amazon.de>
master commit: d6f22d5d9e8d6848ec229083ac9fb044f0adea93
master date: 2020-04-14 14:42:32 +0200
xen/common/grant_table.c