summaryrefslogtreecommitdiffstats
path: root/drivers/soc/ti/Kconfig
diff options
context:
space:
mode:
authorOleg Nesterov2019-07-05 00:14:49 +0200
committerLinus Torvalds2019-07-05 04:12:07 +0200
commit8751853091998cd31e9e5f1e8206280155af8921 (patch)
tree91fac9f6aa58ad6ec64d28413fdf2b2322afe096 /drivers/soc/ti/Kconfig
parentdevres: allow const resource arguments (diff)
downloadkernel-qcow2-linux-8751853091998cd31e9e5f1e8206280155af8921.tar.gz
kernel-qcow2-linux-8751853091998cd31e9e5f1e8206280155af8921.tar.xz
kernel-qcow2-linux-8751853091998cd31e9e5f1e8206280155af8921.zip
swap_readpage(): avoid blk_wake_io_task() if !synchronous
swap_readpage() sets waiter = bio->bi_private even if synchronous = F, this means that the caller can get the spurious wakeup after return. This can be fatal if blk_wake_io_task() does set_current_state(TASK_RUNNING) after the caller does set_special_state(), in the worst case the kernel can crash in do_task_dead(). Link: http://lkml.kernel.org/r/20190704160301.GA5956@redhat.com Fixes: 0619317ff8baa2d ("block: add polled wakeup task helper") Signed-off-by: Oleg Nesterov <oleg@redhat.com> Reported-by: Qian Cai <cai@lca.pw> Acked-by: Hugh Dickins <hughd@google.com> Reviewed-by: Jens Axboe <axboe@kernel.dk> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/soc/ti/Kconfig')
0 files changed, 0 insertions, 0 deletions