]> 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)
commit267f8d722324d7c73b4c622dc97f21e6df770fee
treeb58c10d4ef49365fece9ccd5e49974ce8e03d747
parent8d392c99b321bbf0394a663d53b314a88c23eaf9
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: 8d392c99b321 ("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