syzbot


kernel BUG in btrfs_run_defrag_inodes

Status: upstream: reported on 2024/09/05 13:59
Reported-by: syzbot+71f30e7212f366d70e5e@syzkaller.appspotmail.com
First crash: 12d, last: 12d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in btrfs_run_defrag_inodes btrfs 1 450d 446d 0/28 auto-obsoleted due to no activity on 2023/10/03 06:43
upstream kernel BUG in btrfs_run_defrag_inodes (2) btrfs 1 48d 44d 0/28 closed as dup on 2024/08/27 09:42

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/inode.c:1756!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4607 Comm: btrfs-cleaner Not tainted 5.15.166-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:iput+0x8aa/0x8b0 fs/inode.c:1756
Code: ed ff e9 0b fc ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c c6 fe ff ff 4c 89 f7 e8 20 67 ed ff e9 b9 fe ff ff e8 46 9e a3 ff <0f> 0b 0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 41 89 ce 41 89 d7
RSP: 0018:ffffc90002fc7c98 EFLAGS: 00010293
RAX: ffffffff81dcbbba RBX: 0000000000000040 RCX: ffff888021f9bb80
RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffff888073f2bfa0 R08: ffffffff81dcb36b R09: fffffbfff19e6395
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888073f2c078
R13: ffff88806730b000 R14: 0000000000000000 R15: 0000000000000005
FS:  0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2dcd06 CR3: 0000000061ac3000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __btrfs_run_defrag_inode fs/btrfs/file.c:329 [inline]
 btrfs_run_defrag_inodes+0xad6/0xd50 fs/btrfs/file.c:372
 cleaner_kthread+0x205/0x390 fs/btrfs/disk-io.c:1829
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
Modules linked in:
---[ end trace 002e4cee63bd0ac7 ]---
RIP: 0010:iput+0x8aa/0x8b0 fs/inode.c:1756
Code: ed ff e9 0b fc ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c c6 fe ff ff 4c 89 f7 e8 20 67 ed ff e9 b9 fe ff ff e8 46 9e a3 ff <0f> 0b 0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 41 89 ce 41 89 d7
RSP: 0018:ffffc90002fc7c98 EFLAGS: 00010293
RAX: ffffffff81dcbbba RBX: 0000000000000040 RCX: ffff888021f9bb80
RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffff888073f2bfa0 R08: ffffffff81dcb36b R09: fffffbfff19e6395
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888073f2c078
R13: ffff88806730b000 R14: 0000000000000000 R15: 0000000000000005
FS:  0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2c71aff8 CR3: 0000000020103000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/05 13:58 linux-5.15.y 14e468424d3e 464ac2ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_run_defrag_inodes
* Struck through repros no longer work on HEAD.