]> Git Repo - linux.git/commit
bcachefs: Fix UAF in __promote_alloc() error path
authorKent Overstreet <[email protected]>
Wed, 6 Nov 2024 21:40:08 +0000 (16:40 -0500)
committerKent Overstreet <[email protected]>
Thu, 7 Nov 2024 21:48:21 +0000 (16:48 -0500)
commit8440da933127fc5330c3d1090cdd612fddbc40eb
tree91ece521bf22f076e84a3d513998277c219e61a1
parentf9f0a5390dcef1f96cc506a2cf7d50c8e348fa3d
bcachefs: Fix UAF in __promote_alloc() error path

If we error in data_update_init() after adding to the rhashtable of
outstanding promotes, kfree_rcu() is required.

Reported-by: Reed Riley <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
fs/bcachefs/io_read.c
This page took 0.055222 seconds and 4 git commands to generate.