syzbot


BUG: corrupted list in filename_create

Status: moderation: reported on 2025/11/16 19:13
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+26efc4d2f9be4534cb00@syzkaller.appspotmail.com
First crash: 12d, last: 12d
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 general protection fault in filename_create origin:downstream 2 C done 27 14d 843d 0/2 upstream: reported C repro on 2023/08/05 10:34
android-5-15 general protection fault in filename_create origin:downstream 2 C error unreliable 33 7d18h 940d 0/2 upstream: reported C repro on 2023/04/29 15:06
android-6-12 general protection fault in filename_create (2) origin:downstream 2 C 7 37d 59d 0/1 premoderation: reported C repro on 2025/09/27 02:54
android-5-10 general protection fault in filename_create 2 C 102 1d12h 814d 0/2 upstream: reported C repro on 2023/09/02 15:10
android-6-12 general protection fault in filename_create 2 1 149d 149d 0/1 auto-obsoleted due to no activity on 2025/09/26 14:56

Sample crash report:
 slab gfs2_inode start ffff88804325cf80 pointer offset 304 size 1568
list_del corruption. prev->next should be ffffc9000d53fba0, but was ffff88804325d0b0. (prev=ffff88804325d0b0)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:64!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5346 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:__list_del_entry_valid_or_report+0x15a/0x190 lib/list_debug.c:62
Code: e8 7b 27 71 fd 43 80 3c 2c 00 74 08 4c 89 ff e8 7c f8 92 fd 49 8b 17 48 c7 c7 80 1d bf 8b 48 89 de 4c 89 f9 e8 77 2b 93 fc 90 <0f> 0b 4c 89 f7 e8 4c 27 71 fd 43 80 3c 2c 00 74 08 4c 89 ff e8 4d
RSP: 0018:ffffc9000d53fa30 EFLAGS: 00010046
RAX: 000000000000006d RBX: ffffc9000d53fba0 RCX: ffc7eff213fe4100
RDX: 0000000000000000 RSI: 0000000080000002 RDI: 0000000000000000
RBP: ffffc9000d53fc70 R08: ffff88801fe24293 R09: 1ffff11003fc4852
R10: dffffc0000000000 R11: ffffed1003fc4853 R12: 1ffff1100864ba16
R13: dffffc0000000000 R14: ffff88804325d0b0 R15: ffff88804325d0b0
FS:  00007effa44c96c0(0000) GS:ffff88808d730000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007effa44c8fc8 CR3: 00000000410ac000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 __list_del_entry_valid include/linux/list.h:132 [inline]
 __list_del_entry include/linux/list.h:223 [inline]
 list_del include/linux/list.h:237 [inline]
 rwsem_try_write_lock kernel/locking/rwsem.c:662 [inline]
 rwsem_down_write_slowpath+0x91e/0xfe0 kernel/locking/rwsem.c:1159
 __down_write_common kernel/locking/rwsem.c:1317 [inline]
 __down_write kernel/locking/rwsem.c:1326 [inline]
 down_write_nested+0x1b5/0x200 kernel/locking/rwsem.c:1707
 inode_lock_nested include/linux/fs.h:1025 [inline]
 filename_create+0x1f8/0x3c0 fs/namei.c:4226
 do_mkdirat+0xa0/0x590 fs/namei.c:4478
 __do_sys_mkdirat fs/namei.c:4503 [inline]
 __se_sys_mkdirat fs/namei.c:4501 [inline]
 __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4501
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7effa358f6c9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007effa44c9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007effa37e6180 RCX: 00007effa358f6c9
RDX: 0000000000000000 RSI: 0000200000000140 RDI: ffffffffffffff9c
RBP: 00007effa3611f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007effa37e6218 R14: 00007effa37e6180 R15: 00007ffc0e5b4588
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid_or_report+0x15a/0x190 lib/list_debug.c:62
Code: e8 7b 27 71 fd 43 80 3c 2c 00 74 08 4c 89 ff e8 7c f8 92 fd 49 8b 17 48 c7 c7 80 1d bf 8b 48 89 de 4c 89 f9 e8 77 2b 93 fc 90 <0f> 0b 4c 89 f7 e8 4c 27 71 fd 43 80 3c 2c 00 74 08 4c 89 ff e8 4d
RSP: 0018:ffffc9000d53fa30 EFLAGS: 00010046
RAX: 000000000000006d RBX: ffffc9000d53fba0 RCX: ffc7eff213fe4100
RDX: 0000000000000000 RSI: 0000000080000002 RDI: 0000000000000000
RBP: ffffc9000d53fc70 R08: ffff88801fe24293 R09: 1ffff11003fc4852
R10: dffffc0000000000 R11: ffffed1003fc4853 R12: 1ffff1100864ba16
R13: dffffc0000000000 R14: ffff88804325d0b0 R15: ffff88804325d0b0
FS:  00007effa44c96c0(0000) GS:ffff88808d730000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007effa44c8fc8 CR3: 00000000410ac000 CR4: 0000000000352ef0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/12 19:01 upstream 24172e0d7990 07e030de .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in filename_create
* Struck through repros no longer work on HEAD.