BUG: sleeping function called from invalid context at net/core/sock.c:2943 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 2682, name: kworker/1:3 3 locks held by kworker/1:3/2682: #0: ffff8880aa026d28 ((wq_completion)events){+.+.}, at: __write_once_size include/linux/compiler.h:250 [inline] #0: ffff8880aa026d28 ((wq_completion)events){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880aa026d28 ((wq_completion)events){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff8880aa026d28 ((wq_completion)events){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8880aa026d28 ((wq_completion)events){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8880aa026d28 ((wq_completion)events){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8880aa026d28 ((wq_completion)events){+.+.}, at: process_one_work+0x82a/0x1690 kernel/workqueue.c:2237 #1: ffffc90007bf7dd0 ((work_completion)(&map->work)){+.+.}, at: process_one_work+0x85e/0x1690 kernel/workqueue.c:2241 #2: ffffc90006e50860 (&htab->buckets[i].lock){+...}, at: sock_hash_free+0xe2/0x4c0 net/core/sock_map.c:960 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 2682 Comm: kworker/1:3 Not tainted 5.6.0-rc3-next-20200228-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+0x188/0x20d lib/dump_stack.c:118 ___might_sleep.cold+0x1f4/0x23d kernel/sched/core.c:6796 lock_sock_nested+0x33/0x110 net/core/sock.c:2943 lock_sock include/net/sock.h:1574 [inline] sock_hash_free+0x283/0x4c0 net/core/sock_map.c:963 bpf_map_free_deferred+0xb2/0x100 kernel/bpf/syscall.c:467 process_one_work+0x94b/0x1690 kernel/workqueue.c:2266 worker_thread+0x96/0xe20 kernel/workqueue.c:2412 kthread+0x357/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 ======================================================