syzbot


BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (2)

Status: auto-closed as invalid on 2022/05/13 11:55
Reported-by: syzbot+dcdc3ad90e7e39bc0b5a@syzkaller.appspotmail.com
First crash: 1042d, last: 805d
Similar bugs (17)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all 1 1438d 1438d 0/1 auto-closed as invalid on 2020/08/18 08:06
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (4) mm 8 2256d 2304d 0/26 closed as invalid on 2018/02/12 16:58
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (6) ext4 syz 7 1816d 1914d 0/26 closed as dup on 2018/12/31 07:50
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (7) tomoyo 7 1418d 1478d 0/26 closed as invalid on 2020/07/06 10:57
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (2) kernel 1 2333d 2333d 0/26 closed as invalid on 2017/11/09 10:06
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (8) kvm 11 1272d 1295d 0/26 auto-closed as invalid on 2021/01/30 15:56
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all fs 1 2368d 2368d 0/26 closed as invalid on 2017/10/18 09:51
linux-4.14 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all 2 1408d 1442d 0/1 auto-closed as invalid on 2020/09/17 07:42
upstream BUG: unable to handle kernel paging request in qlist_free_all (7) kernel 20 846d 1066d 0/26 auto-closed as invalid on 2022/03/03 13:56
linux-4.14 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (2) 3 1048d 1073d 0/1 auto-closed as invalid on 2021/09/12 03:17
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (5) fs 19 2162d 2219d 0/26 closed as invalid on 2018/05/26 17:43
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (3) mm 8 2306d 2323d 0/26 closed as invalid on 2017/12/05 10:45
upstream BUG: unable to handle kernel paging request in qlist_free_all (2) mm 4 2307d 2312d 0/26 closed as invalid on 2017/12/05 10:45
upstream BUG: unable to handle kernel paging request in qlist_free_all (5) fs 2 1827d 1828d 0/26 auto-closed as invalid on 2019/09/24 08:20
upstream BUG: unable to handle kernel paging request in qlist_free_all mm 1 2341d 2341d 0/26 closed as invalid on 2017/10/30 13:35
upstream BUG: unable to handle kernel paging request in qlist_free_all (4) kernel syz 17 2090d 2209d 0/26 closed as dup on 2018/07/08 14:57
upstream BUG: unable to handle kernel paging request in qlist_free_all (6) kernfs 1 1270d 1266d 0/26 auto-closed as invalid on 2021/01/03 14:25

Sample crash report:
Unknown ioctl -1006595045
BUG: unable to handle kernel NULL pointer dereference at 00000000000000fc
PGD 0 P4D 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4704 Comm: systemd-udevd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:qlink_to_object mm/kasan/quarantine.c:136 [inline]
RIP: 0010:qlink_free mm/kasan/quarantine.c:141 [inline]
RIP: 0010:qlist_free_all+0x28/0x140 mm/kasan/quarantine.c:166
Code: 90 90 41 57 41 56 41 55 41 54 55 53 48 8b 1f 48 85 db 0f 84 08 01 00 00 48 89 f5 49 89 fd 48 85 ed 49 89 ee 0f 84 8b 00 00 00 <49> 63 86 fc 00 00 00 4c 8b 23 48 29 c3 48 83 3d 93 10 59 08 00 0f
RSP: 0018:ffff88809b657ab0 EFLAGS: 00010246
RAX: ffffea0000000000 RBX: ffff888000000000 RCX: ffffea0000000007
RDX: 0000000000000000 RSI: ffffffff812b5eca RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: ffff888000000000
R13: ffff88809b657ae8 R14: 0000000000000000 R15: 0000000000000286
FS:  00007f39e34f88c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000000000fc CR3: 000000009c598000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 quarantine_reduce+0x1a9/0x230 mm/kasan/quarantine.c:259
 kasan_kmalloc+0xa2/0x160 mm/kasan/kasan.c:538
 slab_post_alloc_hook mm/slab.h:445 [inline]
 slab_alloc mm/slab.c:3397 [inline]
 kmem_cache_alloc+0x110/0x370 mm/slab.c:3557
 getname_flags+0xce/0x590 fs/namei.c:140
 user_path_at_empty+0x2a/0x50 fs/namei.c:2609
 do_readlinkat+0xcd/0x2f0 fs/stat.c:394
 __do_sys_readlinkat fs/stat.c:421 [inline]
 __se_sys_readlinkat fs/stat.c:418 [inline]
 __x64_sys_readlinkat+0x93/0xf0 fs/stat.c:418
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f39e236c0ba
Code: 48 8b 0d e1 bd 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 0b 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ae bd 2b 00 f7 d8 64 89 01 48
RSP: 002b:00007fff5696e938 EFLAGS: 00000206 ORIG_RAX: 000000000000010b
RAX: ffffffffffffffda RBX: 000055e0a4335900 RCX: 00007f39e236c0ba
RDX: 000055e0a4335900 RSI: 000055e0a4334e70 RDI: 00000000ffffff9c
RBP: 0000000000000064 R08: 000055e0a40f4670 R09: 0000000000000070
R10: 0000000000000063 R11: 0000000000000206 R12: 000055e0a4334e70
R13: 00000000ffffff9c R14: 00007fff5696e990 R15: 0000000000000063
Modules linked in:
CR2: 00000000000000fc
---[ end trace 2024c113fd20b2a1 ]---
RIP: 0010:qlink_to_object mm/kasan/quarantine.c:136 [inline]
RIP: 0010:qlink_free mm/kasan/quarantine.c:141 [inline]
RIP: 0010:qlist_free_all+0x28/0x140 mm/kasan/quarantine.c:166
Code: 90 90 41 57 41 56 41 55 41 54 55 53 48 8b 1f 48 85 db 0f 84 08 01 00 00 48 89 f5 49 89 fd 48 85 ed 49 89 ee 0f 84 8b 00 00 00 <49> 63 86 fc 00 00 00 4c 8b 23 48 29 c3 48 83 3d 93 10 59 08 00 0f
RSP: 0018:ffff88809b657ab0 EFLAGS: 00010246
RAX: ffffea0000000000 RBX: ffff888000000000 RCX: ffffea0000000007
RDX: 0000000000000000 RSI: ffffffff812b5eca RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: ffff888000000000
R13: ffff88809b657ae8 R14: 0000000000000000 R15: 0000000000000286
FS:  00007f39e34f88c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000000000fc CR3: 000000009c598000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	90                   	nop
   1:	90                   	nop
   2:	41 57                	push   %r15
   4:	41 56                	push   %r14
   6:	41 55                	push   %r13
   8:	41 54                	push   %r12
   a:	55                   	push   %rbp
   b:	53                   	push   %rbx
   c:	48 8b 1f             	mov    (%rdi),%rbx
   f:	48 85 db             	test   %rbx,%rbx
  12:	0f 84 08 01 00 00    	je     0x120
  18:	48 89 f5             	mov    %rsi,%rbp
  1b:	49 89 fd             	mov    %rdi,%r13
  1e:	48 85 ed             	test   %rbp,%rbp
  21:	49 89 ee             	mov    %rbp,%r14
  24:	0f 84 8b 00 00 00    	je     0xb5
* 2a:	49 63 86 fc 00 00 00 	movslq 0xfc(%r14),%rax <-- trapping instruction
  31:	4c 8b 23             	mov    (%rbx),%r12
  34:	48 29 c3             	sub    %rax,%rbx
  37:	48 83 3d 93 10 59 08 	cmpq   $0x0,0x8591093(%rip)        # 0x85910d2
  3e:	00
  3f:	0f                   	.byte 0xf

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/13 11:55 linux-4.19.y 3f8a27f9e27b 44d1319a .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all
2022/01/06 02:29 linux-4.19.y 3f8a27f9e27b 6acc789a .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all
2021/09/25 00:02 linux-4.19.y 2950c9c5e0df 8cac236e .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all
2021/07/24 09:54 linux-4.19.y 4938296e03bd 4d1b57d4 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all
2021/06/08 06:10 linux-4.19.y 1722257b8ece b718257f .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all
2021/05/30 19:23 linux-4.19.y 6b7b0056defc 325a8dab .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all
2021/05/21 12:22 linux-4.19.y 3c8c23092588 3c7fef33 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in qlist_free_all
2021/08/16 01:22 linux-4.19.y 59456c9cc40c 2489ab88 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in qlist_free_all
* Struck through repros no longer work on HEAD.