]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Don't try to en/decrypt when encryption not available
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 25 Nov 2024 07:05:02 +0000 (02:05 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:20 +0000 (01:36 -0500)
commitdba8243f3b466dd39ef05ff63890d5acab30c852
treeb377cc82f3a6ac12cd36489bf7f57c62d6cc36a9
parent75eabea6988e4ef587c8d90425918fdc58a8f1c9
bcachefs: Don't try to en/decrypt when encryption not available

If a btree node says it's encrypted, but the superblock never had an
encryptino key - whoops, that needs to be handled.

Reported-by: syzbot+026f1857b12f5eb3f9e9@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_io.c
fs/bcachefs/btree_node_scan.c
fs/bcachefs/checksum.c
fs/bcachefs/errcode.h
fs/bcachefs/io_read.c