===================================== WARNING: bad unlock balance detected! 4.16.0-rc2+ #323 Not tainted ------------------------------------- syz-executor7/5291 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: 3 locks held by syz-executor7/5291: #0: (sk_lock-AF_INET6){+.+.}, at: [<000000009de00c17>] lock_sock include/net/sock.h:1463 [inline] #0: (sk_lock-AF_INET6){+.+.}, at: [<000000009de00c17>] sctp_sendmsg+0xc1e/0x35e0 net/sctp/socket.c:1723 #1: (rcu_read_lock){....}, at: [<0000000077ee49f4>] sctp_v6_xmit+0x2e5/0x630 net/sctp/ipv6.c:222 #2: (rcu_read_lock){....}, at: [<000000006c659a8a>] ip6_autoflowlabel net/ipv6/ip6_output.c:291 [inline] #2: (rcu_read_lock){....}, at: [<000000006c659a8a>] ip6_xmit+0xe9d/0x2260 net/ipv6/ip6_output.c:249 stack backtrace: CPU: 1 PID: 5291 Comm: syz-executor7 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_filter_hook+0x65/0x80 net/ipv6/netfilter/ip6table_filter.c:41 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] NF_HOOK include/linux/netfilter.h:286 [inline] ip6_xmit+0x10ec/0x2260 net/ipv6/ip6_output.c:277 sctp_v6_xmit+0x438/0x630 net/sctp/ipv6.c:225 sctp_packet_transmit+0x225e/0x3750 net/sctp/output.c:638 sctp_outq_flush+0xabb/0x4060 net/sctp/outqueue.c:911 sctp_outq_uncork+0x5a/0x70 net/sctp/outqueue.c:776 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1807 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1210 [inline] sctp_do_sm+0x4e0/0x6ed0 net/sctp/sm_sideeffect.c:1181 sctp_primitive_ASSOCIATE+0x9d/0xd0 net/sctp/primitive.c:88 sctp_sendmsg+0x13bd/0x35e0 net/sctp/socket.c:1985 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:00007fc949049c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007fc94904a6d4 RCX: 0000000000453da9 RDX: 0000000000000001 RSI: 00000000203aa000 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000020749fe4 R09: 000000000000001c R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004ba R14: 00000000006f7210 R15: 0000000000000000 ptrace attach of "/root/syz-executor2"[4143] was attempted by "/root/syz-executor2"[5324] binder: 5317:5318 Acquire 1 refcount change on invalid ref 0 ret -22 binder: 5318 RLIMIT_NICE not set binder: 5317:5332 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 5317:5344 Acquire 1 refcount change on invalid ref 0 ret -22 binder: 5332 RLIMIT_NICE not set binder: 5317:5344 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 xt_connbytes: Forcing CT accounting to be enabled device eql entered promiscuous mode capability: warning: `syz-executor2' uses 32-bit capabilities (legacy support in use) rpcbind: RPC call returned error 22 xt_connbytes: Forcing CT accounting to be enabled rpcbind: RPC call returned error 22 binder: 5542:5551 ioctl 40044581 20000040 returned -22 x_tables: ip6_tables: eui64 match: used from hooks INPUT/FORWARD/OUTPUT, but only valid from PREROUTING/INPUT/FORWARD x_tables: ip6_tables: eui64 match: used from hooks INPUT/FORWARD/OUTPUT, but only valid from PREROUTING/INPUT/FORWARD xt_CT: No such timeout policy "syz1" xt_CT: No such timeout policy "syz1" SELinux: policydb version 1876534990 does not match my version range 15-31 SELinux: failed to load policy xt_CT: No such helper "pptp" mmap: syz-executor0 (5705) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt. xt_CT: No such helper "pptp" encrypted_key: master key parameter 'Ÿú-@鱪ei§×' is invalid encrypted_key: master key parameter 'Ÿú-@鱪ei§×' is invalid xt_hashlimit: overflow, try lower: 0/0 xt_hashlimit: overflow, try lower: 0/0 Cannot find add_set index 5 as target Cannot find add_set index 5 as target sctp: [Deprecated]: syz-executor0 (pid 6029) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor0 (pid 6037) Use of int in maxseg socket option. Use struct sctp_assoc_value instead SELinux: unrecognized netlink message: protocol=0 nlmsg_type=39005 sclass=netlink_route_socket pig=6049 comm=syz-executor2 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=39005 sclass=netlink_route_socket pig=6049 comm=syz-executor2 ipt_ECN: new ECT codepoint 80 out of mask can: request_module (can-proto-3) failed. encrypted_key: insufficient parameters specified encrypted_key: insufficient parameters specified can: request_module (can-proto-3) failed. xt_connbytes: Forcing CT accounting to be enabled device eql entered promiscuous mode kauditd_printk_skb: 11 callbacks suppressed audit: type=1400 audit(1519221559.378:33): avc: denied { write } for pid=6156 comm="syz-executor0" name="net" dev="proc" ino=17099 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 audit: type=1400 audit(1519221559.379:34): avc: denied { add_name } for pid=6156 comm="syz-executor0" name="pfkey" 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 audit: type=1400 audit(1519221559.380:35): avc: denied { create } for pid=6156 comm="syz-executor0" name="pfkey" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:insmod_t:s0 tclass=file permissive=1 netlink: 'syz-executor6': attribute type 1 has an invalid length. x_tables: ip6_tables: CLASSIFY target: used from hooks INPUT, but only usable from FORWARD/OUTPUT/POSTROUTING x_tables: ip6_tables: CLASSIFY target: used from hooks INPUT, but only usable from FORWARD/OUTPUT/POSTROUTING audit: type=1400 audit(1519221559.907:36): avc: denied { net_broadcast } for pid=6303 comm="syz-executor0" capability=11 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=1326 audit(1519221559.956:37): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6319 comm="syz-executor4" exe="/root/syz-executor4" sig=9 arch=c000003e syscall=202 compat=0 ip=0x453da9 code=0x0 audit: type=1326 audit(1519221560.022:38): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6319 comm="syz-executor4" exe="/root/syz-executor4" sig=9 arch=c000003e syscall=202 compat=0 ip=0x453da9 code=0x0 syz-executor1 (6425) used greatest stack depth: 15744 bytes left Dead loop on virtual device ip6_vti0, fix it urgently! Dead loop on virtual device ip6_vti0, fix it urgently! audit: type=1326 audit(1519221560.398:39): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6444 comm="syz-executor0" exe="/root/syz-executor0" sig=9 arch=c000003e syscall=202 compat=0 ip=0x453da9 code=0x0 audit: type=1400 audit(1519221560.492:40): avc: denied { map } for pid=6506 comm="syz-executor5" path="/dev/usbmon0" dev="devtmpfs" ino=9121 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usbmon_device_t:s0 tclass=chr_file permissive=1 PPPIOCDETACH file->f_count=2 capability: warning: `syz-executor2' uses deprecated v2 capabilities in a way that may be insecure audit: type=1400 audit(1519221561.393:41): avc: denied { bind } for pid=6709 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_netfilter_socket permissive=1 xt_CT: netfilter: NOTRACK target is deprecated, use CT instead or upgrade iptables device syz7 entered promiscuous mode device syz7 left promiscuous mode ipt_REJECT: ECHOREPLY no longer supported. audit: type=1400 audit(1519221561.802:42): avc: denied { map } for pid=6837 comm="syz-executor2" path="/" dev="ramfs" ino=19520 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ramfs_t:s0 tclass=dir permissive=1 ipt_REJECT: ECHOREPLY no longer supported. kernel msg: ebtables bug: please report to author: EBT_ENTRY_OR_ENTRIES shouldn't be set in distinguisher kernel msg: ebtables bug: please report to author: EBT_ENTRY_OR_ENTRIES shouldn't be set in distinguisher mmap: syz-executor0 (7097): VmData 18571264 exceed data ulimit 0. Update limits or use boot option ignore_rlimit_data. xt_l2tp: missing protocol rule (udp|l2tpip) xt_l2tp: missing protocol rule (udp|l2tpip) TCP: request_sock_TCPv6: Possible SYN flooding on port 20022. Sending cookies. Check SNMP counters. xt_CT: netfilter: NOTRACK target is deprecated, use CT instead or upgrade iptables xt_CONNSECMARK: target only valid in the 'mangle' or 'security' tables, not 'filter'. xt_CONNSECMARK: target only valid in the 'mangle' or 'security' tables, not 'filter'. netlink: 2 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 2 bytes leftover after parsing attributes in process `syz-executor4'. QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl TCP: request_sock_TCPv6: Possible SYN flooding on port 20010. Sending cookies. Check SNMP counters. netlink: 7 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 7 bytes leftover after parsing attributes in process `syz-executor2'. kauditd_printk_skb: 11 callbacks suppressed audit: type=1400 audit(1519221564.635:54): avc: denied { getrlimit } for pid=7854 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=process permissive=1 binder: 7853:7863 transaction failed 29189/-22, size 0-0 line 2842 binder: 7853:7872 transaction failed 29189/-22, size 0-0 line 2842 binder: 7853:7863 ERROR: BC_REGISTER_LOOPER called without request binder: 7853:7863 ERROR: BC_ENTER_LOOPER called after BC_REGISTER_LOOPER binder: 7853:7863 got reply transaction with no transaction stack binder: 7853:7863 transaction failed 29201/-71, size 104-40 line 2757 binder: undelivered TRANSACTION_ERROR: 29189 device eql entered promiscuous mode x_tables: ip6_tables: recent.0 match: invalid size 216 (kernel) != (user) 232 audit: type=1400 audit(1519221565.006:55): avc: denied { create } for pid=7969 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_scsitransport_socket permissive=1 audit: type=1400 audit(1519221565.113:56): avc: denied { map } for pid=8009 comm="syz-executor6" path="/dev/vcs" dev="devtmpfs" ino=9005 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tty_device_t:s0 tclass=chr_file permissive=1 audit: type=1400 audit(1519221565.178:57): avc: denied { lock } for pid=8020 comm="syz-executor7" path="socket:[22692]" dev="sockfs" ino=22692 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 kernel msg: ebtables bug: please report to author: EBT_ENTRY_OR_ENTRIES shouldn't be set in distinguisher PPPIOCDETACH file->f_count=2 kernel msg: ebtables bug: please report to author: EBT_ENTRY_OR_ENTRIES shouldn't be set in distinguisher PPPIOCDETACH file->f_count=2 SELinux: unrecognized netlink message: protocol=9 nlmsg_type=66 sclass=netlink_audit_socket pig=8128 comm=syz-executor1