===================================== [ BUG: bad unlock balance detected! ] 4.9.67-gf26d3c7 #106 Not tainted ------------------------------------- syz-executor6/17682 is trying to release lock ([ 106.859618] binder: 17698:17700 ioctl 40046205 0 returned -22 binder: 17698:17700 ERROR: BC_REGISTER_LOOPER called without request mrt_lock) at: but there are no more locks to release! other info that might help us debug this: binder: 17698:17700 unknown command 1400526783 binder: 17698:17700 ioctl c0306201 20002fd0 returned -22 binder: 17698:17700 got transaction with invalid offset (1, min 0 max 24) or object. binder: 17698:17700 transaction failed 29201/-22, size 24-8 line 3193 binder: send failed reply for transaction 245 to 17698:17709 binder: 17698:17700 ioctl c0306201 20005fd0 returned -14 binder: undelivered TRANSACTION_ERROR: 29190 binder: 17698:17700 BC_FREE_BUFFER u0000000000000000 no match binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29201 2 locks held by syz-executor6/17682: #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: 17682 Comm: syz-executor6 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801a66678e8 ffffffff81d906e9 ffffffff849ae8f8 ffff8801a39f8000 ffffffff834dec54 ffffffff849ae8f8 ffff8801a39f8888 ffff8801a6667918 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: 17698:17700 ioctl 40046205 6 returned -22 binder: 17698:17709 ioctl 40046205 0 returned -22 binder: 17698:17709 ERROR: BC_REGISTER_LOOPER called without request binder: 17698:17709 ioctl c0306201 20008fd0 returned -11 binder: 17698:17700 unknown command 1400526783 binder: 17698:17700 ioctl c0306201 20002fd0 returned -22 binder: 17698:17700 got reply transaction with bad transaction stack, transaction 248 has target 17698:0 binder: 17698:17700 transaction failed 29201/-71, size 24-8 line 2938 binder: 17698:17700 BC_FREE_BUFFER u0000000000000000 no match binder: 17698:17700 IncRefs 0 refcount change on invalid ref 1 ret -22 binder: 17698:17700 got transaction to invalid handle binder: 17698:17700 transaction failed 29201/-22, size 72-8 line 3007 binder: 17698:17700 ioctl c0306201 20005fd0 returned -14 binder: release 17698:17700 transaction 248 out, still active binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29201 binder: 17698:17700 BC_FREE_BUFFER u0000000000000000 no match binder: undelivered TRANSACTION_ERROR: 29201 binder: send failed reply for transaction 248, target dead nla_parse: 15 callbacks suppressed netlink: 5 bytes leftover after parsing attributes in process `syz-executor3'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor3'. binder: BINDER_SET_CONTEXT_MGR already set binder: 17834:17841 BC_CLEAR_DEATH_NOTIFICATION invalid ref 0 binder: 17834:17836 ioctl 40046207 0 returned -16 netlink: 5 bytes leftover after parsing attributes in process `syz-executor3'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor3'. binder: undelivered death notification, 0000000000000000 netlink: 14 bytes leftover after parsing attributes in process `syz-executor3'. device gre0 entered promiscuous mode netlink: 14 bytes leftover after parsing attributes in process `syz-executor3'. binder: 17994:17995 got transaction with invalid offset (56, min 72 max 72) or object. binder: 17994:17995 transaction failed 29201/-22, size 72-32 line 3193 binder_alloc: binder_alloc_mmap_handler: 17994 20000000-20002000 already mapped failed -16 device lo entered promiscuous mode binder: BINDER_SET_CONTEXT_MGR already set binder: 17994:17995 ioctl 40046207 0 returned -16 binder_alloc: 17994: binder_alloc_buf, no vma binder: 17994:18001 transaction failed 29189/-3, size 72-32 line 3130 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 17998 Comm: syz-executor3 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801a673f670 ffffffff81d906e9 ffff8801a673f950 0000000000000000 ffff8801c740dc10 ffff8801a673f840 ffff8801c740db00 ffff8801a673f868 ffffffff8165e307 ffff8801db2214a0 ffff8801a673f7c0 00000001ccc00067 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 [] do_pselect fs/select.c:688 [inline] [] SYSC_pselect6 fs/select.c:729 [inline] [] SyS_pselect6+0x2ae/0x550 fs/select.c:714 [] entry_SYSCALL_64_fastpath+0x23/0xc6 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 17991 Comm: syz-executor3 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c9c67850 ffffffff81d906e9 ffff8801c9c67b30 0000000000000000 ffff8801c740dc10 ffff8801c9c67a20 ffff8801c740db00 ffff8801c9c67a48 ffffffff8165e307 ffffffff838a9178 ffff8801c9c679a0 00000001ccc00067 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 [] entry_SYSCALL_64_fastpath+0x23/0xc6 keychord: invalid keycode count 0 keychord: invalid keycode count 0 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 18013 Comm: syz-executor3 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c93ef670 ffffffff81d906e9 ffff8801c93ef950 0000000000000000 ffff8801c740c410 ffff8801c93ef840 ffff8801c740c300 ffff8801c93ef868 ffffffff8165e307 ffff8801db2214a0 ffff8801c93ef7c0 00000001ccc00067 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 [] do_pselect fs/select.c:688 [inline] [] SYSC_pselect6 fs/select.c:729 [inline] [] SyS_pselect6+0x2ae/0x550 fs/select.c:714 [] entry_SYSCALL_64_fastpath+0x23/0xc6 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 17991 Comm: syz-executor3 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c9c67850 ffffffff81d906e9 ffff8801c9c67b30 0000000000000000 ffff8801c740c410 ffff8801c9c67a20 ffff8801c740c300 ffff8801c9c67a48 ffffffff8165e307 ffff8801c9c678b8 ffff8801c9c679a0 00000001ccc00067 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 [] entry_SYSCALL_64_fastpath+0x23/0xc6 device syz7 entered promiscuous mode netlink: 11 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 11 bytes leftover after parsing attributes in process `syz-executor2'. 9pnet_virtio: no channels available for device H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H¨H