syzbot


BUG: corrupted list in list_lru_del

Status: auto-obsoleted due to no activity on 2023/03/15 19:34
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+e90c6ae6614eb20c66a5@syzkaller.appspotmail.com
First crash: 532d, last: 489d

Sample crash report:
list_del corruption. next->prev should be ffff88801e008e30, but was f8f8f8f8f8f8f8f8. (next=ffff888012b0b190)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:64!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5114 Comm: syz-executor.5 Not tainted 6.1.0-syzkaller-10971-g041fae9c105a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__list_del_entry_valid+0x12e/0x130 lib/list_debug.c:62
Code: 48 c7 c7 a0 c0 4b 8b 4c 89 fe 48 89 d9 31 c0 e8 18 d8 5c 06 0f 0b 48 c7 c7 20 c1 4b 8b 4c 89 fe 4c 89 f1 31 c0 e8 02 d8 5c 06 <0f> 0b 80 3d 49 e3 55 0a 00 74 01 c3 31 d2 eb 02 66 90 55 48 89 e5
RSP: 0018:ffffc9000410fa80 EFLAGS: 00010246
RAX: 000000000000006d RBX: ffff888012b0b198 RCX: fff6599191b57500
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff816ea80d R09: fffff52000821f09
R10: fffff52000821f09 R11: 1ffff92000821f08 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffff888012b0b190 R15: ffff88801e008e30
FS:  00005555560be400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0e9c7d1000 CR3: 0000000047aca000 CR4: 00000000003506e0
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_init include/linux/list.h:206 [inline]
 list_lru_del+0x251/0x3f0 mm/list_lru.c:152
 d_lru_del fs/dcache.c:441 [inline]
 select_collect+0x14f/0x440 fs/dcache.c:1565
 d_walk+0x1e3/0x6d0 fs/dcache.c:1386
 shrink_dcache_parent+0x146/0x450 fs/dcache.c:1625
 do_one_tree fs/dcache.c:1682 [inline]
 shrink_dcache_for_umount+0x78/0x1a0 fs/dcache.c:1699
 generic_shutdown_super+0x63/0x310 fs/super.c:473
 kill_block_super+0x79/0xd0 fs/super.c:1386
 deactivate_locked_super+0xa7/0xf0 fs/super.c:332
 cleanup_mnt+0x494/0x520 fs/namespace.c:1291
 task_work_run+0x243/0x300 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:296
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6d6ac8d547
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd803c1dc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f6d6ac8d547
RDX: 00007ffd803c1e9c RSI: 000000000000000a RDI: 00007ffd803c1e90
RBP: 00007ffd803c1e90 R08: 00000000ffffffff R09: 00007ffd803c1c60
R10: 00005555560bf8b3 R11: 0000000000000246 R12: 00007f6d6ace6b24
R13: 00007ffd803c2f50 R14: 00005555560bf810 R15: 00007ffd803c2f90
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid+0x12e/0x130 lib/list_debug.c:62
Code: 48 c7 c7 a0 c0 4b 8b 4c 89 fe 48 89 d9 31 c0 e8 18 d8 5c 06 0f 0b 48 c7 c7 20 c1 4b 8b 4c 89 fe 4c 89 f1 31 c0 e8 02 d8 5c 06 <0f> 0b 80 3d 49 e3 55 0a 00 74 01 c3 31 d2 eb 02 66 90 55 48 89 e5
RSP: 0018:ffffc9000410fa80 EFLAGS: 00010246
RAX: 000000000000006d RBX: ffff888012b0b198 RCX: fff6599191b57500
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff816ea80d R09: fffff52000821f09
R10: fffff52000821f09 R11: 1ffff92000821f08 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffff888012b0b190 R15: ffff88801e008e30
FS:  00005555560be400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0e9c7d1000 CR3: 0000000047aca000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/15 19:33 upstream 041fae9c105a 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: corrupted list in list_lru_del
2022/11/02 16:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 08977f5d .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: corrupted list in list_lru_del
* Struck through repros no longer work on HEAD.