diff options
| author | Joanne Koong <joannelkoong@gmail.com> | 2026-05-19 08:28:07 +0300 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2026-06-09 17:11:02 +0300 |
| commit | b5befa80fdbe287a98480effed9564712924add5 (patch) | |
| tree | ddb0cd5dc61a13234b9c10c606506c2705af2b0f /include | |
| parent | a078484921052d0badd827fcc2770b5cfc1d4120 (diff) | |
| download | linux-b5befa80fdbe287a98480effed9564712924add5.tar.xz | |
fuse: re-lock request before returning from fuse_ref_folio()
fuse_ref_folio() unlocks the request but does not re-lock it before
returning. fuse_chan_abort() can end the request and the async end
callback (eg fuse_writepage_free()) can free the args while the
subsequent copy chain logic after fuse_ref_folio() accesses them,
leading to use-after-free issues.
Fix this by locking the request in fuse_ref_folio() before returning.
Fixes: c3021629a0d8 ("fuse: support splice() reading from fuse device")
Cc: stable@vger.kernel.org
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
