Skip to content
Commit 2fe79ce7 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix a UAF after write_super()



write_super() may reallocate the superblock buffer - but
bch_sb_field_ext was referencing it; don't use it after the write_super
call.

Reported-by: default avatar <syzbot+8992fc10a192067b8d8a@syzkaller.appspotmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e6b3a655
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment