syzbot


general protection fault in klist_iter_exit

Status: auto-closed as invalid on 2022/04/22 15:11
Reported-by: syzbot+2cb12152d44f3995081d@syzkaller.appspotmail.com
First crash: 1064d, last: 1064d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in klist_iter_exit 1 1083d 1083d 0/1 auto-closed as invalid on 2022/04/04 03:07
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
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
CPU: 1 PID: 31432 Comm: kworker/1:6 Not tainted 5.4.147-syzkaller-00015-g5b673be0c6b0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events netlink_sock_destruct_work
RIP: 0010:klist_iter_exit+0x27/0xf0 lib/klist.c:313
Code: 44 00 00 55 41 57 41 56 41 55 41 54 53 49 89 ff 48 bd 00 00 00 00 00 fc ff df e8 94 74 42 fd 49 83 c7 08 4d 89 fd 49 c1 ed 03 <41> 80 7c 2d 00 00 74 08 4c 89 ff e8 e9 90 6f fd 4d 8b 37 4d 85 f6
RSP: 0018:ffff8881e55ffc58 EFLAGS: 00010202
RAX: ffffffff841e5c2c RBX: 0000000000000000 RCX: ffff8881c74d6e40
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000000
RBP: dffffc0000000000 R08: dffffc0000000000 R09: ffffed103cabff8d
R10: ffffed103cabff8d R11: 0000000000000000 R12: 1ffffffff0a5148b
R13: 0000000000000001 R14: ffff8881e381f398 R15: 0000000000000008
FS:  0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcf083df028 CR3: 00000001e0898000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 nfc_device_iter_exit net/nfc/nfc.h:121 [inline]
 nfc_genl_dump_devices_done+0x37/0x50 net/nfc/netlink.c:647
 genl_lock_done+0x7b/0xa0 net/netlink/genetlink.c:495
 netlink_sock_destruct+0x79/0x250 net/netlink/af_netlink.c:389
 __sk_destruct+0x50/0x400 net/core/sock.c:1698
 process_one_work+0x679/0x1030 kernel/workqueue.c:2278
 worker_thread+0xa6f/0x1400 kernel/workqueue.c:2424
 kthread+0x30f/0x330 kernel/kthread.c:288
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace e80cfd74d98ccf1a ]---
RIP: 0010:klist_iter_exit+0x27/0xf0 lib/klist.c:313
Code: 44 00 00 55 41 57 41 56 41 55 41 54 53 49 89 ff 48 bd 00 00 00 00 00 fc ff df e8 94 74 42 fd 49 83 c7 08 4d 89 fd 49 c1 ed 03 <41> 80 7c 2d 00 00 74 08 4c 89 ff e8 e9 90 6f fd 4d 8b 37 4d 85 f6
RSP: 0018:ffff8881e55ffc58 EFLAGS: 00010202
RAX: ffffffff841e5c2c RBX: 0000000000000000 RCX: ffff8881c74d6e40
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000000
RBP: dffffc0000000000 R08: dffffc0000000000 R09: ffffed103cabff8d
R10: ffffed103cabff8d R11: 0000000000000000 R12: 1ffffffff0a5148b
R13: 0000000000000001 R14: ffff8881e381f398 R15: 0000000000000008
FS:  0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001d54bb000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	44 00 00             	add    %r8b,(%rax)
   3:	55                   	push   %rbp
   4:	41 57                	push   %r15
   6:	41 56                	push   %r14
   8:	41 55                	push   %r13
   a:	41 54                	push   %r12
   c:	53                   	push   %rbx
   d:	49 89 ff             	mov    %rdi,%r15
  10:	48 bd 00 00 00 00 00 	movabs $0xdffffc0000000000,%rbp
  17:	fc ff df
  1a:	e8 94 74 42 fd       	callq  0xfd4274b3
  1f:	49 83 c7 08          	add    $0x8,%r15
  23:	4d 89 fd             	mov    %r15,%r13
  26:	49 c1 ed 03          	shr    $0x3,%r13
* 2a:	41 80 7c 2d 00 00    	cmpb   $0x0,0x0(%r13,%rbp,1) <-- trapping instruction
  30:	74 08                	je     0x3a
  32:	4c 89 ff             	mov    %r15,%rdi
  35:	e8 e9 90 6f fd       	callq  0xfd6f9123
  3a:	4d 8b 37             	mov    (%r15),%r14
  3d:	4d 85 f6             	test   %r14,%r14

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/23 15:10 android12-5.4 5b673be0c6b0 6caa12e4 .config console log report info ci2-android-5-4-kasan general protection fault in klist_iter_exit
* Struck through repros no longer work on HEAD.