syzbot


general protection fault in klist_next

Status: closed as invalid on 2022/10/05 09:58
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 180d, last: 126d

Cause bisection: failed (bisect log)
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in klist_next C 1 125d 125d 0/24 auto-obsoleted due to no activity on 2023/02/02 18:22

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000000b: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000058-0x000000000000005f]
CPU: 0 PID: 3608 Comm: syz-executor957 Not tainted 6.0.0-rc2-syzkaller-00327-g8379c0b31fbc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:klist_next+0x49/0x510 lib/klist.c:377
Code: 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 2e 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 2b 48 8d 7d 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 33 04 00 00 4c 8d 6b 08 4c 8b 7d 58 48 b8 00 00
RSP: 0018:ffffc900038cfa60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffc900038cfad8 RCX: 0000000000000000
RDX: 000000000000000b RSI: ffffffff8420c276 RDI: 0000000000000058
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffffffff886029c0 R14: 1ffff92000719f57 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc482680078 CR3: 000000000bc8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 next_device drivers/base/core.c:3756 [inline]
 device_find_child+0xba/0x190 drivers/base/core.c:3899
 hci_conn_del_sysfs+0xc7/0x180 net/bluetooth/hci_sysfs.c:71
 hci_conn_cleanup+0x315/0x7b0 net/bluetooth/hci_conn.c:147
 hci_conn_del+0x29b/0x790 net/bluetooth/hci_conn.c:1022
 hci_conn_hash_flush+0x197/0x260 net/bluetooth/hci_conn.c:2367
 hci_dev_close_sync+0x55d/0x1130 net/bluetooth/hci_sync.c:4476
 hci_dev_do_close+0x2d/0x70 net/bluetooth/hci_core.c:554
 hci_unregister_dev+0x17f/0x4e0 net/bluetooth/hci_core.c:2682
 vhci_release+0x7c/0xf0 drivers/bluetooth/hci_vhci.c:568
 __fput+0x277/0x9d0 fs/file_table.c:320
 task_work_run+0xdd/0x1a0 kernel/task_work.c:177
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xad5/0x29b0 kernel/exit.c:795
 do_group_exit+0xd2/0x2f0 kernel/exit.c:925
 __do_sys_exit_group kernel/exit.c:936 [inline]
 __se_sys_exit_group kernel/exit.c:934 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:934
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc4826295e9
Code: Unable to access opcode bytes at RIP 0x7fc4826295bf.
RSP: 002b:00007ffc510e6b08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007fc4826b4390 RCX: 00007fc4826295e9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffb8 R09: 00007ffc510e65d0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc4826b4390
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:klist_next+0x49/0x510 lib/klist.c:377
Code: 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 2e 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 2b 48 8d 7d 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 33 04 00 00 4c 8d 6b 08 4c 8b 7d 58 48 b8 00 00
RSP: 0018:ffffc900038cfa60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffc900038cfad8 RCX: 0000000000000000
RDX: 000000000000000b RSI: ffffffff8420c276 RDI: 0000000000000058
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffffffff886029c0 R14: 1ffff92000719f57 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc482680078 CR3: 000000000bc8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 4 bytes skipped:
   0:	48 c1 ea 03          	shr    $0x3,%rdx
   4:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   8:	0f 85 2e 04 00 00    	jne    0x43c
   e:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  15:	fc ff df
  18:	48 8b 2b             	mov    (%rbx),%rbp
  1b:	48 8d 7d 58          	lea    0x58(%rbp),%rdi
  1f:	48 89 fa             	mov    %rdi,%rdx
  22:	48 c1 ea 03          	shr    $0x3,%rdx
* 26:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2a:	0f 85 33 04 00 00    	jne    0x463
  30:	4c 8d 6b 08          	lea    0x8(%rbx),%r13
  34:	4c 8b 7d 58          	mov    0x58(%rbp),%r15
  38:	48                   	rex.W
  39:	b8                   	.byte 0xb8

Crashes (33):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce 2022/08/29 11:01 upstream 8379c0b31fbc 07177916 .config strace log report syz C general protection fault in klist_next
ci-upstream-kasan-gce-root 2022/08/22 10:28 upstream e3f259d33c0e 26a13b38 .config strace log report syz C general protection fault in klist_next
ci-upstream-kasan-gce 2022/08/12 03:47 upstream 7ebfc85e2cd7 787ed7e0 .config strace log report syz C general protection fault in klist_next
ci-upstream-gce-arm64 2022/09/23 05:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 16c9f284e746 0042f2b4 .config console log report syz C [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in klist_next
ci-upstream-gce-arm64 2022/08/29 10:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 07177916 .config console log report syz C BUG: unable to handle kernel NULL pointer dereference in klist_next
ci-upstream-kasan-gce-root 2022/10/05 05:20 upstream a5088ee7251e eab8f949 .config console log report info [disk image] [vmlinux] general protection fault in klist_next
ci-upstream-kasan-gce 2022/09/29 23:03 upstream 511cce163b75 1d385642 .config console log report info [disk image] [vmlinux] general protection fault in klist_next
ci-upstream-kasan-gce 2022/09/26 05:25 upstream f76349cf4145 0042f2b4 .config console log report info general protection fault in klist_next
ci-upstream-kasan-gce-root 2022/09/23 14:33 upstream bf682942cd26 0042f2b4 .config console log report info general protection fault in klist_next
ci-upstream-kasan-gce 2022/09/22 23:53 upstream dc164f4fb00a 0042f2b4 .config console log report info [disk image] [vmlinux] general protection fault in klist_next
ci-upstream-kasan-gce-selinux-root 2022/09/22 06:40 upstream 06f7db949993 60af5050 .config console log report info general protection fault in klist_next
ci-upstream-kasan-gce 2022/09/21 13:52 upstream 60891ec99e14 380f82fb .config console log report info general protection fault in klist_next
ci-upstream-kasan-gce 2022/09/16 08:13 upstream 3245cb65fd91 dd9a85ff .config console log report info [disk image] [vmlinux] general protection fault in klist_next
ci-upstream-kasan-gce-root 2022/09/14 06:23 upstream d1221cea11fc b884348d .config console log report info [disk image] [vmlinux] general protection fault in klist_next
ci-upstream-kasan-gce-smack-root 2022/09/12 03:59 upstream 4ed9c1e971b1 356d8217 .config console log report info [disk image] [vmlinux] general protection fault in klist_next
ci-upstream-kasan-gce 2022/09/08 17:39 upstream 26b1224903b3 f3027468 .config console log report info [disk image] [vmlinux] general protection fault in klist_next
ci-upstream-kasan-gce-root 2022/08/29 10:09 upstream 8379c0b31fbc 07177916 .config console log report info general protection fault in klist_next
ci-upstream-kasan-gce 2022/08/29 09:53 upstream 8379c0b31fbc 07177916 .config console log report info general protection fault in klist_next
ci-upstream-kasan-gce-root 2022/08/17 13:43 upstream 7ebfc85e2cd7 4e72d229 .config console log report info general protection fault in klist_next
ci-upstream-kasan-gce 2022/08/12 03:30 upstream 7ebfc85e2cd7 787ed7e0 .config console log report info general protection fault in klist_next
ci-upstream-kasan-gce-386 2022/08/28 21:20 upstream 10d4879f9ef0 07177916 .config console log report info general protection fault in klist_next
ci-upstream-linux-next-kasan-gce-root 2022/08/28 18:49 linux-next 8d0c42c9e807 07177916 .config console log report info general protection fault in klist_next
ci-upstream-linux-next-kasan-gce-root 2022/08/12 22:17 linux-next 6c8f479764eb 402cd70d .config console log report info general protection fault in klist_next
ci-upstream-linux-next-kasan-gce-root 2022/08/12 03:17 linux-next 6c8f479764eb 787ed7e0 .config console log report info general protection fault in klist_next
ci-upstream-gce-arm64 2022/09/22 07:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aa49f95768a9 60af5050 .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in klist_next
ci-upstream-gce-arm64 2022/09/21 17:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 4a4a085d97ce 380f82fb .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in klist_next
ci-upstream-gce-arm64 2022/09/21 05:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5aa266bb455b c4b8ccfd .config console log report info BUG: unable to handle kernel NULL pointer dereference in klist_next
ci-upstream-gce-arm64 2022/09/19 03:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in klist_next
ci-upstream-gce-arm64 2022/09/17 01:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config console log report info [disk image] [vmlinux] BUG: unable to handle kernel NULL pointer dereference in klist_next
ci-upstream-gce-arm64 2022/09/15 00:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 b884348d .config console log report info BUG: unable to handle kernel NULL pointer dereference in klist_next
ci-upstream-gce-arm64 2022/09/08 08:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c 435aeef7 .config console log report info BUG: unable to handle kernel NULL pointer dereference in klist_next
ci-upstream-gce-arm64 2022/09/05 02:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e 28811d0a .config console log report info BUG: unable to handle kernel NULL pointer dereference in klist_next
ci-qemu2-riscv64 2022/08/27 22:26 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 07177916 .config console log report info KASAN: wild-memory-access Read in klist_next
* Struck through repros no longer work on HEAD.