syzbot


BUG: unable to handle kernel NULL pointer dereference in qlist_free_all

Status: auto-closed as invalid on 2020/08/18 08:06
Reported-by: syzbot+35564d40863d265ca978@syzkaller.appspotmail.com
First crash: 1678d, last: 1678d
Similar bugs (12)
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 (2) 8 1045d 1282d 0/1 auto-closed as invalid on 2022/05/13 11:55
upstream BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (4) mm 8 2496d 2544d 0/28 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 2056d 2154d 0/28 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 1658d 1718d 0/28 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 2573d 2573d 0/28 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 1512d 1535d 0/28 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 2608d 2608d 0/28 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 1648d 1682d 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 1085d 1306d 0/28 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 1288d 1313d 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 2402d 2459d 0/28 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 2546d 2562d 0/28 closed as invalid on 2017/12/05 10:45

Sample crash report:
BUG: unable to handle kernel NULL pointer dereference at 00000000000000fc
PGD 20b8da067 P4D 20b8da067 PUD 214b34067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 29107 Comm: syz-executor.5 Not tainted 4.19.116-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: d6 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 b3 ce 34 07 00 0f
netlink: 8 bytes leftover after parsing attributes in process `syz-executor.0'.
RSP: 0000:ffff888213de7a90 EFLAGS: 00010246
RAX: ffffea0002b9a740 RBX: ffff8880ae69d940 RCX: ffffffffffffffff
RDX: 0000000000000000 RSI: ffffffff813001da RDI: 0000000000000007
RBP: 0000000000000000 R08: ffff88804da00400 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ae69d940
R13: ffff888213de7ac8 R14: 0000000000000000 R15: 0000000000000282
FS:  0000000000fdb940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
netlink: 8 bytes leftover after parsing attributes in process `syz-executor.0'.
CR2: 00000000000000fc CR3: 0000000213518000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 quarantine_reduce+0x164/0x1a0 mm/kasan/quarantine.c:259
 kasan_kmalloc+0x95/0xe0 mm/kasan/kasan.c:538
 slab_post_alloc_hook mm/slab.h:445 [inline]
 slab_alloc mm/slab.c:3397 [inline]
 kmem_cache_alloc+0x114/0x710 mm/slab.c:3557
netlink: 8 bytes leftover after parsing attributes in process `syz-executor.0'.
 anon_vma_chain_alloc mm/rmap.c:129 [inline]
 __anon_vma_prepare+0x59/0x3a0 mm/rmap.c:183
 anon_vma_prepare include/linux/rmap.h:153 [inline]
 do_huge_pmd_anonymous_page+0xe68/0x13e0 mm/huge_memory.c:688
 create_huge_pmd mm/memory.c:3932 [inline]
 __handle_mm_fault+0x2a04/0x3b60 mm/memory.c:4136
 handle_mm_fault+0x1a5/0x670 mm/memory.c:4202
 __do_page_fault+0x5ed/0xdd0 arch/x86/mm/fault.c:1412
 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1204
RIP: 0033:0x400604
Code: 06 e9 49 01 00 00 48 8b 44 24 10 48 0b 44 24 28 75 1f 48 8b 14 24 48 8b 7c 24 20 be 04 00 00 00 e8 f1 58 00 00 48 8b 74 24 08 <89> 06 e9 1e 01 00 00 48 8b 44 24 08 48 8b 14 24 be 04 00 00 00 8b
RSP: 002b:00007ffd0baaa280 EFLAGS: 00010206
RAX: 0000000100000001 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000100000001
RBP: 0000000000790060 R08: 0000000000000000 R09: 0000000000000000
R10: 00007ffd0baaa3a0 R11: 0000000000000246 R12: 0000000000790068
R13: 00000000001c34ea R14: fffffffffffffffe R15: 000000000078bf0c
Modules linked in:
CR2: 00000000000000fc
---[ end trace d23e7f52987eab72 ]---
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: d6 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 b3 ce 34 07 00 0f
RSP: 0000:ffff888213de7a90 EFLAGS: 00010246
RAX: ffffea0002b9a740 RBX: ffff8880ae69d940 RCX: ffffffffffffffff
RDX: 0000000000000000 RSI: ffffffff813001da RDI: 0000000000000007
RBP: 0000000000000000 R08: ffff88804da00400 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ae69d940
R13: ffff888213de7ac8 R14: 0000000000000000 R15: 0000000000000282
FS:  0000000000fdb940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000073b138 CR3: 0000000213518000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/20 08:05 linux-4.19.y 8488c3f3bc86 9f7c6d12 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.