+8
−5
Loading
mainline inclusion from mainline-v6.10-rc1 commit 8d09a88ef9d3cb7d21d45c39b7b7c31298d23998 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAYRF9 CVE: CVE-2024-50060 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8d09a88ef9d3cb7d21d45c39b7b7c31298d23998 -------------------------------- Conditional locking is never great, in case of __io_cqring_overflow_flush(), which is a slow path, it's not justified. Don't handle IOPOLL separately, always grab uring_lock for overflow flushing. Signed-off-by:Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/162947df299aa12693ac4b305dacedab32ec7976.1712708261.git.asml.silence@gmail.com Signed-off-by:
Jens Axboe <axboe@kernel.dk> Conflicts: io_uring/io_uring.c [Context differences because there is no commit 408024b95927 ("io_uring: open code io_cqring_overflow_flush()").] Signed-off-by:
Baokun Li <libaokun1@huawei.com>