binder: 4540:4543 ERROR: BC_REGISTER_LOOPER called without request ===================================== [ BUG: bad unlock balance detected! ] 4.9.67-gf26d3c7 #106 Not tainted ------------------------------------- binder_alloc: 4540: binder_alloc_buf, no vma binder: 4540:4551 transaction failed 29189/-3, size 0-0 line 3130 syz-executor7/4542 is trying to release lock (mrt_lock[ 39.520882] binder: 4540:4551 ioctl 8904 20004ffc returned -22 ) at: binder: 4540:4551 ioctl c0306201 2000ffd0 returned -14 but there are no more locks to release! other info that might help us debug this: 2 locks held by syz-executor7/4542: #0: (&f->f_pos_lock){+.+.+.}, at: [] __fdget_pos+0x9f/0xc0 fs/file.c:781 binder: 4540:4543 ERROR: BC_REGISTER_LOOPER called without request binder_alloc: 4540: binder_alloc_buf, no vma binder: 4540:4551 transaction failed 29189/-3, size 0-0 line 3130 binder: 4540:4543 ioctl 8904 20004ffc returned -22 binder: undelivered TRANSACTION_ERROR: 29189 #1: (&p->lock){+.+.+.}, at: [] seq_read+0xdd/0x1290 fs/seq_file.c:178 stack backtrace: CPU: 1 PID: 4542 Comm: syz-executor7 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801a549f8e8 ffffffff81d906e9 ffffffff849ae8f8 ffff8801a8514800 ffffffff834dec54 ffffffff849ae8f8 ffff8801a8515088 ffff8801a549f918 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 netlink: 16 bytes leftover after parsing attributes in process `syz-executor1'. device gre0 entered promiscuous mode netlink: 16 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 2 bytes leftover after parsing attributes in process `syz-executor0'. capability: warning: `syz-executor3' uses deprecated v2 capabilities in a way that may be insecure Option 'tgˆa9mļw& [% SM?4-' to dns_resolver key: bad/missing value netlink: 2 bytes leftover after parsing attributes in process `syz-executor0'. Option 'tgˆa9mļw& [% SM?4-' to dns_resolver key: bad/missing value netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. device lo entered promiscuous mode device lo left promiscuous mode device lo entered promiscuous mode device lo left promiscuous mode SELinux: unrecognized netlink message: protocol=4 nlmsg_type=65535 sclass=netlink_tcpdiag_socket pig=4973 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=4 nlmsg_type=65535 sclass=netlink_tcpdiag_socket pig=4973 comm=syz-executor0 device lo entered promiscuous mode keychord: invalid keycode count 0 device lo left promiscuous mode keychord: invalid keycode count 0 device lo entered promiscuous mode device lo left promiscuous mode binder: 5087:5099 ERROR: BC_REGISTER_LOOPER called without request device gre0 entered promiscuous mode binder: BINDER_SET_CONTEXT_MGR already set binder: 5087:5113 ioctl 40046207 0 returned -16 binder: 5087:5099 ioctl c0306201 20008fd0 returned -14 binder_alloc: 5087: binder_alloc_buf, no vma binder: 5087:5099 transaction failed 29189/-3, size 0-0 line 3130 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_COMPLETE device gre0 entered promiscuous mode IPv6: Can't replace route, no match found device gre0 left promiscuous mode device gre0 entered promiscuous mode IPv6: Can't replace route, no match found program syz-executor6 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-executor6 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 IPVS: length: 24 != 8 IPVS: length: 24 != 8 sg_write: data in/out 327644/32 bytes for SCSI command 0x4-- guessing data in; program syz-executor2 not setting count and/or reply_len properly keychord: keycode 25638 out of range keychord: keycode 25638 out of range FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 1 PID: 5512 Comm: syz-executor1 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d222f860 ffffffff81d906e9 ffff8801d222fb40 0000000000000000 ffff8801c8321a90 ffff8801d222fa30 ffff8801c8321980 ffff8801d222fa58 ffffffff8165e307 0000000000000000 ffff8801d222f9b0 00000001d6a85067 Call 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 [] SyS_rt_sigtimedwait+0x2d/0x40 kernel/signal.c:2819 [] entry_SYSCALL_64_fastpath+0x23/0xc6