]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: use correct pointer for io_uring_show_cred()
authorJens Axboe <axboe@kernel.dk>
Thu, 5 Nov 2020 16:50:16 +0000 (09:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 5 Nov 2020 16:50:16 +0000 (09:50 -0700)
commita8418b6fde8ebbfba6b90408c4340b03406fab40
tree0bd11bb0ea105d6af003764f0b585468c2a853b6
parentd18538636a710713896224953b0076970aebfe71
io_uring: use correct pointer for io_uring_show_cred()

Previous commit changed how we index the registered credentials, but
neglected to update one spot that is used when the personalities are
iterated through ->show_fdinfo(). Ensure we use the right struct type
for the iteration.

Reported-by: syzbot+a6d494688cdb797bdfce@syzkaller.appspotmail.com
Fixes: e4cef3e32c71 ("io_uring: COW io_identity on mismatch")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c