QAT: Invalid ioctl BUG: unable to handle kernel NULL pointer dereference at 0000000000000020 IP: __crypto_alg_lookup+0x43/0x190 crypto/api.c:63 PGD 1ff46f067 P4D 1ff46f067 PUD 1fd0e9067 PMD 0 Oops: 0000 [#1] SMP Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 15470 Comm: syz-executor7 Not tainted 4.15.0-rc3-next-20171214+ #67 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__crypto_alg_lookup+0x43/0x190 crypto/api.c:63 RSP: 0018:ffffc9000108f968 EFLAGS: 00010216 RAX: 0000000000010000 RBX: 0000000000000000 RCX: ffffffff816741f3 RDX: 000000000000020b RSI: ffffc90000df9000 RDI: ffff8801fcf10481 RBP: ffffc9000108f9b0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffc9000108f930 R11: 0000000000000000 R12: 0000000000000000 R13: 00000000ffffffff R14: 000000000000240e R15: 000000000000040f FS: 00007f47c0ae2700(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000020 CR3: 00000001f18e0001 CR4: 00000000001626f0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: crypto_alg_lookup+0x31/0x50 crypto/api.c:201 crypto_larval_lookup.part.8+0x34/0x1c0 crypto/api.c:218 crypto_larval_lookup crypto/api.c:212 [inline] crypto_alg_mod_lookup+0x77/0x120 crypto/api.c:271 crypto_find_alg+0x63/0x70 crypto/api.c:501 crypto_type_has_alg+0x2d/0x70 crypto/algapi.c:1044 crypto_has_ahash+0x2c/0x40 crypto/ahash.c:546 xfrm_probe_algs+0x4b/0x180 net/xfrm/xfrm_algo.c:787 pfkey_register+0x6d/0x2a0 net/key/af_key.c:1687 pfkey_process+0x255/0x290 net/key/af_key.c:2809 pfkey_sendmsg+0x193/0x310 net/key/af_key.c:3648 sock_sendmsg_nosec net/socket.c:636 [inline] sock_sendmsg+0x51/0x70 net/socket.c:646 ___sys_sendmsg+0x35e/0x3b0 net/socket.c:2026 __sys_sendmsg+0x50/0x90 net/socket.c:2060 SYSC_sendmsg net/socket.c:2071 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2067 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x452a09 RSP: 002b:00007f47c0ae1c58 EFLAGS: 00000212 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452a09 RDX: 0000000000000000 RSI: 000000002053afc8 RDI: 0000000000000014 RBP: 000000000000056d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f52d8 R13: 00000000ffffffff R14: 00007f47c0ae26d4 R15: 0000000000000000 Code: 89 7d d0 e8 70 61 c4 ff 48 8b 1d 89 df a6 01 48 81 fb 60 21 0e 83 0f 84 4c 01 00 00 c7 45 c4 fe ff ff ff 45 31 e4 e8 4d 61 c4 ff <44> 8b 6b 20 41 f6 c5 60 0f 85 03 01 00 00 e8 3a 61 c4 ff 44 89 RIP: __crypto_alg_lookup+0x43/0x190 crypto/api.c:63 RSP: ffffc9000108f968 CR2: 0000000000000020 ---[ end trace f4229255031ee42a ]---