]> 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)
commit18998804c529e34ec93390b9121289fb758e030e
tree0bd11bb0ea105d6af003764f0b585468c2a853b6
parentfa8a875c18bec1aa4175331d784c11c7d170b194
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: 36c10655ef75 ("io_uring: COW io_identity on mismatch")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c