Files
Linux/io_uring
Pavel Begunkov 7fdbc5f014 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: [email protected]
Fixes: aa43477b04 ("io_uring: poll rework")
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/3124038c0e7474d427538c2d915335ec28c92d21.1668785722.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <[email protected]>
2022-11-18 09:29:31 -07:00
..
…
…
…
…
2022-08-12 17:01:00 -06:00
…
…
…
2022-09-21 13:15:02 -06:00
…
…
…
…
2022-10-16 17:07:12 -06:00
2022-10-16 17:07:12 -06:00
…
…
…
…
…
…
2022-10-07 12:25:30 -06:00
2022-09-01 17:39:05 -04:00
…