summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/cache.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-07-18 13:04:43 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-07-18 13:04:43 -0400
commit84e7f95c41c2317265b3fb5a0524ed51c1d85aa4 (patch)
tree60a1553f89444c3f856c4305e896161b6ba05fe0 /arch/x86/include/asm/cache.h
parentbc3c911c0b9c84c6436d8a8643f09ef326216c89 (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 'arch/x86/include/asm/cache.h')
0 files changed, 0 insertions, 0 deletions