BUG: sleeping function called from invalid context at net/core/sock.c:2935 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 2848, name: kworker/1:21 3 locks held by kworker/1:21/2848: #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8880aa426d28 ((wq_completion)events){+.+.}, at: process_one_work+0x8dd/0x17a0 kernel/workqueue.c:2235 #1: ffffc90001147dc0 ((work_completion)(&map->work)){+.+.}, at: process_one_work+0x917/0x17a0 kernel/workqueue.c:2239 #2: ffffc9000178bd20 (&htab->buckets[i].lock){+...}, at: sock_hash_free+0xd9/0x4b0 net/core/sock_map.c:869 Preemption disabled at: [] sock_hash_free+0xd9/0x4b0 net/core/sock_map.c:869 CPU: 1 PID: 2848 Comm: kworker/1:21 Not tainted 5.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events bpf_map_free_deferred Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 ___might_sleep.cold+0x1fb/0x23e kernel/sched/core.c:6800 __might_sleep+0x95/0x190 kernel/sched/core.c:6753 lock_sock_nested+0x39/0x120 net/core/sock.c:2935 lock_sock include/net/sock.h:1516 [inline] sock_hash_free+0x27c/0x4b0 net/core/sock_map.c:872 bpf_map_free_deferred+0xb3/0x100 kernel/bpf/syscall.c:474 process_one_work+0xa05/0x17a0 kernel/workqueue.c:2264 worker_thread+0x98/0xe40 kernel/workqueue.c:2410 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 ======================================================