syzbot


WARNING in __btrfs_check_leaf

Status: upstream: reported on 2024/08/23 12:08
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+d7d1fc7e21835ca19219@syzkaller.appspotmail.com
First crash: 93d, last: 37d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in __btrfs_check_leaf 1 (2) 2024/08/26 15:10

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 11469 at fs/btrfs/tree-checker.c:1545 check_extent_item fs/btrfs/tree-checker.c:1545 [inline]
WARNING: CPU: 0 PID: 11469 at fs/btrfs/tree-checker.c:1545 check_leaf_item fs/btrfs/tree-checker.c:1880 [inline]
WARNING: CPU: 0 PID: 11469 at fs/btrfs/tree-checker.c:1545 __btrfs_check_leaf+0x3552/0x6430 fs/btrfs/tree-checker.c:2039
Modules linked in:
CPU: 0 UID: 0 PID: 11469 Comm: syz.0.1665 Not tainted 6.12.0-rc3-syzkaller-00013-geca631b8fe80 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:check_extent_item fs/btrfs/tree-checker.c:1545 [inline]
RIP: 0010:check_leaf_item fs/btrfs/tree-checker.c:1880 [inline]
RIP: 0010:__btrfs_check_leaf+0x3552/0x6430 fs/btrfs/tree-checker.c:2039
Code: 48 8b 44 24 60 48 89 84 24 08 01 00 00 0f b6 44 24 70 41 89 c6 e9 3b fa ff ff e8 89 5f bb fd e9 38 fe ff ff e8 7f 5f bb fd 90 <0f> 0b 90 e9 c9 fd ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 91 fb
RSP: 0018:ffffc90011dc65e0 EFLAGS: 00010287
RAX: ffffffff83d987d1 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc9000a565000 RSI: 000000000000d91d RDI: 000000000000d91e
RBP: ffffc90011dc6bf8 R08: ffffffff83d9846c R09: ffffffff83d98325
R10: 0000000000000005 R11: ffff8880250abc00 R12: dffffc0000000000
R13: 0000000000000fc7 R14: ffff88805cfe80bc R15: 0000000000000005
FS:  00007fc05cea76c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f477f9ff000 CR3: 000000006f686000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 btrfs_check_leaf+0x16/0x40 fs/btrfs/tree-checker.c:2055
 btree_csum_one_bio+0x41a/0x890 fs/btrfs/disk-io.c:299
 btrfs_bio_csum fs/btrfs/bio.c:526 [inline]
 btrfs_submit_chunk fs/btrfs/bio.c:744 [inline]
 btrfs_submit_bbio+0x13e1/0x18a0 fs/btrfs/bio.c:784
 submit_eb_page fs/btrfs/extent_io.c:1887 [inline]
 btree_write_cache_pages+0x1099/0x1770 fs/btrfs/extent_io.c:1937
 do_writepages+0x35f/0x870 mm/page-writeback.c:2683
 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:398
 __filemap_fdatawrite_range mm/filemap.c:431 [inline]
 filemap_fdatawrite_range+0x11a/0x180 mm/filemap.c:449
 btrfs_write_marked_extents+0x27d/0x450 fs/btrfs/transaction.c:1151
 btrfs_write_and_wait_transaction fs/btrfs/transaction.c:1259 [inline]
 btrfs_commit_transaction+0x1de1/0x3740 fs/btrfs/transaction.c:2521
 sync_filesystem+0x1ca/0x230 fs/sync.c:66
 btrfs_reconfigure+0x2f4/0x2d40 fs/btrfs/super.c:1498
 reconfigure_super+0x447/0x880 fs/super.c:1083
 do_remount fs/namespace.c:3047 [inline]
 path_mount+0xc22/0xfa0 fs/namespace.c:3826
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4055 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4032
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc05c17f79a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc05cea6e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fc05cea6ef0 RCX: 00007fc05c17f79a
RDX: 0000000020000180 RSI: 0000000020000100 RDI: 0000000000000000
RBP: 0000000020000180 R08: 00007fc05cea6ef0 R09: 0000000001a4243c
R10: 0000000001a4243c R11: 0000000000000246 R12: 0000000020000100
R13: 00007fc05cea6eb0 R14: 0000000000000000 R15: 00000000200005c0
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/15 03:50 upstream eca631b8fe80 b01b6661 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __btrfs_check_leaf
2024/09/30 12:11 upstream 9852d85ec9d4 bbd4e0a4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_check_leaf
2024/09/29 15:11 upstream 3efc57369a0c ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_check_leaf
2024/08/22 01:28 upstream 872cf28b8df9 db5852f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_check_leaf
2024/08/19 11:57 upstream 47ac09b91bef 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_check_leaf
* Struck through repros no longer work on HEAD.