ip_tables: iptables: counters copy to user failed while replacing table ============================= WARNING: suspicious RCU usage 4.15.0-rc9+ #284 Not tainted ----------------------------- net/tipc/bearer.c:177 suspicious rcu_dereference_protected() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 2 locks held by syz-executor2/8868: #0: (cb_lock){++++}, at: [<00000000e0fdeafa>] genl_rcv+0x19/0x40 net/netlink/genetlink.c:634 #1: (genl_mutex){+.+.}, at: [<000000009112ef93>] genl_lock net/netlink/genetlink.c:33 [inline] #1: (genl_mutex){+.+.}, at: [<000000009112ef93>] genl_rcv_msg+0x115/0x140 net/netlink/genetlink.c:622 stack backtrace: CPU: 1 PID: 8868 Comm: syz-executor2 Not tainted 4.15.0-rc9+ #284 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 lockdep_rcu_suspicious+0x123/0x170 kernel/locking/lockdep.c:4587 tipc_bearer_find+0x2b4/0x3b0 net/tipc/bearer.c:177 tipc_nl_compat_link_set+0x329/0x9f0 net/tipc/netlink_compat.c:729 __tipc_nl_compat_doit net/tipc/netlink_compat.c:288 [inline] tipc_nl_compat_doit+0x15b/0x670 net/tipc/netlink_compat.c:335 tipc_nl_compat_handle net/tipc/netlink_compat.c:1119 [inline] tipc_nl_compat_recv+0x1135/0x18f0 net/tipc/netlink_compat.c:1201 genl_family_rcv_msg+0x7b7/0xfb0 net/netlink/genetlink.c:599 genl_rcv_msg+0xb2/0x140 net/netlink/genetlink.c:624 netlink_rcv_skb+0x14b/0x380 net/netlink/af_netlink.c:2409 genl_rcv+0x28/0x40 net/netlink/genetlink.c:635 netlink_unicast_kernel net/netlink/af_netlink.c:1275 [inline] netlink_unicast+0x4ee/0x700 net/netlink/af_netlink.c:1301 netlink_sendmsg+0xa4a/0xe60 net/netlink/af_netlink.c:1864 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg+0xca/0x110 net/socket.c:648 ___sys_sendmsg+0x767/0x8b0 net/socket.c:2028 __sys_sendmsg+0xe5/0x210 net/socket.c:2062 SYSC_sendmsg net/socket.c:2073 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2069 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x453299 RSP: 002b:00007f5910d7ac58 EFLAGS: 00000212 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000000000000 RSI: 0000000020011000 RDI: 0000000000000013 RBP: 0000000000000611 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f8238 R13: 00000000ffffffff R14: 00007f5910d7b6d4 R15: 0000000000000000 mmap: syz-executor1 (8942): VmData 35160064 exceed data ulimit 0. Update limits or use boot option ignore_rlimit_data. Cannot find add_set index 0 as target netlink: 'syz-executor7': attribute type 18 has an invalid length. netlink: 'syz-executor7': attribute type 18 has an invalid length. sctp: [Deprecated]: syz-executor7 (pid 9069) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead binder: 9166:9171 BC_ACQUIRE_DONE u0000000000000000 no match binder: 9166:9171 BC_FREE_BUFFER u0000000000000000 no match binder: 9166:9171 DecRefs 0 refcount change on invalid ref 4 ret -22 binder: 9166:9171 BC_DEAD_BINDER_DONE 0000000000000000 not found binder: 9166:9171 got reply transaction with no transaction stack binder: 9166:9171 transaction failed 29201/-71, size 0-24 line 2703 binder: undelivered TRANSACTION_ERROR: 29201 binder: 9267 RLIMIT_NICE not set binder: 9257:9286 tried to acquire reference to desc 0, got 1 instead binder: 9257:9284 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 9257:9279 BC_CLEAR_DEATH_NOTIFICATION invalid ref 0 binder: 9279 RLIMIT_NICE not set binder: undelivered death notification, 0000000000000000 sit: non-ECT from 0.0.0.0 with TOS=0x2 ipt_ECN: cannot use TCP operations on a non-tcp rule ipt_ECN: cannot use TCP operations on a non-tcp rule sit: non-ECT from 0.0.0.0 with TOS=0x2 device gre0 entered promiscuous mode binder: BINDER_SET_CONTEXT_MGR already set binder: 9587:9592 ioctl 40046207 0 returned -16 binder: 9587:9608 unknown command 0 binder: 9587:9608 ioctl c0306201 20007000 returned -22 netlink: 'syz-executor7': attribute type 1 has an invalid length. kauditd_printk_skb: 72 callbacks suppressed audit: type=1400 audit(1517210365.880:392): avc: denied { accept } for pid=9683 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_netfilter_socket permissive=1 netlink: 'syz-executor7': attribute type 1 has an invalid length. netlink: 18 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 18 bytes leftover after parsing attributes in process `syz-executor2'. audit: type=1326 audit(1517210366.197:393): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=9726 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517210366.197:394): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=9726 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=319 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517210366.198:395): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=9726 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517210366.199:396): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=9726 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=8 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517210366.199:397): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=9726 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517210366.200:398): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=9726 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=9 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517210366.203:399): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=9726 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517210366.205:400): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=9726 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=41 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517210366.206:401): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=9726 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 DRBG: could not allocate digest TFM handle: hmac(sha512) binder: 9924:9925 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 9924:9925 BC_CLEAR_DEATH_NOTIFICATION invalid ref 0 binder: 9925 RLIMIT_NICE not set binder: BINDER_SET_CONTEXT_MGR already set binder: 9924:9929 ioctl 40046207 0 returned -16 binder: 9924:9929 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 9924:9928 BC_CLEAR_DEATH_NOTIFICATION invalid ref 0 SELinux: unrecognized netlink message: protocol=9 nlmsg_type=30 sclass=netlink_audit_socket pig=10019 comm=syz-executor2 QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl netlink: 3 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 'syz-executor7': attribute type 16 has an invalid length. netlink: 'syz-executor7': attribute type 16 has an invalid length. TCP: request_sock_TCPv6: Possible SYN flooding on port 20006. Sending cookies. Check SNMP counters. nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. NFQUEUE: number of total queues is 0 NFQUEUE: number of total queues is 0 xt_hashlimit: overflow, try lower: 0/0 xt_hashlimit: overflow, try lower: 0/0 binder: 10605 RLIMIT_NICE not set binder: 10605 RLIMIT_NICE not set binder: 10598:10615 got reply transaction with bad transaction stack, transaction 40 has target 10598:0 binder: 10598:10615 transaction failed 29201/-71, size 0-0 line 2718 binder: BINDER_SET_CONTEXT_MGR already set binder: 10598:10625 ioctl 40046207 0 returned -16 binder_alloc: binder_alloc_mmap_handler: 10598 20000000-20002000 already mapped failed -16 binder_alloc: 10598: binder_alloc_buf, no vma binder: 10598:10625 transaction failed 29189/-3, size 0-0 line 2903 QAT: Invalid ioctl QAT: Invalid ioctl binder: BINDER_SET_CONTEXT_MGR already set binder: 10634:10637 ioctl 40046207 0 returned -16 binder_alloc: 10598: binder_alloc_buf, no vma binder: 10634:10637 transaction failed 29189/-3, size 0-0 line 2903 binder: BINDER_SET_CONTEXT_MGR already set binder: 10634:10637 ioctl 40046207 0 returned -16 binder_alloc: 10598: binder_alloc_buf, no vma binder: 10634:10638 transaction failed 29189/-3, size 0-0 line 2903 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 binder: release 10598:10605 transaction 40 in, still active binder: send failed reply for transaction 40 to 10598:10615 binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 kauditd_printk_skb: 16 callbacks suppressed audit: type=1326 audit(1517210370.982:418): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=10792 comm="syz-executor4" exe="/root/syz-executor4" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517210370.982:419): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=10792 comm="syz-executor4" exe="/root/syz-executor4" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517210370.984:420): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=10792 comm="syz-executor4" exe="/root/syz-executor4" sig=0 arch=c000003e syscall=29 compat=0 ip=0x453299 code=0x7ffc0000