bcachefs: Guard against journal seq overflow
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 28 Nov 2024 02:58:43 +0000 (21:58 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:20 +0000 (01:36 -0500)
commitb3d82c2f27611c897c3877a51de8f8df755165af
treeba3d1eef90cefcefe95f62741b32382bc61869da
parent9963a14da1091c114764bec8723cf81677ca691e
bcachefs: Guard against journal seq overflow

Wraparound is impractical to handle since in various places we use 0 as
a sentinal value - but 64 bits (or 56, because the btree write buffer
steals a few bits) is enough for all practical purposes.

Reported-by: syzbot+73ed43fbe826227bd4e0@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal.c
fs/bcachefs/journal_types.h