syzbot


kernel BUG in close_ctree

Status: upstream: reported C repro on 2023/03/13 21:19
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+d36a7f58c8db09c4609e@syzkaller.appspotmail.com
First crash: 348d, last: 3h07m
Fix commit to backport (bisect log) :
tree: upstream
commit 4490e803e1fe9fab8db5025e44e23b55df54078b
Author: Filipe Manana <fdmanana@suse.com>
Date: Wed Jul 26 15:56:57 2023 +0000

  btrfs: don't start transaction when joining with TRANS_JOIN_NOSTART

[report pending]
  
Bug presence (3)
Date Name Commit Repro Result
2023/09/16 linux-5.15.y (ToT) aff03380bda4 C [report] kernel BUG in close_ctree
2023/05/03 upstream (ToT) fa31fc82fb77 C [report] kernel BUG in close_ctree
2023/09/16 upstream (ToT) 57d88e8a5974 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in close_ctree origin:upstream missing-backport C 362 24d 349d 0/3 upstream: reported C repro on 2023/03/12 14:15
upstream kernel BUG in close_ctree btrfs C error 5812 12h23m 458d 0/26 upstream: reported C repro on 2022/11/23 08:10
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/10/11 22:40 3h57m fix candidate upstream job log (1)

Sample crash report:
assertion failed: list_empty(&fs_info->delayed_iputs), in fs/btrfs/disk-io.c:4450
------------[ cut here ]------------
kernel BUG at fs/btrfs/ctree.h:3473!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3541 Comm: syz-executor703 Not tainted 5.15.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:assertfail+0x18/0x1a fs/btrfs/ctree.h:3473
Code: 0b e8 1d 8f 64 f7 48 8b 3d 76 44 39 07 e9 b1 65 98 f7 89 f1 48 89 fe 48 c7 c7 e0 8a c9 8a 48 c7 c2 40 60 c9 8a e8 f2 e3 ff ff <0f> 0b 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec
RSP: 0018:ffffc90002cb7c78 EFLAGS: 00010246
RAX: 0000000000000051 RBX: ffff888024800d28 RCX: 9af879f32727b800
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90002cb7d78 R08: ffffffff81665d9c R09: ffffed10173467a8
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888024800000
R13: 1ffff1100490025b R14: dffffc0000000000 R15: 1ffff110049001f4
FS:  00005555570e33c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000204a8000 CR3: 0000000071d6a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 close_ctree+0x811/0x886 fs/btrfs/disk-io.c:4450
 generic_shutdown_super+0x136/0x2c0 fs/super.c:475
 kill_anon_super+0x37/0x60 fs/super.c:1076
 btrfs_kill_super+0x3d/0x50 fs/btrfs/super.c:2391
 deactivate_locked_super+0xa0/0x110 fs/super.c:335
 cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f15e49b0eb7
Code: 08 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffc02f0e208 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 000000000008f1e8 RCX: 00007f15e49b0eb7
RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffc02f0e2c0
RBP: 00007ffc02f0e2c0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000202 R12: 00007ffc02f0f380
R13: 00005555570e4700 R14: 431bde82d7b634db R15: 00007ffc02f0f324
 </TASK>
Modules linked in:
---[ end trace 04c2a55ee7efee6b ]---
RIP: 0010:assertfail+0x18/0x1a fs/btrfs/ctree.h:3473
Code: 0b e8 1d 8f 64 f7 48 8b 3d 76 44 39 07 e9 b1 65 98 f7 89 f1 48 89 fe 48 c7 c7 e0 8a c9 8a 48 c7 c2 40 60 c9 8a e8 f2 e3 ff ff <0f> 0b 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec
RSP: 0018:ffffc90002cb7c78 EFLAGS: 00010246
RAX: 0000000000000051 RBX: ffff888024800d28 RCX: 9af879f32727b800
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90002cb7d78 R08: ffffffff81665d9c R09: ffffed10173467a8
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888024800000
R13: 1ffff1100490025b R14: dffffc0000000000 R15: 1ffff110049001f4
FS:  00005555570e33c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000204a8000 CR3: 0000000071d6a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (302):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/30 08:32 linux-5.15.y 6139f2a02fe0 991a98f4 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/01/30 02:56 linux-5.15.y 6139f2a02fe0 991a98f4 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/12/07 00:56 linux-5.15.y 9b91d36ba301 e3299f55 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/11/04 17:09 linux-5.15.y 12952a23a5da 500bfdc4 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/10/17 09:39 linux-5.15.y 02e21884dcf2 342b9c55 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/03/31 22:44 linux-5.15.y c957cbb87315 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/02/07 17:02 linux-5.15.y 6139f2a02fe0 6404acf9 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/01/20 22:18 linux-5.15.y ddcaf4999061 9bd8dcda .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/12/14 21:00 linux-5.15.y d0fc081c6241 3222d10c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/10/10 00:25 linux-5.15.y 1edcec18cfb7 3c53c7d9 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/07/02 05:18 linux-5.15.y 4af60700a60c bfc47836 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/06/24 13:57 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/05/22 01:32 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/05/08 01:06 linux-5.15.y 8a7f2a5c5aa1 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/06/09 09:19 linux-5.15.y d7af3e5ba454 058b3a5a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/06/06 17:58 linux-5.15.y d7af3e5ba454 a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/06/03 07:05 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/03/31 16:38 linux-5.15.y c957cbb87315 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/03/13 21:40 linux-5.15.y 2ddbd0f967b3 026e2200 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/02/13 00:24 linux-5.15.y 6139f2a02fe0 77b23aa1 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/07/07 01:18 linux-5.15.y d54cfc420586 1a2f6297 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/03/23 15:39 linux-5.15.y 115472395b0a f94b4a29 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/06/22 02:45 linux-5.15.y f67653019430 79782afc .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/02/17 02:22 linux-5.15.y 6139f2a02fe0 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/02/16 23:19 linux-5.15.y 6139f2a02fe0 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/02/13 03:04 linux-5.15.y 6139f2a02fe0 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/02/07 06:05 linux-5.15.y 6139f2a02fe0 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/01/29 20:19 linux-5.15.y 6139f2a02fe0 991a98f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/01/24 02:13 linux-5.15.y ddcaf4999061 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/01/23 10:49 linux-5.15.y ddcaf4999061 1c0ecc51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/01/21 23:52 linux-5.15.y ddcaf4999061 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/01/11 12:57 linux-5.15.y 26c690eff0a5 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/01/10 06:54 linux-5.15.y 26c690eff0a5 b438bd66 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/01/04 05:47 linux-5.15.y d93fa2c78854 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/01/03 17:26 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/01/01 16:49 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/12/28 17:51 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/12/28 09:14 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/12/24 21:31 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/12/23 00:25 linux-5.15.y 1d146b1875fc fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/12/22 16:14 linux-5.15.y 1d146b1875fc fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/12/22 12:22 linux-5.15.y 1d146b1875fc 4f9530a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/12/22 06:26 linux-5.15.y 1d146b1875fc 4f9530a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/12/20 23:29 linux-5.15.y 1d146b1875fc de21eb89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2023/12/16 06:16 linux-5.15.y d0fc081c6241 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in close_ctree
2024/02/24 20:24 linux-5.15.y 458ce51d0356 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/02/23 08:32 linux-5.15.y 6139f2a02fe0 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/02/05 15:52 linux-5.15.y 6139f2a02fe0 e23e8c20 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/02/05 10:57 linux-5.15.y 6139f2a02fe0 e23e8c20 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/02/02 00:58 linux-5.15.y 6139f2a02fe0 d61103fc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/01/28 20:57 linux-5.15.y 6139f2a02fe0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/01/26 03:32 linux-5.15.y 6139f2a02fe0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/01/25 17:43 linux-5.15.y ddcaf4999061 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/01/24 14:38 linux-5.15.y ddcaf4999061 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/01/21 18:58 linux-5.15.y ddcaf4999061 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/01/21 16:46 linux-5.15.y ddcaf4999061 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/01/20 23:22 linux-5.15.y ddcaf4999061 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/01/15 13:38 linux-5.15.y 26c690eff0a5 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/01/09 12:39 linux-5.15.y 26c690eff0a5 4807fb37 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2024/01/05 20:09 linux-5.15.y 26c690eff0a5 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/12/28 02:56 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/12/23 14:45 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/12/23 12:31 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/12/21 11:09 linux-5.15.y 1d146b1875fc 4f9530a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/12/19 11:33 linux-5.15.y d0fc081c6241 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/12/19 08:02 linux-5.15.y d0fc081c6241 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/12/18 23:30 linux-5.15.y d0fc081c6241 924661f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
2023/03/13 21:19 linux-5.15.y 2ddbd0f967b3 026e2200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in close_ctree
* Struck through repros no longer work on HEAD.