syzbot


kernel BUG in create_pending_snapshot

Status: upstream: reported C repro on 2022/11/24 06:28
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+d56e0d33caf7d1a02821@syzkaller.appspotmail.com
First crash: 512d, last: 206d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit df9f278239046719c91aeb59ec0afb1a99ee8b2b
Author: Filipe Manana <fdmanana@suse.com>
Date: Tue Jun 13 15:42:16 2023 +0000

  btrfs: do not BUG_ON on failure to get dir index for new snapshot

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] kernel BUG in create_pending_snapshot 0 (2) 2023/10/27 11:11
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in create_pending_snapshot origin:lts-only C done 4 180d 362d 0/3 upstream: reported C repro on 2023/04/22 20:59
linux-4.19 kernel BUG in create_pending_snapshot 1 494d 494d 0/1 auto-obsoleted due to no activity on 2023/04/10 13:10
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/04/10 15:54 22m retest repro upstream error OK
2024/02/13 01:36 17m retest repro upstream OK log
2024/01/18 05:00 31m retest repro linux-next report log
2024/01/16 03:34 19m retest repro upstream report log
2023/12/05 01:12 11m retest repro upstream report log
2023/11/09 00:14 0m retest repro linux-next error OK
2023/11/07 00:39 19m retest repro upstream report log
2023/08/30 15:12 15m retest repro linux-next report log
2023/08/30 07:33 26m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2023/08/30 07:33 26m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/10/27 05:21 5h49m bisect fix upstream job log (1)
2023/09/25 23:47 1h22m bisect fix upstream job log (0) log
2023/04/24 18:03 28m bisect fix upstream job log (0) log

Sample crash report:
RSP: 002b:00007ffecd1cace8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffecd1cad58 RCX: 00007f9cb6ab3769
RDX: 0000000020001280 RSI: 0000000050009401 RDI: 0000000000000004
RBP: 0000000000000002 R08: 0000000000000002 R09: 0000000000003831
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffecd1cacf0
R13: 00007ffecd1cae30 R14: 431bde82d7b634db R15: 00007ffecd1cad30
 </TASK>
------------[ cut here ]------------
kernel BUG at fs/btrfs/transaction.c:1697!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5116 Comm: syz-executor158 Not tainted 6.3.0-rc3-syzkaller-00317-g65aca32efdcb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:create_pending_snapshot+0x24ed/0x28c0 fs/btrfs/transaction.c:1697
Code: e9 70 ec ff ff e8 63 bf 05 fe 48 c7 c7 c0 d6 29 8b 44 89 fe e8 e4 cc cd fd 0f 0b e9 81 f9 ff ff e8 98 c0 1b 07 e8 43 bf 05 fe <0f> 0b f3 0f 1e fa e8 38 bf 05 fe 48 b8 00 00 00 00 00 fc ff df 48
RSP: 0018:ffffc90003f4f600 EFLAGS: 00010293
RAX: ffffffff8384addd RBX: 00000000fffffff4 RCX: ffff88802661d7c0
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: ffffc90003f4f8f0 R08: ffffffff83849115 R09: fffffbfff1a02bb3
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 000000002bd78995 R14: dffffc0000000000 R15: ffff888074170448
FS:  0000555555a333c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002000 CR3: 0000000075b15000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 create_pending_snapshots+0x195/0x1d0 fs/btrfs/transaction.c:1894
 btrfs_commit_transaction+0x1304/0x3440 fs/btrfs/transaction.c:2351
 create_snapshot+0x4a5/0x7e0 fs/btrfs/ioctl.c:844
 btrfs_mksubvol+0x5d0/0x750 fs/btrfs/ioctl.c:994
 btrfs_mksnapshot+0xb5/0xf0 fs/btrfs/ioctl.c:1040
 __btrfs_ioctl_snap_create+0x338/0x450 fs/btrfs/ioctl.c:1293
 btrfs_ioctl_snap_create+0x136/0x190 fs/btrfs/ioctl.c:1320
 btrfs_ioctl+0xbbc/0xd40
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f9cb6ab3769
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffecd1cace8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffecd1cad58 RCX: 00007f9cb6ab3769
RDX: 0000000020001280 RSI: 0000000050009401 RDI: 0000000000000004
RBP: 0000000000000002 R08: 0000000000000002 R09: 0000000000003831
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffecd1cacf0
R13: 00007ffecd1cae30 R14: 431bde82d7b634db R15: 00007ffecd1cad30
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:create_pending_snapshot+0x24ed/0x28c0 fs/btrfs/transaction.c:1697
Code: e9 70 ec ff ff e8 63 bf 05 fe 48 c7 c7 c0 d6 29 8b 44 89 fe e8 e4 cc cd fd 0f 0b e9 81 f9 ff ff e8 98 c0 1b 07 e8 43 bf 05 fe <0f> 0b f3 0f 1e fa e8 38 bf 05 fe 48 b8 00 00 00 00 00 fc ff df 48
RSP: 0018:ffffc90003f4f600 EFLAGS: 00010293
RAX: ffffffff8384addd RBX: 00000000fffffff4 RCX: ffff88802661d7c0
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: ffffc90003f4f8f0 R08: ffffffff83849115 R09: fffffbfff1a02bb3
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 000000002bd78995 R14: dffffc0000000000 R15: ffff888074170448
FS:  0000555555a333c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e611b4cfb0 CR3: 0000000075b15000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/25 18:03 upstream 65aca32efdcb fbf0499a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in create_pending_snapshot
2023/01/12 04:56 linux-next c9e9cdd8bdcc 96166539 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in create_pending_snapshot
2023/02/04 21:48 upstream 0136d86b7852 be607b78 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root kernel BUG in create_pending_snapshot
2022/11/24 03:06 upstream eb7081409f94 52fdf57a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in create_pending_snapshot
2023/06/16 17:51 upstream 62d8779610bb f3921d4d .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root kernel BUG in create_pending_snapshot
2023/06/15 08:02 upstream b6dad5178cea 76decb82 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in create_pending_snapshot
2022/12/24 02:32 upstream 51094a24b85e 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in create_pending_snapshot
2023/02/27 01:22 linux-next 8232539f864c ee50e71c .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in create_pending_snapshot
2023/06/30 09:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 7b33cf8f .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2022/12/23 11:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2023/06/26 21:02 upstream 6995e2de6891 4cd5bb25 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in create_pending_snapshot
2023/06/21 13:49 upstream e660abd551f1 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in create_pending_snapshot
2023/06/19 17:31 upstream 45a3e24f65e9 d521bc56 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in create_pending_snapshot
2023/06/11 06:29 upstream 022ce8862dff 49519f06 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in create_pending_snapshot
2023/06/01 09:32 upstream 929ed21dfdb6 babc4389 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in create_pending_snapshot
2023/05/03 19:30 upstream 348551ddaf31 b5918830 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in create_pending_snapshot
2022/11/24 02:49 upstream eb7081409f94 52fdf57a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in create_pending_snapshot
2023/06/17 01:52 upstream 4973ca295528 f3921d4d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in create_pending_snapshot
2023/07/21 10:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2023/06/28 01:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2023/06/13 14:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d8b213732169 749afb64 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2023/05/12 07:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a adb9a3cd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2023/03/01 16:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2023/02/11 13:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2023/01/21 20:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci edb2f0dc90f2 559a440a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2023/01/07 07:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ae87308093bc 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2023/01/04 14:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2022/12/30 15:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2022/12/17 09:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2022/12/16 06:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2022/12/15 13:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
2022/12/05 10:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e3cb714fb489 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in create_pending_snapshot
* Struck through repros no longer work on HEAD.