syzbot


kernel BUG in evict

Status: upstream: reported C repro on 2024/04/20 12:09
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+2d4607167a06f0cd5d67@syzkaller.appspotmail.com
First crash: 16d, last: 14d
Bug presence (2)
Date Name Commit Repro Result
2024/04/20 linux-5.15.y (ToT) c52b9710c83d C [report] kernel BUG in evict
2024/04/20 upstream (ToT) 13a2e429f644 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 evict origin:lts-only C done 2 16d 16d 0/3 upstream: reported C repro on 2024/04/20 12:22
upstream kernel BUG in evict fs 1 272d 268d 0/26 auto-obsoleted due to no activity on 2023/11/06 19:12

Sample crash report:
NILFS (loop0): nilfs_palloc_commit_free_entry (ino=6): entry number 6 already freed
------------[ cut here ]------------
kernel BUG at fs/inode.c:599!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3501 Comm: syz-executor365 Not tainted 5.15.156-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:evict+0x615/0x620 fs/inode.c:599
Code: fe c1 38 c1 0f 8c de fc ff ff 4c 89 ff e8 03 00 ed ff e9 d1 fc ff ff e8 59 3b a3 ff 0f 0b e8 52 3b a3 ff 0f 0b e8 4b 3b a3 ff <0f> 0b e8 44 3b a3 ff 0f 0b 66 90 41 56 53 49 89 fe e8 35 3b a3 ff
RSP: 0018:ffffc90002f27988 EFLAGS: 00010293
RAX: ffffffff81dd2195 RBX: 0000000000000064 RCX: ffff888024c7d940
RDX: 0000000000000000 RSI: 0000000000000064 RDI: 0000000000000060
RBP: ffff88807505a850 R08: ffffffff81dd2026 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff88807505a7f0
R13: ffff88807505a850 R14: dffffc0000000000 R15: ffff88807505a7c8
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564d12298ae8 CR3: 0000000021c0d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 nilfs_put_root+0x93/0xb0 fs/nilfs2/the_nilfs.c:911
 nilfs_segctor_destroy fs/nilfs2/segment.c:2789 [inline]
 nilfs_detach_log_writer+0x8b8/0xbd0 fs/nilfs2/segment.c:2852
 nilfs_put_super+0x49/0x150 fs/nilfs2/super.c:498
 generic_shutdown_super+0x136/0x2c0 fs/super.c:475
 kill_block_super+0x7a/0xe0 fs/super.c:1414
 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
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0x6a3/0x2480 kernel/exit.c:872
 do_group_exit+0x144/0x310 kernel/exit.c:994
 __do_sys_exit_group kernel/exit.c:1005 [inline]
 __se_sys_exit_group kernel/exit.c:1003 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1003
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f564a6e5789
Code: Unable to access opcode bytes at RIP 0x7f564a6e575f.
RSP: 002b:00007ffcacf6d158 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f564a6e5789
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 00007f564a7612b0 R08: ffffffffffffffb8 R09: 00007ffcacf6d230
R10: 00007ffcacf6d080 R11: 0000000000000246 R12: 00007f564a7612b0
R13: 0000000000000000 R14: 00007f564a762020 R15: 00007f564a6b3cc0
 </TASK>
Modules linked in:
---[ end trace d4960359a0e9d933 ]---
RIP: 0010:evict+0x615/0x620 fs/inode.c:599
Code: fe c1 38 c1 0f 8c de fc ff ff 4c 89 ff e8 03 00 ed ff e9 d1 fc ff ff e8 59 3b a3 ff 0f 0b e8 52 3b a3 ff 0f 0b e8 4b 3b a3 ff <0f> 0b e8 44 3b a3 ff 0f 0b 66 90 41 56 53 49 89 fe e8 35 3b a3 ff
RSP: 0018:ffffc90002f27988 EFLAGS: 00010293
RAX: ffffffff81dd2195 RBX: 0000000000000064 RCX: ffff888024c7d940
RDX: 0000000000000000 RSI: 0000000000000064 RDI: 0000000000000060
RBP: ffff88807505a850 R08: ffffffff81dd2026 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff88807505a7f0
R13: ffff88807505a850 R14: dffffc0000000000 R15: ffff88807505a7c8
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564d12298ae8 CR3: 0000000021c0d000 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/20 12:37 linux-5.15.y c52b9710c83d af24b050 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/22 14:19 linux-5.15.y c52b9710c83d 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/22 14:09 linux-5.15.y c52b9710c83d 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/22 14:09 linux-5.15.y c52b9710c83d 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/22 14:09 linux-5.15.y c52b9710c83d 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/22 14:09 linux-5.15.y c52b9710c83d 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/22 04:32 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/21 15:10 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/20 12:22 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/20 12:12 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/20 12:10 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/20 12:10 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
2024/04/20 12:09 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in evict
* Struck through repros no longer work on HEAD.