syzbot


BUG: corrupted list in efivar_entry_remove

Status: upstream: reported C repro on 2022/08/26 11:10
Reported-by: syzbot+1902c359bfcaf39c46f2@syzkaller.appspotmail.com
First crash: 96d, last: 2d06h
Patch testing requests:
Created Duration User Patch Repo Result
2022/08/27 03:42 0m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git 680fb5b009e8 error
2022/08/27 02:39 0m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 680fb5b009e8 error

Sample crash report:
list_del corruption. prev->next should be ffff0000c9906828, but was ffff80000d58a600. (prev=ffff80000d58a600)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:61!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 3046 Comm: syz-executor417 Not tainted 6.1.0-rc4-syzkaller-31872-g1621b6eaebf7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __list_del_entry_valid+0xbc/0xd0 lib/list_debug.c:59
lr : __list_del_entry_valid+0xbc/0xd0 lib/list_debug.c:59
sp : ffff800012b93b00
x29: ffff800012b93b00 x28: 00000000000a0003 x27: 0000000000000000
x26: ffff0000ca99e270 x25: 0000000000000000 x24: ffff0000c049b288
x23: ffff0000c5a28828 x22: 0000000000000000 x21: ffff8000093e492c
x20: ffff80000d58a600 x19: ffff0000c9906000 x18: 0000000000000303
x17: ffff80000c04d83c x16: ffff80000db1a158 x15: ffff0000c98f4ec0
x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c98f4ec0
x11: ff808000081c06c8 x10: 0000000000000000 x9 : 9d643ca174780900
x8 : 9d643ca174780900 x7 : ffff800008162114 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : ffff0001fefbecc8 x1 : 0000000100000000 x0 : 000000000000006d
Call trace:
 __list_del_entry_valid+0xbc/0xd0 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+0x20/0x68 fs/efivarfs/vars.c:488
 efivarfs_destroy+0x20/0x3c fs/efivarfs/super.c:183
 efivar_entry_iter+0x64/0xac fs/efivarfs/vars.c:715
 efivarfs_kill_sb+0x38/0x48 fs/efivarfs/super.c:244
 deactivate_locked_super+0x70/0xe8 fs/super.c:332
 deactivate_super+0xd0/0xd4 fs/super.c:363
 put_fs_context+0x40/0x2ac fs/fs_context.c:465
 fscontext_release+0x30/0x4c fs/fsopen.c:73
 __fput+0x198/0x3e4 fs/file_table.c:320
 ____fput+0x20/0x30 fs/file_table.c:348
 task_work_run+0x100/0x148 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0x2dc/0xcac kernel/exit.c:820
 __arm64_sys_exit_group+0x0/0x18 kernel/exit.c:950
 __do_sys_exit_group kernel/exit.c:961 [inline]
 __se_sys_exit_group kernel/exit.c:959 [inline]
 __wake_up_parent+0x0/0x40 kernel/exit.c:959
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584
Code: b001b0e0 91392000 aa0803e3 94a83015 (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (20):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-arm64 2022/11/11 04:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config log report syz C BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/08/22 11:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config log report syz C BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/11/24 18:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 62e26685 .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/11/22 04:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a77d28d13789 1c576c23 .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/11/20 13:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 5bb70014 .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/11/19 08:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 5bb70014 .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/11/15 09:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9e4ce762f0e7 97de9cfc .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/11/07 13:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f0c4d9fc9cc9 a779b11a .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/11/04 19:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/10/15 16:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/10/15 07:54 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/10/14 04:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4954e4b2 .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/10/07 10:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 8a212197 .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/09/30 14:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5911b92626df feb56351 .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/09/30 02:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5911b92626df 1d385642 .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/09/29 11:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 1d385642 .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/09/20 10:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 7c41a9ba .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/09/20 05:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/09/17 15:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config log report info BUG: corrupted list in efivar_entry_remove
ci-upstream-gce-arm64 2022/09/07 22:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c c5b7bc57 .config log report info BUG: corrupted list in efivar_entry_remove
* Struck through repros no longer work on HEAD.