syzbot


BUG: corrupted list in fscache_free_cookie

Status: upstream: reported C repro on 2024/02/29 14:12
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+e1c1e6e68c2c44511424@syzkaller.appspotmail.com
First crash: 63d, last: 63d
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2024/02/29 linux-5.15.y (ToT) 458ce51d0356 C [report] BUG: corrupted list in fscache_free_cookie
2024/02/29 upstream (ToT) 805d849d7c3c C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in fscache_free_cookie fs 1 840d 835d 0/26 auto-obsoleted due to no activity on 2023/02/23 09:03
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/04/17 14:28 2h36m fix candidate upstream error job log (0)
2024/03/30 20:00 0m bisect fix linux-5.15.y error job log (0)

Sample crash report:
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
list_del corruption, ffff0000c0b48860->next is NULL
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:50!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3967 Comm: syz-executor126 Not tainted 5.15.149-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __list_del_entry_valid+0xe0/0x150 lib/list_debug.c:49
lr : __list_del_entry_valid+0xe0/0x150 lib/list_debug.c:49
sp : ffff80001a3675d0
x29: ffff80001a3675d0 x28: 0000000000000000 x27: 000000000000001a
x26: ffff0000c7a71400 x25: 0000000000000065 x24: ffff0000c0b488d2
x23: dfff800000000000 x22: 0000000000000000 x21: dfff800000000000
x20: 0000000000000000 x19: ffff0000c0b48860 x18: 0000000000000002
x17: 0000000000000000 x16: ffff800008333ac0 x15: 00000000ffffffff
x14: ffff0000c8863680 x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000000001 x10: 0000000000000000 x9 : ea5fb83aa34b7800
x8 : ea5fb83aa34b7800 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001a366d38 x4 : ffff8000149ff9a0 x3 : ffff800008333c0c
x2 : 0000000000000001 x1 : 0000000100000001 x0 : 0000000000000033
Call trace:
 __list_del_entry_valid+0xe0/0x150 lib/list_debug.c:49
 __list_del_entry include/linux/list.h:132 [inline]
 list_del include/linux/list.h:146 [inline]
 fscache_free_cookie+0x68/0x240 fs/fscache/cookie.c:71
 fscache_alloc_cookie+0x45c/0x5d4 fs/fscache/cookie.c:195
 __fscache_acquire_cookie+0x14c/0x878 fs/fscache/cookie.c:296
 fscache_acquire_cookie include/linux/fscache.h:334 [inline]
 v9fs_cache_session_get_cookie+0x1ac/0x240 fs/9p/cache.c:60
 v9fs_session_init+0x1170/0x1504 fs/9p/v9fs.c:473
 v9fs_mount+0x88/0x780 fs/9p/vfs_super.c:126
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611
 vfs_get_tree+0x90/0x274 fs/super.c:1517
 do_new_mount+0x278/0x8fc fs/namespace.c:3005
 path_mount+0x594/0x101c fs/namespace.c:3335
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount fs/namespace.c:3533 [inline]
 __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3533
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: d003ae80 91038000 aa1303e1 95bf1c10 (d4210000) 
---[ end trace 0263a6a54822108f ]---

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/29 14:43 linux-5.15.y 458ce51d0356 352ab904 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: corrupted list in fscache_free_cookie
2024/02/29 14:11 linux-5.15.y 458ce51d0356 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: corrupted list in fscache_free_cookie
* Struck through repros no longer work on HEAD.