kernel msg: ebtables bug: please report to author: Couldn't copy entries from userspace ===================================== WARNING: bad unlock balance detected! 4.16.0-rc2+ #323 Not tainted ------------------------------------- syz-executor1/5950 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: 1 lock held by syz-executor1/5950: #0: (rcu_read_lock){....}, at: [<00000000026336bc>] nf_hook include/linux/netfilter.h:206 [inline] #0: (rcu_read_lock){....}, at: [<00000000026336bc>] __ip6_local_out+0x2f1/0xaa0 net/ipv6/output_core.c:164 stack backtrace: CPU: 0 PID: 5950 Comm: syz-executor1 Not tainted 4.16.0-rc2+ #323 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 include/linux/netfilter.h:243 [inline] __ip6_local_out+0x517/0xaa0 net/ipv6/output_core.c:164 ip6_local_out+0x2d/0x160 net/ipv6/output_core.c:174 ip6_send_skb+0xa1/0x330 net/ipv6/ip6_output.c:1677 udp_v6_send_skb+0x5ee/0xf70 net/ipv6/udp.c:1044 udpv6_sendmsg+0x2835/0x3400 net/ipv6/udp.c:1316 inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:764 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg+0xca/0x110 net/socket.c:640 SYSC_sendto+0x361/0x5c0 net/socket.c:1747 SyS_sendto+0x40/0x50 net/socket.c:1715 do_syscall_64+0x280/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x453da9 RSP: 002b:00007f1889da4c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f1889da56d4 RCX: 0000000000453da9 RDX: 00000000000001df RSI: 0000000020867000 RDI: 0000000000000016 RBP: 000000000072bea0 R08: 000000002064afe4 R09: 000000000000001c R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004ba R14: 00000000006f7210 R15: 0000000000000000 binder_alloc: binder_alloc_mmap_handler: 6089 20000000-20002000 already mapped failed -16 xt_LED: No 'id' parameter given. mmap: syz-executor1 (6213) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt. QAT: Invalid ioctl ipt_CLUSTERIP: no config found for 255.255.255.255, need 'new' QAT: Invalid ioctl ipt_CLUSTERIP: no config found for 255.255.255.255, need 'new' binder: 6385:6387 ioctl c0306201 20019fd0 returned -14 binder: 6385:6392 ioctl c0306201 20019fd0 returned -14 syz-executor2 (6406) used greatest stack depth: 12608 bytes left QAT: Invalid ioctl QAT: Invalid ioctl binder: 6710:6719 got transaction with invalid parent offset or type binder: 6710:6719 transaction failed 29201/-22, size 32-8 line 3080 binder_alloc: 6710: binder_alloc_buf, no vma binder: BINDER_SET_CONTEXT_MGR already set binder: 6710:6737 transaction failed 29189/-3, size 32-8 line 2957 binder: 6710:6733 ioctl 40046207 0 returned -16 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 NFQUEUE: number of queues (3) out of range (got 65537) NFQUEUE: number of queues (3) out of range (got 65537) kauditd_printk_skb: 16 callbacks suppressed audit: type=1400 audit(1519214522.715:46): avc: denied { getattr } for pid=6821 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 audit: type=1400 audit(1519214522.875:47): avc: denied { read } for pid=6858 comm="syz-executor2" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 IPVS: ftp: loaded support on port[0] = 21 IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready Disabled LAPIC found during irq injection Disabled LAPIC found during irq injection IPv4: Oversized IP packet from 127.0.0.1 xt_connbytes: Forcing CT accounting to be enabled openvswitch: netlink: Flow key attr not present in new flow. openvswitch: netlink: Flow key attr not present in new flow. Dead loop on virtual device ip6_vti0, fix it urgently! xt_CT: netfilter: NOTRACK target is deprecated, use CT instead or upgrade iptables Dead loop on virtual device ip6_vti0, fix it urgently! Cannot find add_set index 256 as target Cannot find add_set index 256 as target x_tables: ip6_tables: icmp6 match: only valid for protocol 58 x_tables: ip6_tables: icmp6 match: only valid for protocol 58 xt_policy: neither incoming nor outgoing policy selected xt_policy: neither incoming nor outgoing policy selected ieee80211 phy2: Selected rate control algorithm 'minstrel_ht' xt_connbytes: Forcing CT accounting to be enabled device eql entered promiscuous mode SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7405 comm=syz-executor7 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7415 comm=syz-executor7 audit: type=1400 audit(1519214525.828:48): avc: denied { map } for pid=7424 comm="syz-executor1" path="socket:[20043]" dev="sockfs" ino=20043 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=tcp_socket permissive=1 IPv4: Oversized IP packet from 127.0.0.1 x_tables: ip6_tables: DNAT target: used from hooks OUTPUT/POSTROUTING, but only usable from PREROUTING/OUTPUT raw_sendmsg: syz-executor6 forgot to set AF_INET. Fix it! x_tables: ip6_tables: DNAT target: used from hooks OUTPUT/POSTROUTING, but only usable from PREROUTING/OUTPUT QAT: Invalid ioctl QAT: Invalid ioctl semctl(GETNCNT/GETZCNT) is since 3.16 Single Unix Specification compliant. The task syz-executor4 (7598) triggered the difference, watch for misbehavior. kernel msg: ebtables bug: please report to author: Total nentries is wrong kernel msg: ebtables bug: please report to author: Total nentries is wrong IPVS: ftp: loaded support on port[0] = 21 IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready netlink: 'syz-executor5': attribute type 6 has an invalid length. netlink: 'syz-executor5': attribute type 6 has an invalid length. binder: BINDER_SET_CONTEXT_MGR already set binder: 7946:7953 ioctl 40046207 0 returned -16 RDS: rds_bind could not find a transport for 224.0.0.1, load rds_tcp or rds_rdma? RDS: rds_bind could not find a transport for 224.0.0.1, load rds_tcp or rds_rdma? openvswitch: netlink: Message has 8 unknown bytes. audit: type=1400 audit(1519214528.653:49): avc: denied { ioctl } for pid=8069 comm="syz-executor4" path="socket:[22542]" dev="sockfs" ino=22542 ioctlcmd=0x43d2 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. audit: type=1400 audit(1519214528.843:50): avc: denied { setuid } for pid=8119 comm="syz-executor7" capability=7 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 audit: type=1400 audit(1519214529.094:51): avc: denied { create } for pid=8220 comm="syz-executor7" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_crypto_socket permissive=1 audit: type=1400 audit(1519214529.124:52): avc: denied { ioctl } for pid=8220 comm="syz-executor7" path="socket:[21869]" dev="sockfs" ino=21869 ioctlcmd=0x8940 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_crypto_socket permissive=1 audit: type=1400 audit(1519214529.125:53): avc: denied { getattr } for pid=8220 comm="syz-executor7" path="socket:[21869]" dev="sockfs" ino=21869 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_crypto_socket permissive=1 audit: type=1400 audit(1519214529.125:54): avc: denied { getopt } for pid=8220 comm="syz-executor7" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_crypto_socket permissive=1 audit: type=1400 audit(1519214529.154:55): avc: denied { map } for pid=8235 comm="syz-executor6" path="socket:[21891]" dev="sockfs" ino=21891 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=socket permissive=1 binder_alloc: 8311: binder_alloc_buf failed to map page at 20265000 in userspace binder: 8311:8314 transaction failed 29201/-12, size 0-0 line 2957 binder: BINDER_SET_CONTEXT_MGR already set binder: 8311:8318 ioctl 40046207 0 returned -16 binder_alloc: 8311: binder_alloc_buf, no vma binder: 8311:8318 transaction failed 29189/-3, size 0-0 line 2957 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201