]> www.infradead.org Git - users/willy/xarray.git/commit
bcachefs: Guard against overflowing LRU_TIME_BITS
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 17 Jun 2024 14:06:03 +0000 (10:06 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 19 Jun 2024 22:27:24 +0000 (18:27 -0400)
commitcff07e2739d81cf33eb2a378a6136eced852b8cb
tree16d13ed597b1558a6eeb6bd686acda0199d7f190
parent1ba44217f8258f92c56644ca4fad4462f1941e33
bcachefs: Guard against overflowing LRU_TIME_BITS

LRUs only have 48 bits for the time field (i.e. LRU order); thus we need
overflow checks and guards.

Reported-by: syzbot+df3bf3f088dcaa728857@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/alloc_background.h
fs/bcachefs/bcachefs.h
fs/bcachefs/bcachefs_format.h
fs/bcachefs/lru.h
fs/bcachefs/sb-errors_format.h