QAT: Invalid ioctl ============================================ WARNING: possible recursive locking detected 4.15.0-rc8+ #269 Not tainted -------------------------------------------- syz-executor0/6155 is trying to acquire lock: (&vq->mutex){+.+.}, at: [<00000000b5261486>] vhost_dev_lock_vqs drivers/vhost/vhost.c:907 [inline] (&vq->mutex){+.+.}, at: [<00000000b5261486>] vhost_process_iotlb_msg drivers/vhost/vhost.c:997 [inline] (&vq->mutex){+.+.}, at: [<00000000b5261486>] vhost_chr_write_iter+0x278/0x1580 drivers/vhost/vhost.c:1046 but task is already holding lock: (&vq->mutex){+.+.}, at: [<00000000b5261486>] vhost_dev_lock_vqs drivers/vhost/vhost.c:907 [inline] (&vq->mutex){+.+.}, at: [<00000000b5261486>] vhost_process_iotlb_msg drivers/vhost/vhost.c:997 [inline] (&vq->mutex){+.+.}, at: [<00000000b5261486>] vhost_chr_write_iter+0x278/0x1580 drivers/vhost/vhost.c:1046 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&vq->mutex); lock(&vq->mutex); *** DEADLOCK *** May be due to missing lock nesting notation 1 lock held by syz-executor0/6155: #0: (&vq->mutex){+.+.}, at: [<00000000b5261486>] vhost_dev_lock_vqs drivers/vhost/vhost.c:907 [inline] #0: (&vq->mutex){+.+.}, at: [<00000000b5261486>] vhost_process_iotlb_msg drivers/vhost/vhost.c:997 [inline] #0: (&vq->mutex){+.+.}, at: [<00000000b5261486>] vhost_chr_write_iter+0x278/0x1580 drivers/vhost/vhost.c:1046 stack backtrace: CPU: 1 PID: 6155 Comm: syz-executor0 Not tainted 4.15.0-rc8+ #269 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_deadlock_bug kernel/locking/lockdep.c:1756 [inline] check_deadlock kernel/locking/lockdep.c:1800 [inline] validate_chain kernel/locking/lockdep.c:2396 [inline] __lock_acquire+0xe8f/0x3e00 kernel/locking/lockdep.c:3426 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3914 __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0x16f/0x1a80 kernel/locking/mutex.c:893 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908 vhost_dev_lock_vqs drivers/vhost/vhost.c:907 [inline] vhost_process_iotlb_msg drivers/vhost/vhost.c:997 [inline] vhost_chr_write_iter+0x278/0x1580 drivers/vhost/vhost.c:1046 vhost_net_chr_write_iter+0x59/0x70 drivers/vhost/net.c:1353 call_write_iter include/linux/fs.h:1772 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x684/0x970 fs/read_write.c:482 vfs_write+0x189/0x510 fs/read_write.c:544 SYSC_write fs/read_write.c:589 [inline] SyS_write+0xef/0x220 fs/read_write.c:581 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x452ee9 RSP: 002b:00007f24f20edc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452ee9 RDX: 0000000000000068 RSI: 00000000202ff000 RDI: 0000000000000013 RBP: 0000000000000327 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f3c48 R13: 00000000ffffffff R14: 00007f24f20ee6d4 R15: 0000000000000000 binder: BINDER_SET_CONTEXT_MGR already set binder: 6548:6571 ioctl 40046207 0 returned -16 binder: undelivered death notification, 0000000000000000 binder: undelivered death notification, 0000000000000000 QAT: Invalid ioctl QAT: Invalid ioctl insert transport fail, errno -17 binder: BINDER_SET_CONTEXT_MGR already set binder: 6680:6691 ioctl 40046207 0 returned -16 capability: warning: `syz-executor2' uses deprecated v2 capabilities in a way that may be insecure binder: BINDER_SET_CONTEXT_MGR already set binder: 7006:7020 ioctl 40046207 0 returned -16 binder: 7006:7009 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 7006:7027 Release 1 refcount change on invalid ref 0 ret -22 QAT: Invalid ioctl QAT: Invalid ioctl autofs4:pid:7101:check_dev_ioctl_version: ioctl control interface version mismatch: kernel(1.1), user(3590324411.0), cmd(0x0000937e) autofs4:pid:7101:validate_dev_ioctl: invalid device control module version supplied for cmd(0x0000937e) rfkill: input handler disabled rfkill: input handler enabled IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready QAT: Invalid ioctl QAT: Invalid ioctl kauditd_printk_skb: 53 callbacks suppressed audit: type=1326 audit(1516426486.422:258): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7438 comm="syz-executor6" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000 audit: type=1326 audit(1516426486.425:259): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7438 comm="syz-executor6" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=234 compat=0 ip=0x452ee9 code=0x7ffc0000 audit: type=1326 audit(1516426486.426:260): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7438 comm="syz-executor6" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000 audit: type=1326 audit(1516426486.426:261): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7438 comm="syz-executor6" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=16 compat=0 ip=0x452ee9 code=0x7ffc0000 audit: type=1326 audit(1516426486.426:262): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7438 comm="syz-executor6" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000 audit: type=1326 audit(1516426486.427:263): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7438 comm="syz-executor6" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=302 compat=0 ip=0x452ee9 code=0x7ffc0000 audit: type=1326 audit(1516426486.427:264): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7438 comm="syz-executor6" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000 audit: type=1326 audit(1516426486.427:265): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7438 comm="syz-executor6" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=9 compat=0 ip=0x452ee9 code=0x7ffc0000 dccp_close: ABORT with 2 bytes unread audit: type=1326 audit(1516426486.428:266): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7438 comm="syz-executor6" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=202 compat=0 ip=0x452ee9 code=0x7ffc0000 audit: type=1326 audit(1516426486.439:267): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7438 comm="syz-executor6" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=317 compat=0 ip=0x452ee9 code=0x7ffc0000 QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl could not allocate digest TFM handle could not allocate digest TFM handle binder: 7901 invalid dec weak, ref 23 desc 1 s 1 w 0 binder: BINDER_SET_CONTEXT_MGR already set binder: 7901:7915 ioctl 40046207 0 returned -16 binder_alloc: 7901: binder_alloc_buf, no vma binder: 7901:7915 transaction failed 29189/-3, size 40-8 line 2903 binder: undelivered TRANSACTION_ERROR: 29189 binder: release 7901:7902 transaction 21 out, still active binder: unexpected work type, 4, not freed binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 21, target dead binder: 7925 invalid dec weak, ref 29 desc 1 s 1 w 0 binder: release 7925:7933 transaction 27 out, still active binder: unexpected work type, 4, not freed binder: 7964:7973 ERROR: BC_REGISTER_LOOPER called without request binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 27, target dead binder: 7967 invalid dec weak, ref 36 desc 1 s 1 w 0 binder: BINDER_SET_CONTEXT_MGR already set binder: 7964:7973 ioctl 40046207 0 returned -16 binder: 7964:7982 ERROR: BC_REGISTER_LOOPER called without request binder_alloc: 7964: binder_alloc_buf, no vma binder: 7964:7982 transaction failed 29189/-3, size 0-0 line 2903 binder: release 7967:7969 transaction 34 out, still active binder: unexpected work type, 4, not freed binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 34, target dead binder: send failed reply for transaction 32 to 7964:7973 binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 binder: 8182:8185 BC_ACQUIRE_DONE uffffffffffffffff no match binder: 8182:8185 got transaction to invalid handle binder: 8182:8185 transaction failed 29201/-22, size 24-16 line 2788 binder: 8182:8185 BC_ACQUIRE_DONE uffffffffffffffff no match binder: 8182:8185 got transaction to invalid handle binder: 8182:8185 transaction failed 29201/-22, size 24-16 line 2788 binder: BINDER_SET_CONTEXT_MGR already set binder: 8182:8185 ioctl 40046207 0 returned -16 binder_alloc: 8182: binder_alloc_buf, no vma binder: 8182:8200 transaction failed 29189/-3, size 40-0 line 2903 binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 do_dccp_setsockopt: sockopt(CHANGE_L/R) is deprecated: fix your app do_dccp_setsockopt: sockopt(CHANGE_L/R) is deprecated: fix your app program syz-executor2 is using a deprecated SCSI ioctl, please convert it to SG_IO sd 0:0:1:0: ioctl_internal_command: ILLEGAL REQUEST asc=0x20 ascq=0x0 program syz-executor2 is using a deprecated SCSI ioctl, please convert it to SG_IO sd 0:0:1:0: ioctl_internal_command: ILLEGAL REQUEST asc=0x20 ascq=0x0