syzbot


BUG: corrupted list in kernfs_unlink_open_file

Status: auto-obsoleted due to no activity on 2023/04/12 10:56
Subsystems: kernfs
[Documentation on labels]
Reported-by: syzbot+dccc85bb90139ed5c137@syzkaller.appspotmail.com
First crash: 401d, last: 401d

Sample crash report:
list_del corruption. prev->next should be ffff88807c539948, but was 0000000000000000. (prev=ffff88807699e068)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:59!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4441 Comm: udevd Not tainted 6.2.0-rc7-next-20230208-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
RIP: 0010:__list_del_entry_valid+0x11f/0x1b0 lib/list_debug.c:59
Code: f5 a6 8a e8 c3 8a 4a fd 0f 0b 48 89 ca 48 c7 c7 a0 f5 a6 8a e8 b2 8a 4a fd 0f 0b 4c 89 c2 48 c7 c7 00 f6 a6 8a e8 a1 8a 4a fd <0f> 0b 48 89 d1 48 c7 c7 80 f6 a6 8a 4c 89 c2 e8 8d 8a 4a fd 0f 0b
RSP: 0018:ffffc9000317fd48 EFLAGS: 00010286
RAX: 000000000000006d RBX: ffff88807c539800 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8168db7c RDI: 0000000000000005
RBP: ffff88807699e000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: ffff888146b5b570
R13: 0000000000000000 R14: ffff888016639320 R15: ffff88807c539948
FS:  00007fd2c4d3d840(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020006030 CR3: 0000000028f3a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_del_entry include/linux/list.h:134 [inline]
 list_del include/linux/list.h:148 [inline]
 kernfs_unlink_open_file+0x162/0x4a0 fs/kernfs/file.c:628
 kernfs_fop_release+0xeb/0x1e0 fs/kernfs/file.c:805
 __fput+0x27c/0xa90 fs/file_table.c:321
 task_work_run+0x16f/0x270 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297
 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd2c492a467
Code: 44 00 00 48 8b 15 11 aa 0c 00 f7 d8 64 89 02 b8 ff ff ff ff eb bc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 e1 a9 0c 00 f7 d8 64 89 02 b8
RSP: 002b:00007ffd66c653a8 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 000055aa6a713960 RCX: 00007fd2c492a467
RDX: 00007fd2c49f1780 RSI: 000055aa6a719050 RDI: 000000000000000c
RBP: 0000000000000000 R08: 0000000000000000 R09: 00007fd2c49f5a60
R10: 000055aa6a71a050 R11: 0000000000000202 R12: 00007fd2c49f2380
R13: 000055aa6a704d90 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid+0x11f/0x1b0 lib/list_debug.c:59
Code: f5 a6 8a e8 c3 8a 4a fd 0f 0b 48 89 ca 48 c7 c7 a0 f5 a6 8a e8 b2 8a 4a fd 0f 0b 4c 89 c2 48 c7 c7 00 f6 a6 8a e8 a1 8a 4a fd <0f> 0b 48 89 d1 48 c7 c7 80 f6 a6 8a 4c 89 c2 e8 8d 8a 4a fd 0f 0b
RSP: 0018:ffffc9000317fd48 EFLAGS: 00010286
RAX: 000000000000006d RBX: ffff88807c539800 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8168db7c RDI: 0000000000000005
RBP: ffff88807699e000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: ffff888146b5b570
R13: 0000000000000000 R14: ffff888016639320 R15: ffff88807c539948
FS:  00007fd2c4d3d840(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3cf5f821b8 CR3: 0000000028f3a000 CR4: 00000000003506e0
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
2023/02/11 10:56 linux-next 38d2b86a665b 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: corrupted list in kernfs_unlink_open_file
* Struck through repros no longer work on HEAD.