summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-05-20 03:09:35 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-05-20 12:37:26 +0300
commit6b74fdcc8e25323cd256a573186f9c6c6c2410c0 (patch)
tree1a7b6938162097c99bbd38aff7b8f3a9ad560aa5 /security
parentc06a8b75679d73473c0c382bcc676ee4b7657bee (diff)
downloadlinux-6b74fdcc8e25323cd256a573186f9c6c6c2410c0.tar.xz
bcachefs: bch2_checksum() returns 0 for unknown checksum type
This fixes missing guards on trying to calculate a checksum with an invalid/unknown checksum type; moving the guards up to e.g. btree_io.c might be "more correct", but doesn't buy us anything - an unknown checksum type will always be flagged as at least a checksum error so we aren't losing any safety doing it this way and it makes it less likely to accidentally pop an assert we don't want. Reported-by: syzbot+e951ad5349f3a34a715a@syzkaller.appspotmail.com Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions