2833 kernel_thread+0xc6/0xe0 kernel/fork.c:2227 create_kthread kernel/kthread.c:270 [inline] kthreadd+0x59c/0x900 kernel/kthread.c:589 7259 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:416 BUG: unable to handle kernel NULL pointer dereference at 00000000000008f4 7259 PGD 80000001a32d4067 P4D 80000001a32d4067 PUD 1a32d0067 PMD 0 Oops: 0002 [#1] SMP PTI CPU: 1 PID: 2685 Comm: syz-executor2 Not tainted 4.19.0-rc1+ #40 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:65 Code: c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 aa 4c 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 RSP: 0018:ffff88001327f2f8 EFLAGS: 00010046 Node 0 RAX: 0000000000000000 RBX: fffffffffffffff4 RCX: 0000000000000fb0 RDX: 0000000000000fb0 RSI: 0000000000000000 RDI: 00000000000008f4 RBP: ffff88001327f308 R08: ffff880046c5f140 R09: 00000000000008f4 DMA32 free:65792kB min:26324kB low:32904kB high:39484kB active_anon:515560kB inactive_anon:12kB active_file:60kB inactive_file:200kB unevictable:12kB writepending:0kB present:3129292kB managed:2906052kB mlocked:12kB kernel_stack:29120kB pagetables:21408kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB R10: 0000000000000000 R11: 000000008040002d R12: 00000000d6a001aa R13: 0000000000000000 R14: 0000000000000286 R15: fffffffffffffff4 FS: 00007f8c1865a700(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 lowmem_reserve[]: CR2: 00000000000008f4 CR3: 000000000d5ca000 CR4: 00000000001406e0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: 0 kmsan_thread_create+0x4b/0x90 mm/kmsan/kmsan_hooks.c:30 __kthread_create_on_node+0x71b/0x810 kernel/kthread.c:345 0 4425 kthread_create_on_node+0x23f/0x270 kernel/kthread.c:381 4425 cryptomgr_schedule_probe crypto/algboss.c:192 [inline] cryptomgr_notify+0xe08/0x12a0 crypto/algboss.c:274 notifier_call_chain kernel/notifier.c:93 [inline] __blocking_notifier_call_chain kernel/notifier.c:317 [inline] blocking_notifier_call_chain+0x1a6/0x2f0 kernel/notifier.c:328 Node 0 crypto_probing_notify crypto/api.c:254 [inline] crypto_alg_mod_lookup+0xbd9/0x1290 crypto/api.c:284 crypto_find_alg+0x20c/0x280 crypto/api.c:504 Normal free:60164kB min:41112kB low:51388kB high:61664kB active_anon:467120kB inactive_anon:432kB active_file:4840kB inactive_file:4480kB unevictable:0kB writepending:104kB present:4718592kB managed:4532152kB mlocked:0kB kernel_stack:16512kB pagetables:10828kB bounce:0kB free_pcp:348kB local_pcp:0kB free_cma:0kB crypto_type_has_alg+0xb0/0x150 crypto/algapi.c:1053 crypto_has_ahash+0x98/0xb0 crypto/ahash.c:545 lowmem_reserve[]: xfrm_probe_algs+0xa6/0x640 net/xfrm/xfrm_algo.c:787 pfkey_register+0x1de/0xc20 net/key/af_key.c:1720 0 pfkey_process net/key/af_key.c:2844 [inline] pfkey_sendmsg+0x1640/0x1a60 net/key/af_key.c:3683 0 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg net/socket.c:631 [inline] ___sys_sendmsg+0xe70/0x1290 net/socket.c:2114 0 0 __sys_sendmsg net/socket.c:2152 [inline] __do_sys_sendmsg net/socket.c:2161 [inline] __se_sys_sendmsg+0x2a3/0x3d0 net/socket.c:2159 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2159 Node 0 do_syscall_64+0xb8/0x100 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x457099 DMA: Code: fd b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f8c18659c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e 0*4kB RAX: ffffffffffffffda RBX: 00007f8c1865a6d4 RCX: 0000000000457099 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff 0*8kB R13: 00000000004d47e8 R14: 00000000004c8e6f R15: 0000000000000000 Modules linked in: 0*16kB Dumping ftrace buffer: (ftrace buffer empty) CR2: 00000000000008f4 ---[ end trace 994fa07da65171f0 ]--- 1*32kB RIP: 0010:memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:65 Code: c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 aa 4c 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 RSP: 0018:ffff88001327f2f8 EFLAGS: 00010046 (U) RAX: 0000000000000000 RBX: fffffffffffffff4 RCX: 0000000000000fb0 RDX: 0000000000000fb0 RSI: 0000000000000000 RDI: 00000000000008f4 RBP: ffff88001327f308 R08: ffff880046c5f140 R09: 00000000000008f4 R10: 0000000000000000 R11: 000000008040002d R12: 00000000d6a001aa 2*64kB R13: 0000000000000000 R14: 0000000000000286 R15: fffffffffffffff4 FS: 00007f8c1865a700(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000000008f4 CR3: 000000000d5ca000 CR4: 00000000001406e0 (U) DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600