]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: explicit sqe padding for ioctl commands
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 7 Jul 2022 14:00:38 +0000 (15:00 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Jul 2022 23:33:01 +0000 (17:33 -0600)
commitc4e788d1e63d96b1d8346dfd831755ff675b5cd3
tree263708808cce5a4d1fe33f70350cdceddfcfe459
parent9c59c09ca7e547827e5906785cdb83e32c623a98
io_uring: explicit sqe padding for ioctl commands

32 bit sqe->cmd_op is an union with 64 bit values. It's always a good
idea to do padding explicitly. Also zero check it in prep, so it can be
used in the future if needed without compatibility concerns.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e6b95a05e970af79000435166185e85b196b2ba2.1657202417.git.asml.silence@gmail.com
[axboe: turn bitwise OR into logical variant]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h