__alloc_pages include/linux/gfp.h:475 [inline] __alloc_pages_node include/linux/gfp.h:488 [inline] alloc_pages_node include/linux/gfp.h:502 [inline] alloc_thread_stack_node kernel/fork.c:241 [inline] dup_task_struct kernel/fork.c:807 [inline] copy_process+0xb05/0xa950 kernel/fork.c:1709 _do_fork+0x339/0xfb0 kernel/fork.c:2168 kernel_thread+0xc6/0xe0 kernel/fork.c:2227 create_kthread kernel/kthread.c:270 [inline] kthreadd+0x59c/0x900 kernel/kthread.c:589 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:416 BUG: unable to handle kernel NULL pointer dereference at 00000000000008f4 PGD 80000001a60f0067 P4D 80000001a60f0067 PUD 1bad2e067 PMD 0 Oops: 0002 [#1] SMP PTI CPU: 1 PID: 20705 Comm: syz-executor5 Not tainted 4.19.0-rc1+ #41 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:ffff8800140ff708 EFLAGS: 00010046 RAX: 0000000000000000 RBX: fffffffffffffff4 RCX: 0000000000000fb0 RDX: 0000000000000fb0 RSI: 0000000000000000 RDI: 00000000000008f4 RBP: ffff8800140ff718 R08: 0000000000000000 R09: 00000000000008f4 R10: 0000000000000000 R11: ffffffff81355350 R12: 0000000092e0012b R13: 0000000000000000 R14: 0000000000000286 R15: fffffffffffffff4 FS: 00007fb30665d700(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000000008f4 CR3: 000000003037a000 CR4: 00000000001406e0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: kmsan_thread_create+0x4b/0x90 mm/kmsan/kmsan_hooks.c:30 __kthread_create_on_node+0x71b/0x810 kernel/kthread.c:345 kthread_create_on_node+0x23f/0x270 kernel/kthread.c:381 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 crypto_probing_notify crypto/api.c:254 [inline] crypto_alg_mod_lookup+0xbd9/0x1290 crypto/api.c:284 crypto_find_alg crypto/api.c:504 [inline] crypto_alloc_tfm+0x2b0/0x6c0 crypto/api.c:537 crypto_alloc_ahash+0x99/0xb0 crypto/ahash.c:539 hash_bind+0x8a/0xa0 crypto/algif_hash.c:408 alg_bind+0x8d8/0xd50 crypto/af_alg.c:183 __sys_bind+0x594/0x6f0 net/socket.c:1481 __do_sys_bind net/socket.c:1492 [inline] __se_sys_bind+0x8d/0xb0 net/socket.c:1490 __x64_sys_bind+0x4a/0x70 net/socket.c:1490 do_syscall_64+0xb8/0x100 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x457099 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:00007fb30665cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000031 RAX: ffffffffffffffda RBX: 00007fb30665d6d4 RCX: 0000000000457099 RDX: 0000000000000058 RSI: 0000000020000180 RDI: 0000000000000003 RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004cb5f0 R14: 00000000004c30c7 R15: 0000000000000000 Modules linked in: Dumping ftrace buffer: (ftrace buffer empty) CR2: 00000000000008f4 ---[ end trace 726054ad8abcf3da ]--- 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:ffff8800140ff708 EFLAGS: 00010046 RAX: 0000000000000000 RBX: fffffffffffffff4 RCX: 0000000000000fb0 RDX: 0000000000000fb0 RSI: 0000000000000000 RDI: 00000000000008f4 RBP: ffff8800140ff718 R08: 0000000000000000 R09: 00000000000008f4 R10: 0000000000000000 R11: ffffffff81355350 R12: 0000000092e0012b R13: 0000000000000000 R14: 0000000000000286 R15: fffffffffffffff4 FS: 00007fb30665d700(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000000008f4 CR3: 000000003037a000 CR4: 00000000001406e0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600