]> git.baikalelectronics.ru Git - kernel.git/commit
fs: don't randomize struct kiocb fields
authorKeith Busch <kbusch@kernel.org>
Fri, 12 Aug 2022 22:56:33 +0000 (15:56 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Aug 2022 23:00:35 +0000 (17:00 -0600)
commit123c8fc1c2535c429d2119a0470fc31e770c9204
treeca5654373356d0d8446140f6d4350348d2a9625c
parente3bc81401be76fd7af9e7c0c51f0feb5400ec227
fs: don't randomize struct kiocb fields

This is a size sensitive structure and randomizing can introduce extra
padding that breaks io_uring's fixed size expectations. There are few
fields here as it is, half of which need a fixed order to optimally
pack, so the randomization isn't providing much.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/io-uring/b6f508ca-b1b2-5f40-7998-e4cff1cf7212@kernel.dk/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/fs.h