syzbot


WARNING in bch2_trans_srcu_unlock

Status: upstream: reported C repro on 2024/05/03 15:30
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+1e515cab343dbe5aa38a@syzkaller.appspotmail.com
First crash: 212d, last: 1d17h
Cause bisection: introduced by (bisect log) :
commit 03ef80b469d5d83530ce1ce15be78a40e5300f9b
Author: Kent Overstreet <kent.overstreet@linux.dev>
Date: Sat Sep 23 22:41:51 2023 +0000

  bcachefs: Ignore unknown mount options

Crash: WARNING in rhashtable_init (log)
Repro: C syz .config
  
Discussions (8)
Title Replies (including bot) Last reply
[syzbot] Monthly bcachefs report (Nov 2024) 0 (1) 2024/11/15 10:49
[syzbot] Monthly bcachefs report (Oct 2024) 0 (1) 2024/10/14 19:38
[syzbot] Monthly bcachefs report (Sep 2024) 0 (1) 2024/09/13 10:03
[PATCH] bcachefs: WARNING in bch2_trans_srcu_unlock 3 (3) 2024/08/07 03:04
Re: [syzbot] [PATCH] bcachefs: WARNING in bch2_trans_srcu_unlock 0 (1) 2024/07/23 23:48
[syzbot] Monthly bcachefs report (Jul 2024) 0 (1) 2024/07/12 12:53
[syzbot] Monthly bcachefs report (Jun 2024) 0 (1) 2024/06/11 08:27
[syzbot] [bcachefs?] WARNING in bch2_trans_srcu_unlock 0 (3) 2024/05/04 09:48
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/08/27 22:00 19m retest repro upstream OK log
2024/07/23 23:48 19m cam.alvarez.i@gmail.com patch upstream OK log

Sample crash report:
------------[ cut here ]------------
btree trans held srcu lock (delaying memory reclaim) for 31 seconds
WARNING: CPU: 0 PID: 5233 at fs/bcachefs/btree_iter.c:3002 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3000 [inline]
WARNING: CPU: 0 PID: 5233 at fs/bcachefs/btree_iter.c:3002 bch2_trans_srcu_unlock+0x513/0x5b0 fs/bcachefs/btree_iter.c:3016
Modules linked in:
CPU: 0 UID: 0 PID: 5233 Comm: syz-executor260 Not tainted 6.11.0-syzkaller-04744-gbdf56c7580d2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3000 [inline]
RIP: 0010:bch2_trans_srcu_unlock+0x513/0x5b0 fs/bcachefs/btree_iter.c:3016
Code: 2b 3e 49 c1 ef 02 48 b9 c3 f5 28 5c 8f c2 f5 28 4c 89 f8 48 f7 e1 48 c1 ea 02 48 c7 c7 00 17 52 8c 48 89 d6 e8 fe 28 43 fd 90 <0f> 0b 90 90 49 89 df e9 b1 fe ff ff 44 89 e9 80 e1 07 fe c1 38 c1
RSP: 0018:ffffc90003eb7040 EFLAGS: 00010246
RAX: ac69ab7f8086e100 RBX: 1ffff1100eab9008 RCX: ffff88802ddf3c00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00000000ffffaa25 R08: ffffffff8155af72 R09: 1ffff1101710519a
R10: dffffc0000000000 R11: ffffed101710519b R12: 1ffff1100eab900e
R13: ffff8880755c8042 R14: ffff8880755c8070 R15: 000000000000030c
FS:  00007f58643bc6c0(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055dc5db95888 CR3: 00000000746ae000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bch2_trans_begin+0x15dd/0x1a50 fs/bcachefs/btree_iter.c:3093
 bch2_logged_op_start+0xd0/0x310 fs/bcachefs/logged_ops.c:83
 bch2_truncate+0x1a4/0x2c0 fs/bcachefs/io_misc.c:291
 bchfs_truncate+0x92b/0xc70 fs/bcachefs/fs-io.c:483
 notify_change+0xbca/0xe90 fs/attr.c:503
 do_truncate+0x220/0x310 fs/open.c:65
 handle_truncate fs/namei.c:3395 [inline]
 do_open fs/namei.c:3778 [inline]
 path_openat+0x2e1e/0x3590 fs/namei.c:3933
 do_filp_open+0x235/0x490 fs/namei.c:3960
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1415
 do_sys_open fs/open.c:1430 [inline]
 __do_sys_creat fs/open.c:1506 [inline]
 __se_sys_creat fs/open.c:1500 [inline]
 __x64_sys_creat+0x123/0x170 fs/open.c:1500
 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:0x7f58644278c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 18 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f58643bc218 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f58644b46b8 RCX: 00007f58644278c9
RDX: 00007f58644278c9 RSI: 0000000000000000 RDI: 0000000020000e00
RBP: 00007f58644b46b0 R08: 0000000000000000 R09: 0000000000000000
R10: 00007ffc9b16cb37 R11: 0000000000000246 R12: 00007f5864480e98
R13: 0030656c69662f2e R14: 3d72656e776f662c R15: 7366656863616362
 </TASK>

Crashes (3352):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/18 18:34 upstream bdf56c7580d2 c673ca06 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/05/03 19:18 upstream f03359bca01b dd26401e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/11/30 18:44 upstream 2ba9f676d0a2 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/11/27 08:24 upstream 445d9f05fa14 52b38cc1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in bch2_trans_srcu_unlock
2024/11/26 04:35 upstream 9f16d5e6f220 11dbc254 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/11/24 10:27 upstream 9f16d5e6f220 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/11/24 09:03 upstream 9f16d5e6f220 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/11/23 20:15 upstream 228a1157fb9f 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in bch2_trans_srcu_unlock
2024/11/18 06:39 upstream f66d6acccbc0 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/11/15 13:32 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in bch2_trans_srcu_unlock
2024/11/14 05:45 upstream f1b785f4c787 a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/11/14 04:27 upstream f1b785f4c787 a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/11/14 02:07 upstream 0a9b9d17f3a7 bb3f8425 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/11/12 12:17 upstream 2d5404caa8c7 75bb1b32 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/11/08 18:49 upstream 906bd684e4b1 179b040e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/11/05 07:01 upstream 557329bcecc2 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/11/02 03:03 upstream 6c52d4da1c74 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/10/31 00:05 upstream 4236f913808c fb888278 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/10/30 07:00 upstream c1e939a21eb1 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/10/29 13:05 upstream e42b1a9a2557 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/10/28 04:46 upstream 284a2f899676 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in bch2_trans_srcu_unlock
2024/10/27 11:36 upstream 850925a8133c 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/10/26 07:48 upstream b423f5a9a61f 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in bch2_trans_srcu_unlock
2024/10/25 23:52 upstream ae90f6a6170d 045e728d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/10/25 12:53 upstream ae90f6a6170d 045e728d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/10/25 12:47 upstream ae90f6a6170d 045e728d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/10/25 08:50 upstream 4e46774408d9 c79b8ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/10/25 03:00 upstream 4e46774408d9 c79b8ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/10/25 01:41 upstream 4e46774408d9 c79b8ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/10/24 23:16 upstream 4e46774408d9 c79b8ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/06/24 16:52 upstream f2661062f16b edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bch2_trans_srcu_unlock
2024/06/24 15:51 upstream f2661062f16b edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in bch2_trans_srcu_unlock
2024/05/03 15:13 upstream f03359bca01b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/05/03 15:08 upstream f03359bca01b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_trans_srcu_unlock
2024/06/21 01:42 upstream 50736169ecc8 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bch2_trans_srcu_unlock
2024/06/26 07:49 upstream 55027e689933 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in bch2_trans_srcu_unlock
2024/11/29 02:06 linux-next f486c8aa16b8 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/11/24 07:40 linux-next cfba9f07a1d6 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/11/11 10:13 linux-next 929beafbe7ac 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/11/10 05:54 linux-next 929beafbe7ac 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bch2_trans_srcu_unlock
2024/11/23 14:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/11/22 06:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/11/21 03:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/11/18 05:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 887407160d72 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/11/17 00:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 887407160d72 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/11/15 01:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 887407160d72 77f3eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/11/12 21:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a2995abceafa 75bb1b32 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/11/11 08:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 563047e691f2 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/11/09 18:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 563047e691f2 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/11/05 08:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 46f782153ea2 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/11/01 03:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1bf329c696cf 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/11/01 01:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1bf329c696cf 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/10/29 05:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1bf329c696cf 9efb3cc7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/10/29 03:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1bf329c696cf 9efb3cc7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
2024/10/25 19:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7678c1b2735a 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_trans_srcu_unlock
* Struck through repros no longer work on HEAD.