]> www.infradead.org Git - users/hch/configfs.git/commit
bcachefs: Fix compat issue with old alloc_v4 keys
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 02:57:56 +0000 (22:57 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 06:07:23 +0000 (02:07 -0400)
commit8ed823b19214e403ca485532f48c0e02035021ae
tree604e2c2c97466640686e01906e559c5fb2923d1c
parent7f2de6947f92cfa4be8e5eaa1237e962bb8ee65f
bcachefs: Fix compat issue with old alloc_v4 keys

we allow new fields to be added to existing key types, and new versions
should treat them as being zeroed; this was not handled in
alloc_v4_validate.

Reported-by: syzbot+3b2968fa4953885dd66a@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/alloc_background_format.h
fs/bcachefs/btree_iter.h