summaryrefslogtreecommitdiffstats
path: root/fs/ntfs3/file.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-11-18 16:41:41 +0100
committerJens Axboe <axboe@kernel.dk>2022-11-18 17:29:31 +0100
commit7fdbc5f014c3f71bc44673a2d6c5bb2d12d45f25 (patch)
treeee0554114e62170dd45f607cf99fc5a7c7dfedcb /fs/ntfs3/file.c
parentio_uring: fix multishot recv request leaks (diff)
downloadlinux-7fdbc5f014c3f71bc44673a2d6c5bb2d12d45f25.tar.xz
linux-7fdbc5f014c3f71bc44673a2d6c5bb2d12d45f25.zip
io_uring: disallow self-propelled ring polling
When we post a CQE we wake all ring pollers as it normally should be. However, if a CQE was generated by a multishot poll request targeting its own ring, it'll wake that request up, which will make it to post a new CQE, which will wake the request and so on until it exhausts all CQ entries. Don't allow multishot polling io_uring files but downgrade them to oneshots, which was always stated as a correct behaviour that the userspace should check for. Cc: stable@vger.kernel.org Fixes: aa43477b04025 ("io_uring: poll rework") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/3124038c0e7474d427538c2d915335ec28c92d21.1668785722.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/ntfs3/file.c')
0 files changed, 0 insertions, 0 deletions