keychord: Insufficient bytes present for keycount 30 ===================================== [ BUG: bad unlock balance detected! ] 4.9.67-gf26d3c7 #106 Not tainted ------------------------------------- syz-executor1/21774 is trying to release lock ([ 124.615167] binder: 21739:21760 ioctl 8924 20002000 returned -22 binder: BINDER_SET_CONTEXT_MGR already set binder: 21739:21766 ioctl 40046207 0 returned -16 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 1 PID: 21750 Comm: syz-executor4 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cf5474e0 ffffffff81d906e9 ffff8801cf5477c0 0000000000000000 ffff8801c6a1a590 ffff8801cf5476b0 ffff8801c6a1a480 ffff8801cf5476d8 ffffffff8165e307 00000000000056ef ffff8801cf547630 00000001cff37067Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa37/0x1300 fs/userfaultfd.c:323 [] do_anonymous_page mm/memory.c:2747 [inline] [] handle_pte_fault mm/memory.c:3488 [inline] [] __handle_mm_fault mm/memory.c:3577 [inline] [] handle_mm_fault+0x1fd1/0x2530 mm/memory.c:3614 [] __do_page_fault+0x5c2/0xd40 arch/x86/mm/fault.c:1406 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1469 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1012 [] generic_perform_write+0x1dc/0x500 mm/filemap.c:2731 [] __generic_file_write_iter+0x348/0x570 mm/filemap.c:2866 [] generic_file_write_iter+0x2d5/0x600 mm/filemap.c:2894 [] new_sync_write fs/read_write.c:499 [inline] [] __vfs_write+0x4bf/0x680 fs/read_write.c:512 [] vfs_write+0x189/0x530 fs/read_write.c:560 [] SYSC_write fs/read_write.c:607 [inline] [] SyS_write+0xd9/0x1b0 fs/read_write.c:599 [] entry_SYSCALL_64_fastpath+0x23/0xc6 binder: 21739:21760 ERROR: BC_REGISTER_LOOPER called without request binder_alloc: 21739: binder_alloc_buf, no vma binder: 21739:21766 transaction failed 29189/-3, size 68719476736-55466908675685 line 3130 mrt_lock) at: but there are no more locks to release! other info that might help us debug this: 2 locks held by syz-executor1/21774: #0: (&f->f_pos_lock){+.+.+.}, at: [] __fdget_pos+0x9f/0xc0 fs/file.c:781 #1: (&p->lock){+.+.+.}, at: [] seq_read+0xdd/0x1290 fs/seq_file.c:178 stack backtrace: CPU: 0 PID: 21774 Comm: syz-executor1 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801a606f8e8 ffffffff81d906e9 ffffffff849ae8f8 ffff8801d4f31800 ffffffff834dec54 ffffffff849ae8f8 ffff8801d4f32088 ffff8801a606f918 ffffffff812353f4 dffffc0000000000 ffffffff849ae8f8 00000000ffffffff Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_unlock_imbalance_bug+0x174/0x1a0 kernel/locking/lockdep.c:3398 [] __lock_release kernel/locking/lockdep.c:3540 [inline] [] lock_release+0x6f8/0xb80 kernel/locking/lockdep.c:3775 [] __raw_read_unlock include/linux/rwlock_api_smp.h:225 [inline] [] _raw_read_unlock+0x1a/0x50 kernel/locking/spinlock.c:255 [] ipmr_mfc_seq_stop+0xe4/0x140 net/ipv6/ip6mr.c:553 [] seq_read+0xa83/0x1290 fs/seq_file.c:283 [] proc_reg_read+0xef/0x170 fs/proc/inode.c:202 [] do_loop_readv_writev.part.17+0x141/0x1e0 fs/read_write.c:714 [] do_loop_readv_writev fs/read_write.c:880 [inline] [] do_readv_writev+0x520/0x750 fs/read_write.c:874 [] vfs_readv+0x84/0xc0 fs/read_write.c:898 [] do_readv+0xe6/0x250 fs/read_write.c:924 [] SYSC_readv fs/read_write.c:1011 [inline] [] SyS_readv+0x27/0x30 fs/read_write.c:1008 [] entry_SYSCALL_64_fastpath+0x23/0xc6 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 binder: 21812:21813 BC_DEAD_BINDER_DONE 0000000000000003 not found binder: 21812:21813 got transaction to invalid handle binder: 21812:21813 transaction failed 29201/-22, size 24-16 line 3007 binder: 21812:21823 Acquire 1 refcount change on invalid ref 0 ret -22 binder: 21812:21813 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 21812:21823 BC_CLEAR_DEATH_NOTIFICATION invalid ref 0 binder: undelivered death notification, 0000000000000000 binder: 21868:21869 ioctl 40046205 0 returned -22 binder: 21868:21869 ERROR: BC_REGISTER_LOOPER called without request binder: 21868:21869 unknown command 1400526783 binder: 21868:21869 ioctl c0306201 20002fd0 returned -22 binder: 21868:21869 ioctl c018620b 20000fe8 returned -14 binder: 21868:21869 BC_FREE_BUFFER uffffffffffffffff no match binder: 21868:21869 BC_CLEAR_DEATH_NOTIFICATION death notification not active binder: 21868:21869 BC_REQUEST_DEATH_NOTIFICATION invalid ref 3 binder: 21868:21869 got reply transaction with no transaction stack binder: undelivered TRANSACTION_COMPLETE binder: undelivered transaction 254, process died. binder: 21868:21882 BC_FREE_BUFFER u00000000ffffffff no match binder: 21868:21869 transaction failed 29201/-71, size 32-16 line 2923 binder: 21868:21882 ioctl 40046205 6 returned -22 binder: 21868:21882 ioctl 40046205 0 returned -22 binder: BINDER_SET_CONTEXT_MGR already set binder: 21868:21897 ioctl 40046207 0 returned -16 binder_alloc: 21868: binder_alloc_buf, no vma binder: 21868:21897 transaction failed 29189/-3, size 0-0 line 3130 binder: 21868:21882 ERROR: BC_REGISTER_LOOPER called without request binder: 21868:21912 unknown command 0 binder: 21868:21912 ioctl c0306201 20002fd0 returned -22 binder: 21868:21912 got reply transaction with no transaction stack binder: 21868:21912 transaction failed 29201/-71, size 24-8 line 2923 binder: 21868:21897 ioctl c018620b 20000fe8 returned -14 device lo entered promiscuous mode binder: 21868:21912 BC_FREE_BUFFER uffffffffffffffff no match binder: 21868:21912 IncRefs 0 refcount change on invalid ref 1 ret -22 binder: 21868:21912 got transaction to invalid handle binder: 21868:21912 transaction failed 29201/-22, size 72-8 line 3007 binder: 21868:21912 ioctl c0306201 20005fd0 returned -14 binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_ERROR: 29189 binder: 21868:21912 BC_FREE_BUFFER u0000000000000000 no match device gre0 entered promiscuous mode binder: 21868:21869 ioctl c0306201 20005fd0 returned -14 binder: unexpected work type, 4, not freed binder: undelivered TRANSACTION_COMPLETE binder: unexpected work type, 4, not freed binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered transaction 258, process died. binder: undelivered TRANSACTION_ERROR: 29201 device lo left promiscuous mode binder: BINDER_SET_CONTEXT_MGR already set binder: 21981:21985 ioctl 40046207 0 returned -16 binder: binder_mmap: 21981 204c6000-204c7000 bad vm_flags failed -1 binder: BINDER_SET_CONTEXT_MGR already set binder: 21981:21985 ioctl 40046207 0 returned -16 binder_alloc: binder_alloc_mmap_handler: 21981 20000000-20002000 already mapped failed -16 binder_alloc: binder_alloc_mmap_handler: 21981 20000000-20002000 already mapped failed -16 keychord: invalid keycode count 0 keychord: invalid keycode count 0 binder: BINDER_SET_CONTEXT_MGR already set binder: 21981:22013 ioctl 40046207 0 returned -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 21981:22013 ioctl 40046207 0 returned -16 binder_alloc: 21981: binder_alloc_buf, no vma binder: 21981:21985 transaction failed 29189/-3, size 0-0 line 3130 binder_alloc: 21981: binder_alloc_buf, no vma binder: 21981:21985 transaction failed 29189/-3, size 0-0 line 3130 binder: binder_mmap: 21981 204c6000-204c7000 bad vm_flags failed -1 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_COMPLETE binder: undelivered transaction 268, process died. binder: undelivered transaction 267, process died. binder: undelivered TRANSACTION_ERROR: 29189 IPVS: Creating netns size=2536 id=33 pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads nla_parse: 9 callbacks suppressed netlink: 1 bytes leftover after parsing attributes in process `syz-executor3'. IPv6: NLM_F_REPLACE set, but no existing node found! netlink: 6 bytes leftover after parsing attributes in process `syz-executor5'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=22257 comm=syz-executor5 binder: 22292:22293 ioctl 2403 ffff returned -22 binder: 22292:22301 ioctl 8004e500 20005000 returned -22 binder: 22292:22301 ioctl 401845ef 20004000 returned -22 binder: 22292:22301 ioctl 2403 ffff returned -22 binder: BINDER_SET_CONTEXT_MGR already set binder: 22292:22320 ioctl 40046207 0 returned -16 binder: 22292:22320 ioctl 8004e500 20005000 returned -22 binder: 22292:22320 ioctl 401845ef 20004000 returned -22 binder: undelivered death notification, 0000000000000000 PF_BRIDGE: RTM_SETLINK with unknown ifindex SELinux: unrecognized netlink message: protocol=0 nlmsg_type=57636 sclass=netlink_route_socket pig=22329 comm=syz-executor6 binder: undelivered death notification, 0000000000000000 PF_BRIDGE: RTM_SETLINK with unknown ifindex SELinux: unrecognized netlink message: protocol=0 nlmsg_type=57636 sclass=netlink_route_socket pig=22329 comm=syz-executor6 netlink: 6 bytes leftover after parsing attributes in process `syz-executor7'. IPVS: Creating netns size=2536 id=34 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=22368 comm=syz-executor7 device lo entered promiscuous mode device lo left promiscuous mode device lo entered promiscuous mode device lo left promiscuous mode keychord: invalid keycode count 0 keychord: invalid keycode count 0 pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads device lo left promiscuous mode device lo entered promiscuous mode netlink: 17 bytes leftover after parsing attributes in process `syz-executor7'. binder: 22510:22511 ioctl 40046205 0 returned -22 binder: 22510:22511 ERROR: BC_REGISTER_LOOPER called without request device lo left promiscuous mode binder: 22510:22511 unknown command 1400526783 binder: 22510:22511 ioctl c0306201 20002fd0 returned -22 binder: 22510:22511 ioctl c018620b 20000fe8 returned -14 binder: 22510:22511 BC_FREE_BUFFER uffffffffffffffff no match netlink: 17 bytes leftover after parsing attributes in process `syz-executor7'. binder: 22510:22511 BC_CLEAR_DEATH_NOTIFICATION death notification not active binder: 22510:22511 BC_REQUEST_DEATH_NOTIFICATION invalid ref 3 binder: 22510:22511 got reply transaction with no transaction stack binder: undelivered TRANSACTION_COMPLETE binder: undelivered transaction 276, process died. binder: 22510:22525 BC_FREE_BUFFER u00000000ffffffff no match binder: 22510:22525 ioctl 40046205 6 returned -22 binder: 22510:22525 ioctl 40046205 0 returned -22 binder: BINDER_SET_CONTEXT_MGR already set binder: 22510:22544 ioctl 40046207 0 returned -16 binder: 22510:22525 ERROR: BC_REGISTER_LOOPER called without request binder_alloc: 22510: binder_alloc_buf, no vma binder: 22510:22544 transaction failed 29189/-3, size 0-0 line 3130 IPVS: Creating netns size=2536 id=35 binder: 22510:22550 unknown command 0 binder: 22510:22550 ioctl c0306201 20002fd0 returned -22 binder: 22510:22550 got reply transaction with no transaction stack binder: 22510:22550 transaction failed 29201/-71, size 24-8 line 2923 binder: 22510:22544 ioctl c018620b 20000fe8 returned -14 binder: 22510:22550 BC_FREE_BUFFER uffffffffffffffff no match binder: 22510:22550 IncRefs 0 refcount change on invalid ref 1 ret -22 binder: 22510:22550 got transaction to invalid handle binder: 22510:22550 transaction failed 29201/-22, size 72-8 line 3007 binder: 22510:22550 ioctl c0306201 20005fd0 returned -14 binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_ERROR: 29189 9pnet_virtio: no channels available for device ./file0 9pnet_virtio: no channels available for device ./file0 binder: 22510:22511 transaction failed 29201/-71, size 32-16 line 2923 binder: 22510:22511 ioctl c0306201 20005fd0 returned -14 binder: unexpected work type, 4, not freed binder: undelivered TRANSACTION_COMPLETE binder: unexpected work type, 4, not freed binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered transaction 280, process died. binder: undelivered TRANSACTION_ERROR: 29201