aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-01-23 19:08:49 +0100
committerIngo Molnar <mingo@kernel.org>2020-03-06 12:57:16 +0100
commitf1dfdab694eb3838ac26f4b73695929c07d92a33 (patch)
tree37791cfddf0e1e76792321e96271bf86cbe9c5bf /init
parentMerge branch 'linus' into sched/core, to pick up fixes (diff)
downloadlinux-dev-f1dfdab694eb3838ac26f4b73695929c07d92a33.tar.xz
linux-dev-f1dfdab694eb3838ac26f4b73695929c07d92a33.zip
sched/vtime: Prevent unstable evaluation of WARN(vtime->state)
As the vtime is sampled under loose seqcount protection by kcpustat, the vtime fields may change as the code flows. Where logic dictates a field has a static value, use a READ_ONCE. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Fixes: 74722bb223d0 ("sched/vtime: Bring up complete kcpustat accessor") Link: https://lkml.kernel.org/r/20200123180849.28486-1-frederic@kernel.org
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions