syzbot


general protection fault in klist_iter_exit

Status: auto-closed as invalid on 2022/04/04 03:07
Reported-by: syzbot+8bed1c10e381002a5ecb@syzkaller.appspotmail.com
First crash: 1083d, last: 1083d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in klist_iter_exit C error 89 816d 1319d 0/1 upstream: reported C repro on 2021/04/12 19:06
android-54 general protection fault in klist_iter_exit 1 1064d 1064d 0/2 auto-closed as invalid on 2022/04/22 15:11
upstream general protection fault in klist_iter_exit net nfc C unreliable inconclusive 54 1049d 1356d 0/28 auto-obsoleted due to no activity on 2022/09/16 23:48
android-5-10 general protection fault in klist_iter_exit C error 5 1076d 1113d 1/2 fixed on 2021/12/20 18:14

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 9169 Comm: kworker/0:4 Not tainted 4.14.256-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events netlink_sock_destruct_work
task: ffff8880992b8200 task.stack: ffff888099260000
RIP: 0010:klist_iter_exit+0x21/0x80 lib/klist.c:314
RSP: 0018:ffff888099267c80 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000040173
R10: ffff8880992b8ad8 R11: ffff8880992b8200 R12: 0000000000000000
R13: ffffffff88724a60 R14: ffff8880ba433b00 R15: ffff8880ba438000
FS:  0000000000000000(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f42687aa906 CR3: 000000009ec42000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 nfc_device_iter_exit net/nfc/nfc.h:133 [inline]
 nfc_genl_dump_devices_done+0x31/0x50 net/nfc/netlink.c:669
 genl_lock_done+0x82/0xc0 net/netlink/genetlink.c:494
 netlink_sock_destruct+0x8b/0x250 net/netlink/af_netlink.c:366
 __sk_destruct+0x49/0x760 net/core/sock.c:1574
 sk_destruct net/core/sock.c:1615 [inline]
 __sk_free+0xd9/0x2d0 net/core/sock.c:1623
 sk_free+0x2b/0x40 net/core/sock.c:1634
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2117
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Code: ff 66 0f 1f 84 00 00 00 00 00 41 54 55 53 48 89 fb e8 04 bc 57 fa 48 8d 6b 08 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03 <80> 3c 02 00 75 40 4c 8b 63 08 4d 85 e4 74 2e e8 db bb 57 fa 31 
RIP: klist_iter_exit+0x21/0x80 lib/klist.c:314 RSP: ffff888099267c80
---[ end trace 0fccd39209cdc354 ]---
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	66 0f 1f 84 00 00 00 	nopw   0x0(%rax,%rax,1)
   7:	00 00
   9:	41 54                	push   %r12
   b:	55                   	push   %rbp
   c:	53                   	push   %rbx
   d:	48 89 fb             	mov    %rdi,%rbx
  10:	e8 04 bc 57 fa       	callq  0xfa57bc19
  15:	48 8d 6b 08          	lea    0x8(%rbx),%rbp
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 ea             	mov    %rbp,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	75 40                	jne    0x70
  30:	4c 8b 63 08          	mov    0x8(%rbx),%r12
  34:	4d 85 e4             	test   %r12,%r12
  37:	74 2e                	je     0x67
  39:	e8 db bb 57 fa       	callq  0xfa57bc19
  3e:	31                   	.byte 0x31

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/05 03:06 linux-4.14.y 66722c42ec91 a617004c .config console log report info ci2-linux-4-14 general protection fault in klist_iter_exit
* Struck through repros no longer work on HEAD.