8021q: adding VLAN 0 to HW filter on device batadv0 BUG: sleeping function called from invalid context at mm/page_alloc.c:4681 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 9724, name: syz-executor.3 2 locks held by syz-executor.3/9724: #0: ffffffff89a3ff20 (pcpu_alloc_mutex){+.+.}, at: pcpu_alloc+0xb89/0x1380 mm/percpu.c:1629 #1: ffffffff89a51ad8 (vmap_area_lock){+.+.}, at: spin_lock include/linux/spinlock.h:338 [inline] #1: ffffffff89a51ad8 (vmap_area_lock){+.+.}, at: pcpu_get_vm_areas+0x3b27/0x3f00 mm/vmalloc.c:3431 Preemption disabled at: [] spin_lock include/linux/spinlock.h:338 [inline] [] pcpu_get_vm_areas+0x3b27/0x3f00 mm/vmalloc.c:3431 CPU: 1 PID: 9724 Comm: syz-executor.3 Not tainted 5.4.0-next-20191202-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+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 prepare_alloc_pages mm/page_alloc.c:4681 [inline] __alloc_pages_nodemask+0x523/0x910 mm/page_alloc.c:4730 alloc_pages_current+0x107/0x210 mm/mempolicy.c:2211 alloc_pages include/linux/gfp.h:532 [inline] __get_free_pages+0xc/0x40 mm/page_alloc.c:4786 kasan_populate_vmalloc_pte mm/kasan/common.c:762 [inline] kasan_populate_vmalloc_pte+0x2f/0x1c0 mm/kasan/common.c:753 apply_to_pte_range mm/memory.c:2041 [inline] apply_to_pmd_range mm/memory.c:2068 [inline] apply_to_pud_range mm/memory.c:2088 [inline] apply_to_p4d_range mm/memory.c:2108 [inline] apply_to_page_range+0x445/0x700 mm/memory.c:2133 kasan_populate_vmalloc+0x68/0x90 mm/kasan/common.c:791 pcpu_get_vm_areas+0x3c77/0x3f00 mm/vmalloc.c:3439 pcpu_create_chunk+0x24e/0x7f0 mm/percpu-vm.c:340 pcpu_alloc+0x10f3/0x1380 mm/percpu.c:1685 __alloc_percpu+0x25/0x30 mm/percpu.c:1796 xt_percpu_counter_alloc+0x13c/0x1b0 net/netfilter/x_tables.c:1842 find_check_entry.isra.0+0xb3/0x920 net/ipv4/netfilter/ip_tables.c:527 translate_table+0xcb4/0x17d0 net/ipv4/netfilter/ip_tables.c:717 ipt_register_table+0x11b/0x310 net/ipv4/netfilter/ip_tables.c:1772 iptable_mangle_table_init.part.0+0x49/0x70 net/ipv4/netfilter/iptable_mangle.c:97 iptable_mangle_table_init+0x58/0x70 net/ipv4/netfilter/iptable_mangle.c:101 xt_find_table_lock+0x293/0x430 net/netfilter/x_tables.c:1223 xt_request_find_table_lock+0x2c/0xe0 net/netfilter/x_tables.c:1253 get_info+0x152/0x570 net/ipv6/netfilter/ip6_tables.c:981 do_ipt_get_ctl+0x17d/0x930 net/ipv4/netfilter/ip_tables.c:1696 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x7a/0xd0 net/netfilter/nf_sockopt.c:122 ip_getsockopt net/ipv4/ip_sockglue.c:1576 [inline] ip_getsockopt+0x176/0x1d0 net/ipv4/ip_sockglue.c:1556 tcp_getsockopt net/ipv4/tcp.c:3692 [inline] tcp_getsockopt+0x8f/0xe0 net/ipv4/tcp.c:3686 sock_common_getsockopt+0x94/0xd0 net/core/sock.c:3108 __sys_getsockopt+0x16d/0x310 net/socket.c:2162 __do_sys_getsockopt net/socket.c:2177 [inline] __se_sys_getsockopt net/socket.c:2174 [inline] __x64_sys_getsockopt+0xbe/0x150 net/socket.c:2174 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45d18a Code: b8 34 01 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 8d 8b fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 6a 8b fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007ffdb843dad8 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045d18a RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007ffdb843dafc R09: 000000524f525245 R10: 0000000000718a48 R11: 0000000000000246 R12: 00000000004cbe1c R13: 0000000000719e80 R14: 0000000000718a48 R15: 0000000000718a40