QAT: Invalid ioctl ============================= 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-executor5/20135: #0: (cb_lock){++++}, at: [<000000008ff7e4cd>] genl_rcv+0x19/0x40 net/netlink/genetlink.c:634 #1: (genl_mutex){+.+.}, at: [<000000001d8ffe70>] genl_lock net/netlink/genetlink.c:33 [inline] #1: (genl_mutex){+.+.}, at: [<000000001d8ffe70>] genl_rcv_msg+0x115/0x140 net/netlink/genetlink.c:622 stack backtrace: CPU: 1 PID: 20135 Comm: syz-executor5 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:00007f7861810c58 EFLAGS: 00000212 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000071bec8 RCX: 0000000000453299 RDX: 0000000000000000 RSI: 000000002000c000 RDI: 0000000000000013 RBP: 000000000071bec8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000000 R13: 0000000000a2f33f R14: 00007f78618119c0 R15: 0000000000000000 device eql entered promiscuous mode l2tp_core: tunl 3: fd 19 wrong protocol, got 1, expected 17 l2tp_core: tunl 3: fd 19 wrong protocol, got 1, expected 17 binder: BINDER_SET_CONTEXT_MGR already set binder: 20466:20496 ioctl 40046207 0 returned -16 binder: undelivered death notification, 0000000000000000 binder: undelivered death notification, 0000000000000000 RDS: rds_bind could not find a transport for 255.255.255.255, load rds_tcp or rds_rdma? RDS: rds_bind could not find a transport for 255.255.255.255, load rds_tcp or rds_rdma? binder: BINDER_SET_CONTEXT_MGR already set binder: 20824:20826 ioctl 40046207 0 returned -16 netlink: 'syz-executor4': attribute type 8 has an invalid length. netlink: 'syz-executor4': attribute type 8 has an invalid length. IPv4: Oversized IP packet from 127.0.0.1 Empty option to dns_resolver key 9pnet_virtio: no channels available for device ./file0 9pnet_virtio: no channels available for device ./file0 QAT: Invalid ioctl kauditd_printk_skb: 168 callbacks suppressed audit: type=1400 audit(1517213022.419:1678): avc: denied { getopt } for pid=21209 comm="syz-executor6" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=socket permissive=1 QAT: Invalid ioctl audit: type=1400 audit(1517213022.526:1679): avc: denied { ioctl } for pid=21226 comm="syz-executor6" path="socket:[54319]" dev="sockfs" ino=54319 ioctlcmd=0xaf03 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 dccp_close: ABORT with 65423 bytes unread audit: type=1400 audit(1517213023.687:1680): avc: denied { setgid } for pid=21400 comm="syz-executor6" capability=6 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(1517213023.812:1681): avc: denied { read } for pid=21420 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 device eql entered promiscuous mode audit: type=1326 audit(1517213023.905:1682): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=21442 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517213023.905:1683): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=21442 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517213023.908:1684): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=21442 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=51 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517213023.908:1685): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=21442 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517213023.908:1686): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=21442 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=53 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517213023.908:1687): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=21442 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 binder_alloc: binder_alloc_mmap_handler: 21471 20000000-20002000 already mapped failed -16 binder: 21484 RLIMIT_NICE not set binder_alloc: 21471: binder_alloc_buf, no vma binder: 21471:21474 transaction failed 29189/-3, size 0-0 line 2903 binder: undelivered TRANSACTION_ERROR: 29189 binder: 21568 RLIMIT_NICE not set binder: 21568 RLIMIT_NICE not set binder: release 21565:21580 transaction 100 out, still active binder: undelivered TRANSACTION_COMPLETE binder: BINDER_SET_CONTEXT_MGR already set binder: 21565:21580 ioctl 40046207 0 returned -16 binder: 21568 RLIMIT_NICE not set binder_alloc: 21565: binder_alloc_buf, no vma binder: 21565:21568 transaction failed 29189/-3, size 0-0 line 2903 binder: undelivered TRANSACTION_ERROR: 29189 binder: release 21565:21568 transaction 100 in, still active binder: send failed reply for transaction 100, target dead binder: release 21585:21604 transaction 103 out, still active binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 103, target dead binder: send failed reply for transaction 105 to 21585:21604 binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29189 Cannot find add_set index 0 as target Cannot find add_set index 0 as target binder: 21761:21765 BC_ACQUIRE_DONE uffffffffffffffff no match binder: 21761:21778 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 21761:21778 BC_CLEAR_DEATH_NOTIFICATION invalid ref 0 binder: 21778 RLIMIT_NICE not set binder: 21761:21778 ioctl c0306201 2000dfd0 returned -11 binder: BINDER_SET_CONTEXT_MGR already set binder: 21761:21778 ioctl 40046207 0 returned -16 binder: 21761:21793 BC_ACQUIRE_DONE uffffffffffffffff no match binder: 21761:21793 unknown command 0 binder: 21761:21793 ioctl c0306201 20007000 returned -22 binder: 21761:21793 BC_CLEAR_DEATH_NOTIFICATION invalid ref 0 binder: 21793 RLIMIT_NICE not set binder: 21761:21778 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 21761:21765 unknown command 0 binder: 21761:21765 ioctl c0306201 20007000 returned -22 device eql entered promiscuous mode QAT: Invalid ioctl QAT: Invalid ioctl IPVS: ftp: loaded support on port[0] = 21 IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready