syzbot


kernel BUG in clear_inode

Status: upstream: reported C repro on 2023/05/25 23:24
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+6d7e822afebcc5b4c30c@syzkaller.appspotmail.com
First crash: 336d, last: 21d
Bug presence (1)
Date Name Commit Repro Result
2023/06/26 upstream (ToT) a0433f8cae3a C [report] kernel BUG in clear_inode
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in clear_inode 1 361d 361d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:07
upstream kernel BUG at fs/inode.c:LINE! (2) btrfs ntfs3 C done unreliable 319 13d 1337d 0/26 upstream: reported C repro on 2020/08/28 13:18
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2024/03/23 10:11 3h02m bisect fix linux-6.1.y job log (0) log
2024/02/22 01:27 2h17m bisect fix linux-6.1.y job log (0) log
2024/01/12 18:13 2h12m bisect fix linux-6.1.y job log (0) log
2023/12/12 16:42 2h06m bisect fix linux-6.1.y job log (0) log
2023/11/11 18:21 2h13m bisect fix linux-6.1.y job log (0) log
2023/10/09 02:47 2h04m bisect fix linux-6.1.y job log (0) log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/inode.c:625!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4466 Comm: btrfs-cleaner Not tainted 6.1.84-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:clear_inode+0x13f/0x150 fs/inode.c:625
Code: c7 06 60 00 00 00 5b 41 5c 41 5d 41 5e 41 5f c3 e8 f6 8e 92 ff 0f 0b e8 ef 8e 92 ff 0f 0b e8 e8 8e 92 ff 0f 0b e8 e1 8e 92 ff <0f> 0b e8 da 8e 92 ff 0f 0b 0f 1f 84 00 00 00 00 00 55 48 89 e5 41
RSP: 0018:ffffc9000b287a90 EFLAGS: 00010293
RAX: ffffffff81f7f80f RBX: 0000000000000040 RCX: ffff88801b273b80
RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc9000b287c60 R08: ffffffff81f7f7a4 R09: ffffed100dd90bad
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff1100dd90b81 R14: ffff88806ec85c08 R15: ffff88806ec85b30
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff0042c2723 CR3: 00000000187a0000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 btrfs_evict_inode+0x751/0x10a0 fs/btrfs/inode.c:5567
 evict+0x2a4/0x620 fs/inode.c:666
 __btrfs_run_defrag_inode fs/btrfs/tree-defrag.c:275 [inline]
 btrfs_run_defrag_inodes+0xaa0/0xe30 fs/btrfs/tree-defrag.c:321
 cleaner_kthread+0x1e3/0x370 fs/btrfs/disk-io.c:1852
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:307
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:clear_inode+0x13f/0x150 fs/inode.c:625
Code: c7 06 60 00 00 00 5b 41 5c 41 5d 41 5e 41 5f c3 e8 f6 8e 92 ff 0f 0b e8 ef 8e 92 ff 0f 0b e8 e8 8e 92 ff 0f 0b e8 e1 8e 92 ff <0f> 0b e8 da 8e 92 ff 0f 0b 0f 1f 84 00 00 00 00 00 55 48 89 e5 41
RSP: 0018:ffffc9000b287a90 EFLAGS: 00010293
RAX: ffffffff81f7f80f RBX: 0000000000000040 RCX: ffff88801b273b80
RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc9000b287c60 R08: ffffffff81f7f7a4 R09: ffffed100dd90bad
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff1100dd90b81 R14: ffff88806ec85c08 R15: ffff88806ec85b30
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff0042c2723 CR3: 000000007f610000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/05 09:21 linux-6.1.y 347385861c50 0ee3535e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in clear_inode
2023/06/26 00:13 linux-6.1.y e84a4e368abe 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in clear_inode
2023/07/03 10:41 linux-6.1.y 0f4ac6b4c5f0 bfc47836 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in clear_inode
2023/08/20 05:06 linux-6.1.y 6c44e13dc284 d216d8a0 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in clear_inode
2023/07/04 08:13 linux-6.1.y 0f4ac6b4c5f0 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in clear_inode
2023/06/25 11:54 linux-6.1.y e84a4e368abe 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in clear_inode
2023/06/25 03:56 linux-6.1.y e84a4e368abe 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in clear_inode
2023/05/29 10:18 linux-6.1.y a343b0dd87b4 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in clear_inode
2023/05/25 23:23 linux-6.1.y a343b0dd87b4 0513b3e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in clear_inode
2023/07/19 06:08 linux-6.1.y 61fd484b2cf6 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in clear_inode
2023/06/12 11:41 linux-6.1.y 2f3918bc53fb 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in clear_inode
2023/05/29 10:44 linux-6.1.y a343b0dd87b4 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in clear_inode
2023/05/29 09:53 linux-6.1.y a343b0dd87b4 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in clear_inode
* Struck through repros no longer work on HEAD.