summaryrefslogtreecommitdiff
path: root/rust/kernel/gpu/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorMingzhe Zou <mingzhe.zou@easystack.cn>2026-04-03 12:21:35 +0800
committerJens Axboe <axboe@kernel.dk>2026-04-03 05:11:08 -0600
commit20a8e451ec1c7e99060b1bbaaad03ce88c39ddb8 (patch)
tree77449720793ecf3fe3a978aea76250e6ae110ca7 /rust/kernel/gpu/git@git.tavy.me:linux-stable.git
parentfec114a98b8735ee89c75216c45a78e28be0f128 (diff)
bcache: fix uninitialized closure object
In the previous patch ("bcache: fix cached_dev.sb_bio use-after-free and crash"), we adopted a simple modification suggestion from AI to fix the use-after-free. But in actual testing, we found an extreme case where the device is stopped before calling bch_write_bdev_super(). At this point, struct closure sb_write has not been initialized yet. For this patch, we ensure that sb_bio has been completed via sb_write_mutex. Signed-off-by: Mingzhe Zou <mingzhe.zou@easystack.cn> Signed-off-by: Coly Li <colyli@fnnas.com> Link: https://patch.msgid.link/20260403042135.2221247-1-colyli@fnnas.com Fixes: fec114a98b87 ("bcache: fix cached_dev.sb_bio use-after-free and crash") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel/gpu/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions