===================================== [ BUG: bad unlock balance detected! ] 4.9.68-gfb66dc2 #107 Not tainted ------------------------------------- syz-executor6/9762 is trying to release lock (mrt_lock[ 56.127110] devpts: called with bogus options ) at: but there are no more locks to release! other info that might help us debug this: 1 lock held by syz-executor6/9762: #0: (&p->lock){+.+.+.}, at: [] seq_read+0xdd/0x1290 fs/seq_file.c:178 stack backtrace: CPU: 0 PID: 9762 Comm: syz-executor6 Not tainted 4.9.68-gfb66dc2 #107 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801a4ed78e8 ffffffff81d90889 ffffffff849ae9f8 ffff8801a7334800 ffffffff834dfc54 ffffffff849ae9f8 ffff8801a7335088 ffff8801a4ed7918 ffffffff812353f4 dffffc0000000000 ffffffff849ae9f8 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 audit: type=1400 audit(1513169869.960:51): avc: denied { setopt } for pid=9791 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_generic_socket permissive=1 binder: 9824:9830 unknown command 0 binder: 9824:9830 ioctl c0306201 2000a000 returned -22 device gre0 entered promiscuous mode binder: 9824:9843 unknown command 0 binder: 9824:9843 ioctl c0306201 2000a000 returned -22 nla_parse: 8 callbacks suppressed netlink: 64 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 64 bytes leftover after parsing attributes in process `syz-executor1'. IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready qtaguid: iface_stat: create6(lo): no inet dev device lo left promiscuous mode binder_alloc: binder_alloc_mmap_handler: 9974 20000000-20002000 already mapped failed -16 device lo entered promiscuous mode qtaguid: iface_stat: create(lo): no inet dev qtaguid: iface_stat: create6(lo): no inet dev IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready qtaguid: iface_stat: create6(lo): no inet dev device lo left promiscuous mode audit: type=1400 audit(1513169871.640:52): avc: denied { set_context_mgr } for pid=10052 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=binder permissive=1 binder: 10052:10075 Acquire 1 refcount change on invalid ref 4 ret -22 binder: 10052:10075 unknown command 0 binder: 10052:10075 ioctl c0306201 2000a000 returned -22 audit: type=1400 audit(1513169871.690:53): avc: denied { call } for pid=10052 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=binder permissive=1 binder: 10052:10075 got transaction with invalid handle, 0 binder: 10052:10075 transaction failed 29201/-22, size 24-8 line 3222 binder: BINDER_SET_CONTEXT_MGR already set binder: 10052:10075 ioctl 40046207 0 returned -16 binder: 10080:10094 ioctl 8924 20002000 returned -22 binder: 10052:10058 Acquire 1 refcount change on invalid ref 4 ret -22 binder: 10052:10058 unknown command 0 binder: 10052:10058 ioctl c0306201 2000a000 returned -22 binder_alloc: 10052: binder_alloc_buf, no vma binder: 10052:10075 transaction failed 29189/-3, size 24-8 line 3130 device gre0 entered promiscuous mode audit: type=1400 audit(1513169872.280:54): avc: denied { bind } for pid=10166 comm="syz-executor1" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 binder: 10221:10222 ioctl 40046205 0 returned -22 binder: 10221:10222 ERROR: BC_REGISTER_LOOPER called without request binder: 10221:10222 unknown command 1400526783 binder: 10221:10222 ioctl c0306201 20002fd0 returned -22 audit: type=1400 audit(1513169872.400:55): avc: denied { transfer } for pid=10221 comm="syz-executor5" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=binder permissive=1 binder: 10221:10222 ioctl c018620b 20000fe8 returned -14 binder: 10221:10222 ioctl c0306201 20005fd0 returned -14 binder: 10221:10222 ioctl c018620b 20000000 returned -14 binder: undelivered TRANSACTION_COMPLETE netlink: 44 bytes leftover after parsing attributes in process `syz-executor3'. netlink: 44 bytes leftover after parsing attributes in process `syz-executor3'. binder: 10221:10222 ioctl 40046205 6 returned -22 binder: 10221:10222 ioctl 40046205 0 returned -22 binder: undelivered TRANSACTION_COMPLETE binder: 10221:10222 ERROR: BC_REGISTER_LOOPER called without request binder_alloc: 10221: binder_alloc_buf, no vma binder: 10221:10230 transaction failed 29189/-3, size 0-0 line 3130 binder: 10252:10253 ioctl 85 20416000 returned -22 binder: 10252:10253 IncRefs 0 refcount change on invalid ref 2 ret -22 binder: 10252:10253 Acquire 1 refcount change on invalid ref 4 ret -22 binder: 10252:10253 unknown command 0 binder: 10252:10253 ioctl c0306201 20000fd0 returned -22 binder: 10252:10257 ioctl 85 20416000 returned -22 binder: 10221:10256 unknown command 1400526783 binder: 10221:10256 ioctl c0306201 20002fd0 returned -22 binder: 10221:10256 got reply transaction with no transaction stack binder: 10221:10256 transaction failed 29201/-71, size 24-8 line 2923 binder: 10221:10230 ioctl c018620b 20000fe8 returned -14 binder: BINDER_SET_CONTEXT_MGR already set binder: 10252:10253 ioctl 40046207 0 returned -16 binder: undelivered transaction 114, process died. binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. binder_alloc: binder_alloc_mmap_handler: 10281 20000000-20002000 already mapped failed -16 netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. binder: BINDER_SET_CONTEXT_MGR already set binder: 10281:10296 ioctl 40046207 0 returned -16 binder_alloc: binder_alloc_mmap_handler: 10334 20000000-20002000 already mapped failed -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 10334:10347 ioctl 40046207 0 returned -16 binder: 10566:10568 BC_DEAD_BINDER_DONE 0000000000000000 not found device gre0 entered promiscuous mode device gre0 entered promiscuous mode SELinux: unrecognized netlink message: protocol=6 nlmsg_type=3131 sclass=netlink_xfrm_socket pig=10637 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=3131 sclass=netlink_xfrm_socket pig=10637 comm=syz-executor5 netlink: 5 bytes leftover after parsing attributes in process `syz-executor6'. FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 10736 Comm: syz-executor0 Not tainted 4.9.68-gfb66dc2 #107 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d907f940 ffffffff81d90889 ffff8801d907fc20 0000000000000000 ffff8801ab78fd90 ffff8801d907fb10 ffff8801ab78fc80 ffff8801d907fb38 ffffffff8165e497 1ffff1003b20ff2f ffff8801d907fa90 00000001a5993067 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 netlink: 5 bytes leftover after parsing attributes in process `syz-executor6'. FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 1 PID: 10736 Comm: syz-executor0 Not tainted 4.9.68-gfb66dc2 #107 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d907f940 ffffffff81d90889 ffff8801d907fc20 0000000000000000 ffff8801ab78ee90 ffff8801d907fb10 ffff8801ab78ed80 ffff8801d907fb38 ffffffff8165e497 1ffff1003b20ff2f ffff8801d907fa90 00000001c67e2067 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 netlink: 3 bytes leftover after parsing attributes in process `syz-executor7'. binder: 10801:10804 ioctl c0306201 2000a000 returned -14 binder: 10801:10804 got reply transaction with bad transaction stack, transaction 125 has target 10801:0 binder: 10801:10804 transaction failed 29201/-71, size 32-8 line 2938 binder: 10801:10804 ioctl 8904 20004ffc returned -22 binder: 10801:10804 IncRefs 0 refcount change on invalid ref 1 ret -22 binder: 10801:10804 got reply transaction with no transaction stack binder: 10801:10804 transaction failed 29201/-71, size 0-40 line 2923 netlink: 3 bytes leftover after parsing attributes in process `syz-executor7'. binder: BINDER_SET_CONTEXT_MGR already set binder: 10801:10816 ioctl 40046207 0 returned -16 binder: 10801:10816 ioctl c0306201 2000a000 returned -14 binder_alloc: 10801: binder_alloc_buf, no vma binder: 10801:10804 transaction failed 29189/-3, size 0-0 line 3130 binder: 10801:10830 got reply transaction with no transaction stack binder: 10801:10830 transaction failed 29201/-71, size 32-8 line 2923 binder: 10801:10816 ioctl 8904 20004ffc returned -22 binder: 10801:10816 unknown command 0 binder: 10801:10816 ioctl c0306201 2000ffd0 returned -22 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_ERROR: 29201 binder: send failed reply for transaction 125 to 10801:10804 binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29201 binder: undelivered TRANSACTION_ERROR: 29189 keychord: unsupported version 0 keychord: unsupported version 0 binder: BINDER_SET_CONTEXT_MGR already set binder: 10818:10822 ioctl 40046207 0 returned -16 device gre0 entered promiscuous mode 9pnet_virtio: no channels available for device ./file0 9pnet_virtio: no channels available for device ./file0 device gre0 entered promiscuous mode binder: BINDER_SET_CONTEXT_MGR already set binder: 10884:10950 ioctl 40046207 0 returned -16 device gre0 entered promiscuous mode loop: Write error at byte offset 0, length 512. blk_update_request: I/O error, dev loop4, sector 0 keychord: Insufficient bytes present for keycount 18 Tx-ring is not supported. keychord: Insufficient bytes present for keycount 18 Tx-ring is not supported. binder: 11736:11737 ioctl c0306201 2000a000 returned -14 binder: 11736:11737 got reply transaction with no transaction stack binder: 11736:11737 transaction failed 29201/-71, size 32-8 line 2923 binder: 11736:11737 ioctl 8904 20004ffc returned -22 binder: 11736:11737 ioctl c0306201 2000ffd0 returned -11 binder: BINDER_SET_CONTEXT_MGR already set binder: 11736:11752 ioctl 40046207 0 returned -16 binder: 11736:11752 ioctl c0306201 2000a000 returned -14 binder_alloc: 11736: binder_alloc_buf, no vma binder: 11736:11737 transaction failed 29189/-3, size 0-0 line 3130 binder: 11736:11759 got reply transaction with no transaction stack binder: 11736:11759 transaction failed 29201/-71, size 32-8 line 2923 binder: 11736:11758 ioctl 8904 20004ffc returned -22 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 binder: release 11736:11737 transaction 133 out, still active binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 133, target dead binder: undelivered TRANSACTION_ERROR: 29201