Linux block layer
 help / color / mirror / Atom feed
* [BUG] io_uring: defer logic based on shared data
@ 2019-10-25  9:55 Pavel Begunkov
  2019-10-25 16:03 ` Jens Axboe
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Begunkov @ 2019-10-25  9:55 UTC (permalink / raw)
  To: Jens Axboe, linux-block, linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 343 bytes --]

I found 2 problems with __io_sequence_defer().

1. it uses @sq_dropped, but doesn't consider @cq_overflow
2. @sq_dropped and @cq_overflow are write-shared with userspace, so
it can be maliciously changed.

see sent liburing test (test/defer *_hung()), which left an unkillable
process for me

-- 
Yours sincerely,
Pavel Begunkov


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-10-25 18:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-25  9:55 [BUG] io_uring: defer logic based on shared data Pavel Begunkov
2019-10-25 16:03 ` Jens Axboe
2019-10-25 16:09   ` Jens Axboe
2019-10-25 16:21     ` Jens Axboe
2019-10-25 16:21   ` Pavel Begunkov
2019-10-25 16:27     ` Jens Axboe
2019-10-25 16:32       ` Jens Axboe
2019-10-25 16:40         ` Pavel Begunkov
2019-10-25 16:44           ` Jens Axboe
2019-10-25 16:55             ` Pavel Begunkov
2019-10-25 16:57               ` Jens Axboe
2019-10-25 18:13                 ` Pavel Begunkov
2019-10-25 18:17                   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox