syzbot


kernel BUG in btrfs_run_defrag_inodes (2)

Status: closed as dup on 2024/08/27 09:42
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+5833b186650f87c5b7c4@syzkaller.appspotmail.com
First crash: 42d, last: 42d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
kernel BUG in clear_inode btrfs C 9 14d 103d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] kernel BUG in btrfs_run_defrag_inodes (2) 1 (2) 2024/08/27 09:42
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in btrfs_run_defrag_inodes 1 6d23h 6d23h 0/3 upstream: reported on 2024/09/05 13:59
upstream kernel BUG in btrfs_run_defrag_inodes btrfs 1 445d 441d 0/27 auto-obsoleted due to no activity on 2023/10/03 06:43

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/inode.c:1819!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 1 UID: 0 PID: 10710 Comm: btrfs-cleaner Not tainted 6.11.0-rc1-syzkaller-00062-ge4fc196f5ba3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:iput+0x928/0x930 fs/inode.c:1819
Code: ff e9 a7 fb ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 45 fe ff ff 4c 89 f7 e8 33 aa e7 ff e9 38 fe ff ff e8 29 71 80 ff 90 <0f> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900041ffc50 EFLAGS: 00010293
RAX: ffffffff8212f547 RBX: 0000000000000040 RCX: ffff888023d05a00
RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffff88805e4f48e0 R08: ffffffff8212ec80 R09: 1ffffffff202f495
R10: dffffc0000000000 R11: fffffbfff202f496 R12: ffff88805e4f49b0
R13: ffff88806c102028 R14: 0000000000000005 R15: ffff888068e60350
FS:  0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1c9b094108 CR3: 000000005d542000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __btrfs_run_defrag_inode fs/btrfs/defrag.c:281 [inline]
 btrfs_run_defrag_inodes+0xa80/0xdf0 fs/btrfs/defrag.c:327
 cleaner_kthread+0x28c/0x3d0 fs/btrfs/disk-io.c:1527
 kthread+0x2f2/0x390 kernel/kthread.c:389
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:iput+0x928/0x930 fs/inode.c:1819
Code: ff e9 a7 fb ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 45 fe ff ff 4c 89 f7 e8 33 aa e7 ff e9 38 fe ff ff e8 29 71 80 ff 90 <0f> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900041ffc50 EFLAGS: 00010293
RAX: ffffffff8212f547 RBX: 0000000000000040 RCX: ffff888023d05a00
RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffff88805e4f48e0 R08: ffffffff8212ec80 R09: 1ffffffff202f495
R10: dffffc0000000000 R11: fffffbfff202f496 R12: ffff88805e4f49b0
R13: ffff88806c102028 R14: 0000000000000005 R15: ffff888068e60350
FS:  0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1c9b094108 CR3: 000000006b99e000 CR4: 0000000000350ef0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/31 19:23 upstream e4fc196f5ba3 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in btrfs_run_defrag_inodes
* Struck through repros no longer work on HEAD.