Skip to content
Commit 3a04334d authored by Alan Huang's avatar Alan Huang Committed by Kent Overstreet
Browse files

bcachefs: Fix b->written overflow



When bset past end of btree node, we should not add sectors to
b->written, which will overflow b->written.

Reported-by: default avatar <syzbot+3cb3d9e8c3f197754825@syzkaller.appspotmail.com>
Tested-by: default avatar <syzbot+3cb3d9e8c3f197754825@syzkaller.appspotmail.com>
Signed-off-by: default avatarAlan Huang <mmpgouride@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 80e54e84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment