BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1259 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 8260, name: syz-executor.1 2 locks held by syz-executor.1/8260: #0: ffffffff892e89d0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x9/0x30 include/linux/rcupdate.h:241 #1: ffff888098244828 (&mm->mmap_sem#2){++++}-{3:3}, at: do_user_addr_fault+0x344/0xba0 arch/x86/mm/fault.c:1242 Preemption disabled at: [] irq_enter+0x64/0x100 kernel/softirq.c:358 CPU: 0 PID: 8260 Comm: syz-executor.1 Not tainted 5.7.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1e9/0x30e lib/dump_stack.c:118 ___might_sleep+0x3c0/0x570 kernel/sched/core.c:6877 do_user_addr_fault+0x377/0xba0 arch/x86/mm/fault.c:1259 page_fault+0x39/0x40 arch/x86/entry/entry_64.S:1203 RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x3f/0x60 kernel/kcov.c:202 Code: c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 04 14 00 00 00 74 2c 8b 91 e0 13 00 00 83 fa 02 75 21 48 8b 91 e8 13 00 00 <48> 8b 32 48 8d 7e 01 8b 89 e4 13 00 00 48 39 cf 73 08 48 89 44 f2 RSP: 0018:ffffc90001c575f0 EFLAGS: 00010246 RAX: ffffffff86ab61b4 RBX: ffff888099d5d8c0 RCX: ffff8880a018e580 RDX: 0000000000000000 RSI: ffff888097379300 RDI: ffff888099d5d8c0 RBP: ffff888099d5d8c0 R08: 0000000000000001 R09: ffffffff86a0c1b4 R10: 0000000000000003 R11: ffff8880a018e580 R12: ffff888097379300 R13: ffff888097379300 R14: ffffc90001c57710 R15: dffffc0000000000 nf_nat_ipv6_fn+0x34/0x2c0 net/netfilter/nf_nat_proto.c:851 nf_nat_ipv6_out+0x2a/0x390 net/netfilter/nf_nat_proto.c:911 nf_hook_entry_hookfn include/linux/netfilter.h:135 [inline] nf_hook_slow+0xb2/0x1f0 net/netfilter/core.c:512 nf_hook+0x24e/0x320 include/linux/netfilter.h:256 NF_HOOK include/linux/netfilter.h:305 [inline] ip6_finish_output2+0x7f3/0x13e0 net/ipv6/ip6_output.c:81 ip6_send_skb+0x109/0x230 net/ipv6/ip6_output.c:1865 udp_v6_send_skb+0xaee/0x14d0 net/ipv6/udp.c:1175 udpv6_sendmsg+0x222d/0x3200 net/ipv6/udp.c:1473 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x519/0x800 net/socket.c:2352 ___sys_sendmsg net/socket.c:2406 [inline] __sys_sendmmsg+0x45b/0x680 net/socket.c:2496 __do_sys_sendmmsg net/socket.c:2525 [inline] __se_sys_sendmmsg net/socket.c:2522 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2522 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45ca59 Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f43d4d66c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00000000004fcee0 RCX: 000000000045ca59 RDX: 00000000000000c6 RSI: 0000000020006d00 RDI: 0000000000000004 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000008f4 R14: 00000000004cbc35 R15: 00007f43d4d676d4 BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 8e6f0067 P4D 8e6f0067 PUD 96bf3067 PMD 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8260 Comm: syz-executor.1 Tainted: G W 5.7.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x3f/0x60 kernel/kcov.c:202 Code: c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 04 14 00 00 00 74 2c 8b 91 e0 13 00 00 83 fa 02 75 21 48 8b 91 e8 13 00 00 <48> 8b 32 48 8d 7e 01 8b 89 e4 13 00 00 48 39 cf 73 08 48 89 44 f2 RSP: 0018:ffffc90001c575f0 EFLAGS: 00010246 RAX: ffffffff86ab61b4 RBX: ffff888099d5d8c0 RCX: ffff8880a018e580 RDX: 0000000000000000 RSI: ffff888097379300 RDI: ffff888099d5d8c0 RBP: ffff888099d5d8c0 R08: 0000000000000001 R09: ffffffff86a0c1b4 R10: 0000000000000003 R11: ffff8880a018e580 R12: ffff888097379300 R13: ffff888097379300 R14: ffffc90001c57710 R15: dffffc0000000000 FS: 00007f43d4d67700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc9f7ee630 CR3: 000000008a002000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nf_nat_ipv6_fn+0x34/0x2c0 net/netfilter/nf_nat_proto.c:851 nf_nat_ipv6_out+0x2a/0x390 net/netfilter/nf_nat_proto.c:911 nf_hook_entry_hookfn include/linux/netfilter.h:135 [inline] nf_hook_slow+0xb2/0x1f0 net/netfilter/core.c:512 nf_hook+0x24e/0x320 include/linux/netfilter.h:256 NF_HOOK include/linux/netfilter.h:305 [inline] ip6_finish_output2+0x7f3/0x13e0 net/ipv6/ip6_output.c:81 ip6_send_skb+0x109/0x230 net/ipv6/ip6_output.c:1865 udp_v6_send_skb+0xaee/0x14d0 net/ipv6/udp.c:1175 udpv6_sendmsg+0x222d/0x3200 net/ipv6/udp.c:1473 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x519/0x800 net/socket.c:2352 ___sys_sendmsg net/socket.c:2406 [inline] __sys_sendmmsg+0x45b/0x680 net/socket.c:2496 __do_sys_sendmmsg net/socket.c:2525 [inline] __se_sys_sendmmsg net/socket.c:2522 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2522 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45ca59 Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f43d4d66c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00000000004fcee0 RCX: 000000000045ca59 RDX: 00000000000000c6 RSI: 0000000020006d00 RDI: 0000000000000004 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000008f4 R14: 00000000004cbc35 R15: 00007f43d4d676d4 Modules linked in: CR2: 0000000000000000 ---[ end trace 26e2d6228d90bc58 ]--- RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x3f/0x60 kernel/kcov.c:202 Code: c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 04 14 00 00 00 74 2c 8b 91 e0 13 00 00 83 fa 02 75 21 48 8b 91 e8 13 00 00 <48> 8b 32 48 8d 7e 01 8b 89 e4 13 00 00 48 39 cf 73 08 48 89 44 f2 RSP: 0018:ffffc90001c575f0 EFLAGS: 00010246 RAX: ffffffff86ab61b4 RBX: ffff888099d5d8c0 RCX: ffff8880a018e580 RDX: 0000000000000000 RSI: ffff888097379300 RDI: ffff888099d5d8c0 RBP: ffff888099d5d8c0 R08: 0000000000000001 R09: ffffffff86a0c1b4 R10: 0000000000000003 R11: ffff8880a018e580 R12: ffff888097379300 R13: ffff888097379300 R14: ffffc90001c57710 R15: dffffc0000000000 FS: 00007f43d4d67700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc9f7ee630 CR3: 000000008a002000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400