BUG: sleeping function called from invalid context at include/linux/sched/mm.h:274 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 351, name: syz-executor.1 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 2 locks held by syz-executor.1/351: #0: ffff0000c8995d30 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1712 [inline] #0: ffff0000c8995d30 (sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_sendmsg+0x30/0x64 net/ipv4/tcp.c:1482 #1: ffff80000d433440 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:279 CPU: 0 PID: 351 Comm: syz-executor.1 Not tainted 6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:156 show_stack+0x2c/0x54 arch/arm64/kernel/stacktrace.c:163 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x104/0x16c lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 __might_resched+0x208/0x218 kernel/sched/core.c:9892 __might_sleep+0x48/0x78 kernel/sched/core.c:9821 might_alloc include/linux/sched/mm.h:274 [inline] slab_pre_alloc_hook mm/slab.h:700 [inline] slab_alloc_node mm/slub.c:3162 [inline] slab_alloc mm/slub.c:3256 [inline] kmem_cache_alloc_trace+0x80/0x340 mm/slub.c:3287 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:733 [inline] alloc_sk_msg net/core/skmsg.c:503 [inline] sk_psock_skb_ingress_self+0x44/0x16c net/core/skmsg.c:596 sk_psock_verdict_apply+0x1e0/0x228 net/core/skmsg.c:1010 sk_psock_verdict_recv+0x200/0x41c net/core/skmsg.c:1197 tcp_read_skb+0x1c8/0x2d8 net/ipv4/tcp.c:1771 sk_psock_verdict_data_ready+0x44/0x6c net/core/skmsg.c:1211 tcp_data_ready+0x124/0x1b8 net/ipv4/tcp_input.c:5004 tcp_rcv_established+0x9e0/0xa8c net/ipv4/tcp_input.c:5971 tcp_v4_do_rcv+0x49c/0x4f0 net/ipv4/tcp_ipv4.c:1661 sk_backlog_rcv include/net/sock.h:1100 [inline] __release_sock+0x70/0x144 net/core/sock.c:2852 release_sock+0x40/0x108 net/core/sock.c:3408 tcp_sendmsg+0x4c/0x64 net/ipv4/tcp.c:1484 inet_sendmsg+0xb0/0x118 net/ipv4/af_inet.c:819 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg net/socket.c:734 [inline] __sys_sendto+0x1e4/0x280 net/socket.c:2117 __do_sys_sendto net/socket.c:2129 [inline] __se_sys_sendto net/socket.c:2125 [inline] __arm64_sys_sendto+0x30/0x44 net/socket.c:2125 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581