Hello,
syzbot found the following issue on:
HEAD commit: 2ddbd0f967b3 Linux 5.15.102
git tree: linux-5.15.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=1007e048c80000
kernel config:
https://syzkaller.appspot.com/x/.config?x=d6af46e4bd7d6a2f
dashboard link:
https://syzkaller.appspot.com/bug?extid=75dc11b3aa0369757b7c
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=1786d472c80000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=14d8d3fac80000
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/d46a989959b6/disk-2ddbd0f9.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/4d06a9b2ddaf/vmlinux-2ddbd0f9.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/0921009430c0/Image-2ddbd0f9.gz.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+75dc11...@syzkaller.appspotmail.com
list_del corruption. prev->next should be ffff0000cebec828, but was ffff0000cdd82828
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:61!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4072 Comm: syz-executor301 Not tainted 5.15.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __list_del_entry_valid+0x138/0x150 lib/list_debug.c:59
lr : __list_del_entry_valid+0x138/0x150 lib/list_debug.c:59
sp : ffff80001c9378b0
x29: ffff80001c9378b0 x28: 1fffe0001b48a5f0 x27: 0000000000000000
x26: dfff800000000000 x25: ffff8000150e74e0 x24: 1fffe0001b478a96
x23: dfff800000000000 x22: ffff8000150e74e0 x21: dfff800000000000
x20: ffff8000150e74e0 x19: ffff0000cebec828 x18: 1fffe0003690058e
x17: 1fffe0003690058e x16: ffff800011a080c4 x15: ffff800014a5f8e0
x14: 1ffff0000293806a x13: ffffffffffffffff x12: 0000000000000000
x11: ff80800008330148 x10: 0000000000000000 x9 : 0767611bda951100
x8 : 0767611bda951100 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a9bcc40
x2 : ffff0001b4802d10 x1 : 0000000100000000 x0 : 0000000000000054
Call trace:
__list_del_entry_valid+0x138/0x150 lib/list_debug.c:59
__list_del_entry include/linux/list.h:132 [inline]
list_del include/linux/list.h:146 [inline]
efivar_entry_remove+0x64/0x14c drivers/firmware/efi/vars.c:539
efivarfs_destroy+0x20/0x5c fs/efivarfs/super.c:185
__efivar_entry_iter+0x11c/0x19c drivers/firmware/efi/vars.c:1089
efivarfs_kill_sb+0x3c/0x4c fs/efivarfs/super.c:249
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
put_fs_context+0x88/0x7e4 fs/fs_context.c:465
fscontext_release+0x64/0x84 fs/fsopen.c:73
__fput+0x30c/0x7f0 fs/file_table.c:280
____fput+0x20/0x30 fs/file_table.c:308
task_work_run+0x130/0x1e4 kernel/task_work.c:164
exit_task_work include/linux/task_work.h:32 [inline]
do_exit+0x55c/0x1c20 kernel/exit.c:872
do_group_exit+0x110/0x268 kernel/exit.c:994
__do_sys_exit_group kernel/exit.c:1005 [inline]
__se_sys_exit_group kernel/exit.c:1003 [inline]
__wake_up_parent+0x0/0x60 kernel/exit.c:1003
__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:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 <unknown>:584
Code: d003afe0 913c8000 aa1303e1 95bf9ba6 (d4210000)
---[ end trace 1451094c0941ccb4 ]---
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches