audit: type=1400 audit(1519106657.120:8): avc: denied { map } for pid=4087 comm="syz-execprog" path="/root/syzkaller-shm093128053" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1 IPVS: ftp: loaded support on port[0] = 21 IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready ===================================== WARNING: bad unlock balance detected! 4.16.0-rc1+ #232 Not tainted ------------------------------------- syz-executor0/4094 is trying to release lock (rcu_read_lock_bh) at: [] rcu_read_unlock_bh include/linux/rcupdate.h:722 [inline] [] hashlimit_mt_common.isra.10+0x1beb/0x2610 net/netfilter/xt_hashlimit.c:777 but there are no more locks to release! other info that might help us debug this: 6 locks held by syz-executor0/4094: #0: (sk_lock-AF_INET6){+.+.}, at: [<000000004d9a8e38>] lock_sock include/net/sock.h:1463 [inline] #0: (sk_lock-AF_INET6){+.+.}, at: [<000000004d9a8e38>] ipv6_getsockopt+0x1c5/0x2e0 net/ipv6/ipv6_sockglue.c:1370 #1: (&xt[i].mutex){+.+.}, at: [<000000000d5dc847>] xt_find_table_lock+0x3e/0x3e0 net/netfilter/x_tables.c:1046 #2: (rcu_read_lock){....}, at: [<0000000084c9624f>] __is_insn_slot_addr+0x0/0x330 kernel/kprobes.c:207 #3: ((&idev->mc_ifc_timer)){+.-.}, at: [<0000000091aa23c1>] lockdep_copy_map include/linux/lockdep.h:178 [inline] #3: ((&idev->mc_ifc_timer)){+.-.}, at: [<0000000091aa23c1>] call_timer_fn+0x1c6/0x820 kernel/time/timer.c:1316 #4: (rcu_read_lock){....}, at: [<000000007672fc4b>] read_pnet include/net/net_namespace.h:280 [inline] #4: (rcu_read_lock){....}, at: [<000000007672fc4b>] dev_net include/linux/netdevice.h:2056 [inline] #4: (rcu_read_lock){....}, at: [<000000007672fc4b>] mld_sendpack+0x180/0xe70 net/ipv6/mcast.c:1625 #5: (rcu_read_lock){....}, at: [<00000000d01c1925>] nf_hook.constprop.37+0x0/0x830 net/ipv6/mcast.c:2795 stack backtrace: CPU: 1 PID: 4094 Comm: syz-executor0 Not tainted 4.16.0-rc1+ #232 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 print_unlock_imbalance_bug+0x12f/0x140 kernel/locking/lockdep.c:3484 __lock_release kernel/locking/lockdep.c:3691 [inline] lock_release+0x6fe/0xa40 kernel/locking/lockdep.c:3939 rcu_lock_release include/linux/rcupdate.h:249 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:724 [inline] hashlimit_mt_common.isra.10+0x1c08/0x2610 net/netfilter/xt_hashlimit.c:777 hashlimit_mt+0x78/0x90 net/netfilter/xt_hashlimit.c:846 ip6t_do_table+0x98d/0x1a30 net/ipv6/netfilter/ip6_tables.c:319 ip6table_raw_hook+0x65/0x80 net/ipv6/netfilter/ip6table_raw.c:42 nf_hook_entry_hookfn include/linux/netfilter.h:120 [inline] nf_hook_slow+0xba/0x1a0 net/netfilter/core.c:483 nf_hook.constprop.37+0x3f6/0x830 include/linux/netfilter.h:243 NF_HOOK include/linux/netfilter.h:286 [inline] mld_sendpack+0x6c2/0xe70 net/ipv6/mcast.c:1658 mld_send_cr net/ipv6/mcast.c:1954 [inline] mld_ifc_timer_expire+0x3d9/0x770 net/ipv6/mcast.c:2451 call_timer_fn+0x228/0x820 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0x7ee/0xb70 kernel/time/timer.c:1666 run_timer_softirq+0x4c/0x70 kernel/time/timer.c:1692 __do_softirq+0x2d7/0xb85 kernel/softirq.c:285 invoke_softirq kernel/softirq.c:365 [inline] irq_exit+0x1cc/0x200 kernel/softirq.c:405 exiting_irq arch/x86/include/asm/apic.h:541 [inline] smp_apic_timer_interrupt+0x16b/0x700 arch/x86/kernel/apic/apic.c:1052 apic_timer_interrupt+0xa9/0xb0 arch/x86/entry/entry_64.S:829 RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:772 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:794 [inline] RIP: 0010:lock_release+0xe4/0xa40 kernel/locking/lockdep.c:3935 RSP: 0018:ffff8801c074f210 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff12 RAX: dffffc0000000000 RBX: ffff8801bfc52280 RCX: ffffffff8171af5d RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff86ac9660 RBP: ffff8801c074f340 R08: 0000000000000000 R09: 0000000000000002 R10: ffff8801c074f220 R11: 0000000000000000 R12: ffff8801c074f318 R13: 0000000000000000 R14: ffff8801c074f410 R15: 1ffff100380e9e47 rcu_lock_release include/linux/rcupdate.h:249 [inline] rcu_read_unlock include/linux/rcupdate.h:686 [inline] __is_insn_slot_addr+0x225/0x330 kernel/kprobes.c:301 is_kprobe_optinsn_slot include/linux/kprobes.h:344 [inline] kernel_text_address+0x11b/0x140 kernel/extable.c:150 __kernel_text_address+0xd/0x40 kernel/extable.c:107 unwind_get_return_address+0x61/0xa0 arch/x86/kernel/unwind_frame.c:18 __save_stack_trace+0x7e/0xd0 arch/x86/kernel/stacktrace.c:45 save_stack_trace+0x1a/0x20 arch/x86/kernel/stacktrace.c:60 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:552 kmem_cache_alloc_node_trace+0x150/0x760 mm/slab.c:3650 __do_kmalloc_node mm/slab.c:3668 [inline] __kmalloc_node+0x33/0x70 mm/slab.c:3676 kmalloc_node include/linux/slab.h:554 [inline] __vmalloc_area_node mm/vmalloc.c:1686 [inline] __vmalloc_node_range+0x1a1/0x650 mm/vmalloc.c:1759 __vmalloc_node mm/vmalloc.c:1804 [inline] __vmalloc_node_flags mm/vmalloc.c:1818 [inline] vzalloc+0x45/0x50 mm/vmalloc.c:1857 alloc_counters.isra.10+0x9a/0x7e0 net/ipv6/netfilter/ip6_tables.c:826 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:848 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1049 [inline] do_ip6t_get_ctl+0x63e/0xaf0 net/ipv6/netfilter/ip6_tables.c:1714 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x6a/0xc0 net/netfilter/nf_sockopt.c:122 ipv6_getsockopt+0x1df/0x2e0 net/ipv6/ipv6_sockglue.c:1371 tcp_getsockopt+0x82/0xd0 net/ipv4/tcp.c:3359 sock_common_getsockopt+0x95/0xd0 net/core/sock.c:2938 SYSC_getsockopt net/socket.c:1881 [inline] SyS_getsockopt+0x178/0x340 net/socket.c:1863 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x45687a RSP: 002b:00007ffd61cd8868 EFLAGS: 00000216 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007ffd61cd8890 RCX: 000000000045687a RDX: 0000000000000041 RSI: 0000000000000029 RDI: 0000000000000003 RBP: 00000000006fd6c0 R08: 00007ffd61cd888c R09: 0000000000004000 R10: 00007ffd61cd8990 R11: 0000000000000216 R12: 0000000000000000 R13: 0000000000000003 R14: 0000000000000029 R15: 00000000006fbbc0