diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-11-05 17:50:16 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-11-05 17:50:16 +0100 |
commit | 6b47ab81c9a9b56a94882815e9949d40e4207c92 (patch) | |
tree | 0bd11bb0ea105d6af003764f0b585468c2a853b6 /fs/io_uring.c | |
parent | io_uring: don't forget to task-cancel drained reqs (diff) | |
download | linux-6b47ab81c9a9b56a94882815e9949d40e4207c92.tar.xz linux-6b47ab81c9a9b56a94882815e9949d40e4207c92.zip |
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: 1e6fa5216a0e ("io_uring: COW io_identity on mismatch")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 3d489cf31926..29f1417690d5 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -8974,7 +8974,8 @@ out_fput: #ifdef CONFIG_PROC_FS static int io_uring_show_cred(int id, void *p, void *data) { - const struct cred *cred = p; + struct io_identity *iod = p; + const struct cred *cred = iod->creds; struct seq_file *m = data; struct user_namespace *uns = seq_user_ns(m); struct group_info *gi; |