|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen/sched: don't let XEN_RUNSTATE_UPDATE leak into vcpu_runstate_get()
On 24.09.19 10:39, Jan Beulich wrote: On 24.09.2019 09:42, Juergen Gross wrote: Yes. That was Andrew, right? In principle the change is fine, but I wonder whether you're (a) going a little too far and thus you are (b) missing some cleanup potential: Hmm, I'm not sure this will make things easier. The requested sequence is: - copy the byte with the XEN_RUNSTATE_UPDATE bit set first - copy all other bytes (not clearing the XEN_RUNSTATE_UPDATE bit) - copy the byte with the now cleared XEN_RUNSTATE_UPDATE bit last And this has to work for 64- and 32-bit variants of the structure. So dropping the last hunk is wrong already, and I don't think having a local copy of state_entry_time only will make things easier, as you'd need to: - copy the byte with the XEN_RUNSTATE_UPDATE bit set first - copy v->runstate.state - copy local runstate.state_entry_time - copy v->runstate.time[] - copy the byte with the now cleared XEN_RUNSTATE_UPDATE bit last And you'd need to special case the compat case. Juergen _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |