]> git.baikalelectronics.ru Git - kernel.git/commit
fix the breakage in close_fd_get_file() calling conventions change
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 Jun 2022 18:01:42 +0000 (14:01 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 Jun 2022 19:03:03 +0000 (15:03 -0400)
commit7383025a9fde5ccdfc7db5e0e511f98d04b36cab
treeb58c10d4ef49365fece9ccd5e49974ce8e03d747
parentf95f2c7bc54e26e74ecd3a5615f158b11b0e885d
fix the breakage in close_fd_get_file() calling conventions change

It used to grab an extra reference to struct file rather than
just transferring to caller the one it had removed from descriptor
table.  New variant doesn't, and callers need to be adjusted.

Reported-and-tested-by: syzbot+47dd250f527cb7bebf24@syzkaller.appspotmail.com
Fixes: f95f2c7bc54e ("Unify the primitives for file descriptor closing")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/android/binder.c
fs/file.c
fs/io_uring.c