Skip to content
Commit 211c581d authored by Pei Li's avatar Pei Li Committed by Kent Overstreet
Browse files

bcachefs: slab-use-after-free Read in bch2_sb_errors_from_cpu



Acquire fsck_error_counts_lock before accessing the critical section
protected by this lock.

syzbot has tested the proposed patch and the reproducer did not trigger
any issue.

Reported-by: default avatar <syzbot+a2bc0e838efd7663f4d9@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=a2bc0e838efd7663f4d9
Signed-off-by: default avatarPei Li <peili.dev@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 89d21b69
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