BUG: unable to handle kernel NULL pointer dereference at 00000000000000fd IP: qlist_free_all+0x37/0x160 mm/kasan/quarantine.c:163 PGD 1b076c067 P4D 1b076c067 PUD 1b346a067 PMD 0 Oops: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 22136 Comm: syz-executor5 Not tainted 4.16.0-rc7+ #280 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:qlist_free_all+0x37/0x160 mm/kasan/quarantine.c:163 RSP: 0018:ffff8801b56dfab8 EFLAGS: 00010246 RAX: ffff8801b29747c0 RBX: 0000000000000282 RCX: 0000000000000000 RDX: ffffea0006ca5d00 RSI: ffffea0006daa79f RDI: 0000000000000282 RBP: ffff8801b56dfaf0 R08: 1ffff10036adbf25 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000001 R14: ffff8801b29747c0 R15: ffffffff87acabe0 FS: 0000000000000000(0000) GS:ffff8801db300000(0063) knlGS:00000000f772eb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000000000fd CR3: 00000001da4a5005 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: quarantine_reduce+0x141/0x170 mm/kasan/quarantine.c:259 kasan_kmalloc+0xca/0xe0 mm/kasan/kasan.c:537 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:489 slab_post_alloc_hook mm/slab.h:443 [inline] slab_alloc mm/slab.c:3380 [inline] __do_kmalloc mm/slab.c:3704 [inline] __kmalloc+0x14b/0x760 mm/slab.c:3715 kmalloc include/linux/slab.h:517 [inline] sock_kmalloc+0x112/0x190 net/core/sock.c:1986 alg_setkey crypto/af_alg.c:215 [inline] alg_setsockopt+0x210/0x350 crypto/af_alg.c:256 C_SYSC_setsockopt net/compat.c:406 [inline] compat_SyS_setsockopt+0x2e7/0x410 net/compat.c:386 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline] do_fast_syscall_32+0x3ec/0xf9f arch/x86/entry/common.c:392 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f32c99 RSP: 002b:00000000f772e09c EFLAGS: 00000286 ORIG_RAX: 000000000000016e RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 0000000000000117 RDX: 0000000000000001 RSI: 0000000020933000 RDI: 0000000000000018 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Code: 55 48 89 e5 41 57 41 56 41 55 41 54 49 c7 c7 e0 ab ac 87 53 49 89 f4 48 83 ec 10 48 89 7d c8 4d 85 e4 4d 89 e5 0f 84 c8 00 00 00 <49> 63 95 fc 00 00 00 4c 8b 30 48 29 d0 49 83 3f 00 48 89 c6 0f RIP: qlist_free_all+0x37/0x160 mm/kasan/quarantine.c:163 RSP: ffff8801b56dfab8 CR2: 00000000000000fd ---[ end trace a08e004f65165ab7 ]---