diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-07-18 13:04:43 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-07-18 13:04:43 -0400 |
commit | 84e7f95c41c2317265b3fb5a0524ed51c1d85aa4 (patch) | |
tree | 60a1553f89444c3f856c4305e896161b6ba05fe0 /fs/bcachefs/sb-counters_format.h | |
parent | bc3c911c0b9c84c6436d8a8643f09ef326216c89 (diff) |
bcachefs: Fix UAF by journal write pathbcachefs-testing
Previously, we handled synchronization with shutdown vs. the journal
write path by holding the journal lock until we were done, after marking
the write as completed.
But we don't want to be kicking off discards under the journal lock, so
we need an actual ref - just set the journal write closure's parent to
bch_fs.cl.
Fixes: b4d6e204f892 ("bcachefs: Fix triggering of discard by the journal path")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sb-counters_format.h')
0 files changed, 0 insertions, 0 deletions