Jens Axboe
d871198ee4
io_uring/fdinfo: grab ctx->uring_lock around io_uring_show_fdinfo()
...
Not everything requires locking in there, which is why the 'has_lock'
variable exists. But enough does that it's a bit unwieldy to manage.
Wrap the whole thing in a ->uring_lock trylock, and just return
with no output if we fail to grab it. The existing trylock() will
already have greatly diminished utility/output for the failure case.
This fixes an issue with reading the SQE fields, if the ring is being
actively resized at the same time.
Reported-by: Jann Horn <jannh@google.com >
Fixes: 79cfe9e59c ("io_uring/register: add IORING_REGISTER_RESIZE_RINGS")
Signed-off-by: Jens Axboe <axboe@kernel.dk >
2025-05-14 07:15:28 -06:00
..
2024-06-16 14:54:55 -06:00
2025-01-28 15:10:40 -07:00
2025-03-07 13:41:08 -07:00
2025-02-17 05:34:45 -07:00
2025-02-17 05:34:45 -07:00
2025-02-20 07:59:56 -07:00
2025-02-20 07:59:56 -07:00
2025-01-09 07:16:45 -07:00
2024-06-16 14:54:55 -06:00
2025-05-14 07:15:28 -06:00
2025-02-28 07:05:46 -07:00
2024-11-07 15:24:33 -07:00
2023-11-20 09:01:42 -07:00
2025-03-05 07:38:55 -07:00
2024-11-06 13:55:38 -07:00
2025-05-07 07:55:15 -06:00
2025-03-28 17:14:01 -06:00
2025-02-27 07:18:01 -07:00
2025-02-17 05:34:45 -07:00
2025-04-07 07:51:23 -06:00
2025-02-17 05:34:45 -07:00
2025-03-31 07:07:44 -06:00
2025-02-20 07:59:56 -07:00
2025-05-12 09:27:41 -06:00
2025-02-17 05:41:03 -07:00
2025-03-28 17:14:01 -06:00
2024-12-27 10:08:21 -07:00
2025-02-17 16:43:04 -08:00
2024-11-06 13:55:38 -07:00
2025-03-31 12:41:49 -06:00
2025-03-07 13:41:08 -07:00
2025-02-28 19:35:37 -07:00
2025-02-17 05:34:50 -07:00
2024-04-22 19:31:18 -06:00
2025-03-28 14:55:32 -07:00
2025-02-27 07:27:56 -07:00
2024-01-23 15:25:14 -07:00
2023-12-12 07:42:57 -07:00
2025-03-10 07:14:18 -06:00
2025-02-17 05:34:50 -07:00
2025-04-03 08:31:57 -06:00
2025-02-17 05:41:03 -07:00
2024-11-15 09:58:34 -07:00
2025-04-17 11:59:12 -06:00
2025-03-28 13:45:52 -07:00
2025-03-28 15:07:04 -07:00
2025-03-07 09:07:29 -07:00
2023-03-09 10:10:58 -07:00
2025-02-17 05:34:46 -07:00
2024-10-29 13:43:28 -06:00
2025-05-09 07:56:53 -06:00
2024-03-01 06:28:19 -07:00
2024-11-13 11:44:30 -05:00
2023-01-29 15:18:26 -07:00
2024-11-29 07:20:28 -07:00
2022-10-07 12:25:30 -06:00
2025-03-26 17:56:00 -07:00
2024-11-06 13:55:38 -07:00
2024-02-09 09:04:39 -07:00
2024-02-09 09:04:39 -07:00
2025-05-12 07:17:02 -06:00
2025-03-31 07:08:34 -06:00
2025-02-24 12:10:38 -07:00
2024-11-06 13:55:38 -07:00
2024-11-06 12:59:39 -05:00
2025-04-18 06:12:10 -06:00
2025-04-18 06:12:10 -06:00