===================================== WARNING: bad unlock balance detected! 4.16.0-rc2+ #323 Not tainted ------------------------------------- syz-executor6/5744 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-executor6/5744: #0: (rcu_read_lock){....}, at: [<000000001f3a14a7>] nf_hook include/linux/netfilter.h:206 [inline] #0: (rcu_read_lock){....}, at: [<000000001f3a14a7>] __ip6_local_out+0x2f1/0xaa0 net/ipv6/output_core.c:164 stack backtrace: CPU: 0 PID: 5744 Comm: syz-executor6 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:00007f1124efbc68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f1124efc6d4 RCX: 0000000000453da9 RDX: 00000000000001df RSI: 0000000020867000 RDI: 0000000000000014 RBP: 000000000072bea0 R08: 000000002064afe4 R09: 000000000000001c R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004ba R14: 00000000006f7210 R15: 0000000000000000 x_tables: ip_tables: ah match: only valid for protocol 51 binder: 5800:5806 ioctl 40046205 7c8a returned -22 encrypted_key: insufficient parameters specified x_tables: ip_tables: ah match: only valid for protocol 51 encrypted_key: insufficient parameters specified kernel msg: ebtables bug: please report to author: Wrong len argument binder: BINDER_SET_CONTEXT_MGR already set binder: 5941:5953 ioctl 40046207 0 returned -16 kernel msg: ebtables bug: please report to author: Wrong len argument device eql entered promiscuous mode sctp: [Deprecated]: syz-executor6 (pid 5994) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead sctp: [Deprecated]: syz-executor6 (pid 6012) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead device eql entered promiscuous mode openvswitch: netlink: Either Ethernet header or EtherType is required. openvswitch: netlink: Either Ethernet header or EtherType is required. binder: 6036:6042 transaction failed 29189/-22, size 0-0 line 2842 binder: 6036:6042 transaction failed 29189/-22, size 0-0 line 2842 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 binder: 6120:6135 transaction failed 29201/-28, size -935-0 line 2957 binder: BINDER_SET_CONTEXT_MGR already set QAT: Invalid ioctl binder_alloc: 6120: binder_alloc_buf, no vma QAT: Invalid ioctl binder: 6120:6147 transaction failed 29189/-3, size -935-0 line 2957 binder: 6120:6135 ioctl 40046207 0 returned -16 QAT: Invalid ioctl QAT: Invalid ioctl binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 Cannot find del_set index 0 as target Cannot find del_set index 0 as target xt_connbytes: Forcing CT accounting to be enabled kauditd_printk_skb: 24 callbacks suppressed audit: type=1400 audit(1519220171.683:46): avc: denied { map_read map_write } for pid=6309 comm="syz-executor5" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1 netlink: 'syz-executor1': attribute type 1 has an invalid length. netlink: 'syz-executor1': attribute type 1 has an invalid length. audit: type=1400 audit(1519220171.941:47): avc: denied { prog_run } for pid=6384 comm="syz-executor3" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1 syz-executor7 uses obsolete (PF_INET,SOCK_PACKET) PPPIOCDETACH file->f_count=3 PPPIOCDETACH file->f_count=3 syz-executor0 (6546) used greatest stack depth: 15168 bytes left audit: type=1400 audit(1519220172.612:48): avc: denied { getopt } for pid=6584 comm="syz-executor3" 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(1519220172.640:49): avc: denied { ioctl } for pid=6584 comm="syz-executor3" path="socket:[18319]" dev="sockfs" ino=18319 ioctlcmd=0x891a 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 l2tp_core: tunl 4: fd 19 wrong protocol, got 1, expected 17 l2tp_core: tunl 4: fd 20 wrong protocol, got 1, expected 17 QAT: Invalid ioctl sctp: [Deprecated]: syz-executor1 (pid 6720) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead QAT: Invalid ioctl sctp: [Deprecated]: syz-executor1 (pid 6720) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead binder: 6761:6767 ioctl c0306201 20008000 returned -14 binder: 6761:6767 ioctl 4b48 20000080 returned -22 binder: 6761:6767 ioctl 89e0 200000c0 returned -22 xt_connbytes: Forcing CT accounting to be enabled binder_alloc: binder_alloc_mmap_handler: 6761 20000000-20002000 already mapped failed -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 6761:6797 ioctl 40046207 0 returned -16 binder: 6761:6767 ioctl c0306201 20008000 returned -14 binder: 6761:6767 ioctl 4b48 20000080 returned -22 binder: 6761:6797 ioctl 89e0 200000c0 returned -22 xt_cgroup: no path or classid specified binder: 6815:6824 Acquire 1 refcount change on invalid ref 0 ret -22 audit: type=1400 audit(1519220173.705:50): avc: denied { map } for pid=6911 comm="syz-executor7" path="/dev/sg0" dev="devtmpfs" ino=9125 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:scsi_generic_device_t:s0 tclass=chr_file permissive=1 device eql entered promiscuous mode xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets audit: type=1400 audit(1519220174.167:51): avc: denied { create } for pid=7093 comm="syz-executor1" 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 netlink: 'syz-executor6': attribute type 21 has an invalid length. netlink: 'syz-executor6': attribute type 21 has an invalid length. audit: type=1400 audit(1519220174.474:52): avc: denied { setuid } for pid=7183 comm="syz-executor4" 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 netlink: 'syz-executor5': attribute type 1 has an invalid length. netlink: 'syz-executor5': attribute type 1 has an invalid length. netlink: 'syz-executor3': attribute type 1 has an invalid length. netlink: 'syz-executor3': attribute type 1 has an invalid length. device eql entered promiscuous mode sd 0:0:1:0: [sg0] tag#0 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK sd 0:0:1:0: [sg0] tag#0 CDB: Test Unit Ready sd 0:0:1:0: [sg0] tag#0 CDB[00]: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 sd 0:0:1:0: [sg0] tag#0 CDB[10]: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 sd 0:0:1:0: [sg0] tag#0 CDB[20]: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 sd 0:0:1:0: [sg0] tag#0 CDB[30]: 00 00 00 audit: type=1400 audit(1519220175.631:53): avc: denied { getattr } for pid=7550 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_fib_lookup_socket permissive=1 audit: type=1400 audit(1519220175.709:54): avc: denied { setattr } for pid=7574 comm="syz-executor7" name="map_files" dev="proc" ino=21365 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=dir permissive=1 netlink: 'syz-executor5': attribute type 21 has an invalid length. netlink: 'syz-executor5': attribute type 1 has an invalid length. netlink: 'syz-executor5': attribute type 21 has an invalid length. netlink: 'syz-executor5': attribute type 1 has an invalid length. xt_cluster: this node mask cannot be higher than the total number of nodes xt_cluster: this node mask cannot be higher than the total number of nodes Trying to set illegal importance in message device bridge0 entered promiscuous mode sctp: [Deprecated]: syz-executor4 (pid 7801) Use of int in maxseg socket option. Use struct sctp_assoc_value instead device bridge0 left promiscuous mode audit: type=1400 audit(1519220177.070:55): avc: denied { map } for pid=7812 comm="syz-executor0" path="socket:[22704]" dev="sockfs" ino=22704 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=rawip_socket permissive=1 sctp: [Deprecated]: syz-executor4 (pid 7817) Use of int in maxseg socket option. Use struct sctp_assoc_value instead Empty option to dns_resolver key Empty option to dns_resolver key mmap: syz-executor1 (7908) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt. QAT: Invalid ioctl QAT: Invalid ioctl tc_ctl_action: received NO action attribs tc_ctl_action: received NO action attribs QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl binder: 8090:8095 transaction failed 29189/-22, size 0-0 line 2842 binder: 8090:8102 transaction failed 29189/-22, size 0-0 line 2842 IPv6: Can't replace route, no match found IPv6: Can't replace route, no match found binder: BINDER_SET_CONTEXT_MGR already set binder: 8107:8108 ioctl 40046207 0 returned -16 binder_alloc: 8107: binder_alloc_buf, no vma binder: 8107:8110 transaction failed 29189/-3, size 0-0 line 2957 binder: undelivered TRANSACTION_ERROR: 29189 binder: release 8107:8108 transaction 14 out, still active binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 14, target dead SELinux: unrecognized netlink message: protocol=4 nlmsg_type=16 sclass=netlink_tcpdiag_socket pig=8133 comm=syz-executor7 SELinux: unrecognized netlink message: protocol=4 nlmsg_type=16 sclass=netlink_tcpdiag_socket pig=8146 comm=syz-executor7 syz-executor3 (8153) used greatest stack depth: 13040 bytes left raw_sendmsg: syz-executor3 forgot to set AF_INET. Fix it!