BUG: sleeping function called from invalid context at mm/vmalloc.c:3409 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 28573, name: syz.4.8977 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 1 lock held by syz.4.8977/28573: #0: ffffffff9b2b5158 (nfnl_subsys_ipset){+.+.}-{4:4}, at: call_ad.constprop.0+0x24d/0x940 net/netfilter/ipset/ip_set_core.c:1746 Preemption disabled at: [] preempt_schedule_thunk+0x16/0x30 arch/x86/entry/thunk.S:12 CPU: 2 UID: 0 PID: 28573 Comm: syz.4.8977 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 __might_resched+0x3c0/0x5e0 kernel/sched/core.c:8957 vfree+0x75/0xb50 mm/vmalloc.c:3409 futex_hash_free+0x98/0xc0 kernel/futex/core.c:1742 __mmdrop+0x33f/0x580 kernel/fork.c:692 mmdrop include/linux/sched/mm.h:55 [inline] mmdrop_sched include/linux/sched/mm.h:83 [inline] mmdrop_lazy_tlb_sched include/linux/sched/mm.h:110 [inline] finish_task_switch.isra.0+0x7a4/0xc10 kernel/sched/core.c:5250 context_switch kernel/sched/core.c:5360 [inline] __schedule+0x1198/0x5de0 kernel/sched/core.c:6961 preempt_schedule_common+0x44/0xc0 kernel/sched/core.c:7145 preempt_schedule_thunk+0x16/0x30 arch/x86/entry/thunk.S:12 __local_bh_enable_ip+0x107/0x120 kernel/softirq.c:414 spin_unlock_bh include/linux/spinlock.h:396 [inline] hash_ipmark4_add+0x1a0f/0x2940 net/netfilter/ipset/ip_set_hash_gen.h:996 hash_ipmark4_uadt+0x6d7/0x910 net/netfilter/ipset/ip_set_hash_ipmark.c:159 call_ad.constprop.0+0x16e/0x940 net/netfilter/ipset/ip_set_core.c:1751 ip_set_ad.constprop.0.isra.0+0x3ce/0x870 net/netfilter/ipset/ip_set_core.c:1841 nfnetlink_rcv_msg+0x9fc/0x1200 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x155/0x420 net/netlink/af_netlink.c:2552 nfnetlink_rcv+0x1b3/0x430 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8d1/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg net/socket.c:729 [inline] ____sys_sendmsg+0xa95/0xc70 net/socket.c:2614 ___sys_sendmsg+0x134/0x1d0 net/socket.c:2668 __sys_sendmsg+0x16d/0x220 net/socket.c:2700 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf704e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f541d55c EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 00000000800002c0 RDX: 00000000040c0080 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Set syz1 is full, maxelem 65536 reached ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi