syzbot


kernel BUG in balance_leaf

Status: fixed on 2024/01/30 15:47
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+6a0877ace12bfad107fc@syzkaller.appspotmail.com
Fix commit: 6f861765464f fs: Block writes to mounted block devices
First crash: 651d, last: 296d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 6f861765464f43a71462d52026fbddfc858239a5
Author: Jan Kara <jack@suse.cz>
Date: Wed Nov 1 17:43:10 2023 +0000

  fs: Block writes to mounted block devices

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] kernel BUG in balance_leaf 1 (3) 2024/01/22 19:54
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in balance_leaf reiserfs C 1 613d 643d 0/1 upstream: reported C repro on 2023/01/08 11:53
linux-4.19 kernel BUG in balance_leaf reiserfs C error 1 638d 638d 0/1 upstream: reported C repro on 2023/01/13 23:48
linux-5.15 kernel BUG in balance_leaf 1 6d13h 6d13h 0/3 upstream: reported on 2024/10/06 15:53
linux-6.1 kernel BUG in balance_leaf 4 538d 549d 0/3 auto-obsoleted due to no activity on 2023/08/21 17:28
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/01/09 04:44 22m retest repro linux-next OK log
2024/01/09 03:50 25m retest repro linux-next OK log
2024/01/09 03:36 26m retest repro linux-next OK log
2023/12/21 22:22 14m retest repro upstream report log
2023/11/14 04:02 10m retest repro upstream report log
2023/10/31 03:15 18m retest repro linux-next report log
2023/10/31 03:15 15m retest repro linux-next report log
2023/10/12 22:06 14m retest repro upstream report log
2023/08/25 04:14 35m retest repro upstream report log
2023/08/25 04:14 29m retest repro upstream report log
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2024/01/20 22:53 4h23m bisect fix upstream OK (1) job log
2023/12/01 13:05 1h17m bisect fix upstream OK (0) job log log
2023/09/28 20:17 1h30m bisect fix upstream OK (0) job log log
2023/07/28 18:53 3h26m bisect fix upstream OK (0) job log log
2023/05/25 17:23 33m bisect fix upstream OK (0) job log log
2023/04/25 16:55 26m bisect fix upstream OK (0) job log log

Sample crash report:
REISERFS (device loop0): Using r5 hash to sort names
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
REISERFS panic (device loop0): vs-12195 balance_leaf: CFR not initialized
------------[ cut here ]------------
kernel BUG at fs/reiserfs/prints.c:390!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5185 Comm: syz-executor752 Not tainted 6.2.0-syzkaller-12017-g1ec35eadc3b4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
RIP: 0010:__reiserfs_panic+0xf7/0x150 fs/reiserfs/prints.c:390
Code: 65 ff 4d 89 e8 4c 89 f1 4c 89 e2 48 8d b3 a8 06 00 00 49 c7 c1 20 ee eb 91 48 c7 c7 40 b6 61 8a e8 be 8e 49 ff e8 29 eb 65 ff <0f> 0b 49 c7 c6 a0 b4 61 8a 4d 89 f4 eb c5 e8 16 eb 65 ff 4d 85 e4
RSP: 0018:ffffc90004a0ed48 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888071580000 RCX: 0000000000000000
RDX: ffff888026750000 RSI: ffffffff821f1737 RDI: 0000000000000005
RBP: ffffc90004a0ee18 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: ffffffff8a612c20
R13: ffffffff8a613600 R14: ffffffff8a61b4e0 R15: 0000000000000000
FS:  00007f9999ebc700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9999f51c60 CR3: 0000000076745000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 balance_leaf+0xd35f/0xddc0 fs/reiserfs/do_balan.c:1439
 do_balance+0x319/0x810 fs/reiserfs/do_balan.c:1888
 reiserfs_insert_item+0xd84/0x11a0 fs/reiserfs/stree.c:2261
 reiserfs_new_inode+0xe55/0x2190 fs/reiserfs/inode.c:2054
 reiserfs_create+0x351/0x730 fs/reiserfs/namei.c:668
 lookup_open.isra.0+0x105a/0x1400 fs/namei.c:3416
 open_last_lookups fs/namei.c:3484 [inline]
 path_openat+0x975/0x2750 fs/namei.c:3712
 do_filp_open+0x1ba/0x410 fs/namei.c:3742
 do_sys_openat2+0x16d/0x4c0 fs/open.c:1312
 do_sys_open fs/open.c:1328 [inline]
 __do_sys_openat fs/open.c:1344 [inline]
 __se_sys_openat fs/open.c:1339 [inline]
 __x64_sys_openat+0x143/0x1f0 fs/open.c:1339
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f9999f10589
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9999ebc2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f9999f967a0 RCX: 00007f9999f10589
RDX: 0000000000000241 RSI: 0000000020000000 RDI: 00000000ffffff9c
RBP: 00007f9999f632b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9999f631b8
R13: 0030656c69662f2e R14: 7366726573696572 R15: 00007f9999f967a8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__reiserfs_panic+0xf7/0x150 fs/reiserfs/prints.c:390
Code: 65 ff 4d 89 e8 4c 89 f1 4c 89 e2 48 8d b3 a8 06 00 00 49 c7 c1 20 ee eb 91 48 c7 c7 40 b6 61 8a e8 be 8e 49 ff e8 29 eb 65 ff <0f> 0b 49 c7 c6 a0 b4 61 8a 4d 89 f4 eb c5 e8 16 eb 65 ff 4d 85 e4
RSP: 0018:ffffc90004a0ed48 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888071580000 RCX: 0000000000000000
RDX: ffff888026750000 RSI: ffffffff821f1737 RDI: 0000000000000005
RBP: ffffc90004a0ee18 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: ffffffff8a612c20
R13: ffffffff8a613600 R14: ffffffff8a61b4e0 R15: 0000000000000000
FS:  00007f9999ebc700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9999f51c60 CR3: 0000000076745000 CR4: 0000000000350ee0

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/26 10:01 upstream 1ec35eadc3b4 ee50e71c .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root kernel BUG in balance_leaf
2022/12/31 22:54 upstream c8451c141e07 ab32d508 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in balance_leaf
2023/01/02 13:53 upstream 88603b6dc419 ab32d508 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in balance_leaf
2023/03/26 16:55 linux-next e5dbf24e8b9e fbf0499a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in balance_leaf
2022/12/31 08:41 linux-next c76083fac3ba ab32d508 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in balance_leaf
2023/06/23 21:50 upstream 8a28a0b6f1a1 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in balance_leaf
2023/01/31 20:03 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in balance_leaf
2023/01/25 19:12 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in balance_leaf
2023/01/25 07:46 upstream fb6e71db53f3 9dfcf09c .config console log report info ci2-upstream-fs kernel BUG in balance_leaf
2023/01/19 06:42 upstream c1649ec55708 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in balance_leaf
2023/01/12 17:35 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in balance_leaf
2023/01/12 17:35 upstream e8f60cd7db24 96166539 .config console log report info ci-upstream-kasan-gce-selinux-root kernel BUG in balance_leaf
2023/01/10 19:38 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in balance_leaf
2023/01/02 23:35 upstream 88603b6dc419 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in balance_leaf
2023/03/02 17:54 linux-next 26a4eaba02f7 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in balance_leaf
2022/12/31 08:16 linux-next c76083fac3ba ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in balance_leaf
* Struck through repros no longer work on HEAD.