[v6.1] BUG: corrupted list in efivar_entry_remove

3 views
Skip to first unread message

syzbot

unread,
Mar 14, 2023, 5:45:46 AM3/14/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6449a0ba6843 Linux 6.1.19
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1342ea72c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=75eadb21ef1208e4
dashboard link: https://syzkaller.appspot.com/bug?extid=246ea4feed277471958a
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/dc227ecd3e21/disk-6449a0ba.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/1d08e21b50c2/vmlinux-6449a0ba.xz
kernel image: https://storage.googleapis.com/syzbot-assets/71a43f2c4d2c/Image-6449a0ba.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+246ea4...@syzkaller.appspotmail.com

------------[ cut here ]------------
kernel BUG at lib/list_debug.c:61!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 13909 Comm: syz-executor.5 Not tainted 6.1.19-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+0x13c/0x158 lib/list_debug.c:59
lr : __list_del_entry_valid+0x13c/0x158 lib/list_debug.c:59
sp : ffff800023e777b0
x29: ffff800023e777b0 x28: 1fffe0001aec81ef x27: 1fffe0001aec81e5
x26: ffff0000d7640f28 x25: ffff0000c04d1950 x24: ffff000101ea4828
x23: dfff800000000000 x22: dfff800000000000 x21: ffff800015eb0f00
x20: ffff000101ea4828 x19: ffff000101ea2828 x18: 1fffe000368b0376
x17: ffff80001572d000 x16: ffff800012253e1c x15: ffff0001b4581bbc
x14: 1ffff00002ae60b0 x13: dfff800000000000 x12: 0000000000000001
x11: ff8080000834cb14 x10: 0000000000000000 x9 : 28b18d55fca94d00
x8 : 28b18d55fca94d00 x7 : ffff800008281b70 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000ab36c2c
x2 : ffff0001b4581cd0 x1 : 0000000100000000 x0 : 000000000000006d
Call trace:
__list_del_entry_valid+0x13c/0x158 lib/list_debug.c:59
__list_del_entry include/linux/list.h:134 [inline]
list_del include/linux/list.h:148 [inline]
efivar_entry_remove+0x38/0x110 fs/efivarfs/vars.c:488
efivarfs_destroy+0x20/0x3c fs/efivarfs/super.c:183
efivar_entry_iter+0x94/0xdc fs/efivarfs/vars.c:715
efivarfs_kill_sb+0x38/0x48 fs/efivarfs/super.c:244
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
put_fs_context+0x88/0x790 fs/fs_context.c:465
fscontext_release+0x64/0x84 fs/fsopen.c:73
__fput+0x30c/0x7bc fs/file_table.c:320
____fput+0x20/0x30 fs/file_table.c:348
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: 913a8000 aa1303e1 aa1503e3 95daaf25 (d4210000)
---[ end trace 0000000000000000 ]---


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Mar 14, 2023, 7:13:00 PM3/14/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 6449a0ba6843 Linux 6.1.19
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=128e196cc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=75eadb21ef1208e4
dashboard link: https://syzkaller.appspot.com/bug?extid=246ea4feed277471958a
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=17c20c3ac80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1173b51ac80000
list_del corruption. prev->next should be ffff0000d93fc828, but was ffff800015eb0f00. (prev=ffff800015eb0f00)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:61!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4334 Comm: syz-executor275 Not tainted 6.1.19-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+0x13c/0x158 lib/list_debug.c:59
lr : __list_del_entry_valid+0x13c/0x158 lib/list_debug.c:59
sp : ffff80001dcd7890
x29: ffff80001dcd7890 x28: 1fffe0001ad69b2f x27: 1fffe0001ad69b25
x26: ffff0000d6b4d928 x25: ffff0000c04d1950 x24: ffff0000d93fe828
x23: dfff800000000000 x22: dfff800000000000 x21: ffff800015eb0f00
x20: ffff0000d93fe828 x19: ffff0000d93fc828 x18: 1fffe000368b4376
x17: ffff80001572d000 x16: ffff800012253e1c x15: ffff0001b45a1bbc
x14: 1ffff00002ae60b0 x13: dfff800000000000 x12: 0000000000000001
x11: ff8080000834cb14 x10: 0000000000000000 x9 : 92244c0949be8900
x8 : 92244c0949be8900 x7 : ffff800008281b70 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000ab36c2c
x2 : ffff0001b45a1cd0 x1 : 0000000100000000 x0 : 000000000000006d
Call trace:
__list_del_entry_valid+0x13c/0x158 lib/list_debug.c:59
__list_del_entry include/linux/list.h:134 [inline]
list_del include/linux/list.h:148 [inline]
efivar_entry_remove+0x38/0x110 fs/efivarfs/vars.c:488
efivarfs_destroy+0x20/0x3c fs/efivarfs/super.c:183
efivar_entry_iter+0x94/0xdc fs/efivarfs/vars.c:715
efivarfs_kill_sb+0x38/0x48 fs/efivarfs/super.c:244
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
put_fs_context+0x88/0x790 fs/fs_context.c:465
fscontext_release+0x64/0x84 fs/fsopen.c:73
__fput+0x30c/0x7bc fs/file_table.c:320
____fput+0x20/0x30 fs/file_table.c:348
task_work_run+0x240/0x2f0 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0x554/0x1a88 kernel/exit.c:869
do_group_exit+0x194/0x22c kernel/exit.c:1019
__do_sys_exit_group kernel/exit.c:1030 [inline]
__se_sys_exit_group kernel/exit.c:1028 [inline]
__wake_up_parent+0x0/0x60 kernel/exit.c:1028
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637

syzbot

unread,
Mar 14, 2023, 7:58:42 PM3/14/23
to syzkaller...@googlegroups.com
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 ]---


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages