summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRochan Avlur <rochan.avlur@gmail.com>2026-08-12 20:58:36 -0700
committerMiklos Szeredi <mszeredi@redhat.com>2026-08-17 17:55:28 +0200
commit64b0b5cacbd2fea88001464cb712c9dfc795b26e (patch)
tree13912b5454861277601f18e42574c1413c19a46c /include/linux
parent6e64df0f73f1c070db816ef71ada96c847bca1c9 (diff)
fuse: wait for FR_FINISHED on abort_on_kill to prevent use-after-free
The abort_on_kill path in request_wait_answer() calls fuse_abort_conn() and returns without waiting for FR_FINISHED. If fuse_dev_do_write() is concurrently processing the same request (FR_LOCKED set), the caller frees req->args while it is still being accessed, causing a use-after-free. Fix this by jumping to the existing wait_event(FR_FINISHED) instead of returning early. The wait will not hang because fuse_abort_conn() ensures all requests are ended. Reported-by: syzbot+d6540a3fa1626e11360d@syzkaller.appspotmail.com Fixes: 204aa22a686b ("fuse: abort on fatal signal during sync init") Cc: stable@vger.kernel.org Assisted-by: Claude:claude-opus-4-6 Signed-off-by: Rochan Avlur <rochan.avlur@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions