Files
linux/fs
Govindarajulu Varadarajan ea129e55c9 io_uring: Add size check for sqe->cmd
For SQE128, sqe->cmd provides 80 bytes for uring_cmd. Add macro to
check if size of user struct does not exceed 80 bytes at compile time.
User doesn't have to track this manually during development.

Replace io_uring_sqe_cmd() inline func with macro and add
io_uring_sqe128_cmd() which checks struct
size for 16 bytes cmd and 80 bytes cmd respectively.

Signed-off-by: Govindarajulu Varadarajan <govind.varadar@gmail.com>
Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2026-02-19 07:26:26 -07:00
..
2026-01-12 10:55:45 +01:00
2025-11-16 01:35:04 -05:00
2026-01-12 10:55:46 +01:00
2026-01-02 13:43:41 -05:00
2025-11-16 01:35:03 -05:00
2026-01-12 10:55:48 +01:00
2026-01-12 10:55:48 +01:00
2025-11-04 12:36:33 +01:00
2025-11-28 12:42:31 +01:00
2025-09-01 13:08:01 +02:00
2026-01-12 10:55:48 +01:00
2026-01-12 16:52:09 +01:00
2026-01-16 19:21:40 +01:00
2026-01-12 16:52:09 +01:00
2025-05-23 14:20:44 +02:00