Re: [syzbot] [bcachefs?] kernel BUG in bch2_btree_pos_to_text

From: syzbot
Date: Sun Sep 29 2024 - 08:53:10 EST


Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
BUG: Bad rss-counter state

bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 8
bcachefs (loop0): unshutdown complete, journal seq 9
bcachefs (loop0): done going read-only, filesystem not clean
bcachefs (loop0): shutdown complete
BUG: Bad rss-counter state mm:ffff888011da8980 type:MM_SWAPENTS val:11
bcachefs (loop0): shutting down
bcachefs (loop0): going read-only
bcachefs (loop0): finished waiting for writes to stop
bcachefs (loop0): flushing journal and stopping allocators, journal seq 8
bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 8
bcachefs (loop0): unshutdown complete, journal seq 9
bcachefs (loop0): done going read-only, filesystem not clean
bcachefs (loop0): shutdown complete
bcachefs (loop0): shutting down
bcachefs (loop0): going read-only
bcachefs (loop0): finished waiting for writes to stop
bcachefs (loop0): flushing journal and stopping allocators, journal seq 8
bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 8
bcachefs (loop0): unshutdown complete, journal seq 9
bcachefs (loop0): done going read-only, filesystem not clean
bcachefs (loop0): shutdown complete
bcachefs (loop0): shutting down
bcachefs (loop0): going read-only
bcachefs (loop0): finished waiting for writes to stop
bcachefs (loop0): flushing journal and stopping allocators, journal seq 8
bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 8
bcachefs (loop0): unshutdown complete, journal seq 9
bcachefs (loop0): done going read-only, filesystem not clean
bcachefs (loop0): shutdown complete
bcachefs (loop0): shutting down
bcachefs (loop0): going read-only
bcachefs (loop0): finished waiting for writes to stop
bcachefs (loop0): flushing journal and stopping allocators, journal seq 8
bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 8
bcachefs (loop0): unshutdown complete, journal seq 9
bcachefs (loop0): done going read-only, filesystem not clean
bcachefs (loop0): shutdown complete
bcachefs (loop0): shutting down
bcachefs (loop0): going read-only
bcachefs (loop0): finished waiting for writes to stop
bcachefs (loop0): flushing journal and stopping allocators, journal seq 8
bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 8
bcachefs (loop0): unshutdown complete, journal seq 9
bcachefs (loop0): done going read-only, filesystem not clean
bcachefs (loop0): shutdown complete


Tested on:

commit: 3efc5736 Merge tag 'for-linus' of git://git.kernel.org..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=11360ea9980000
kernel config: https://syzkaller.appspot.com/x/.config?x=a4fcb065287cdb84
dashboard link: https://syzkaller.appspot.com/bug?extid=cf7b2215b5d70600ec00
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=17a03e80580000