===================================== [ BUG: bad unlock balance detected! ] 4.9.76-g9154940 #10 Not tainted ------------------------------------- syz-executor4/14256 is trying to release lock (mrt_lock) at: [] ipmr_mfc_seq_stop+0xe4/0x140 net/ipv6/ip6mr.c:553 but there are no more locks to release! other info that might help us debug this: 2 locks held by syz-executor4/14256: #0: (sb_writers#7){.+.+.+}, at: [] file_start_write include/linux/fs.h:2619 [inline] #0: (sb_writers#7){.+.+.+}, at: [] do_sendfile+0x9ff/0xd30 fs/read_write.c:1400 #1: (&p->lock){+.+.+.}, at: [] seq_read+0xdd/0x1290 fs/seq_file.c:178 stack backtrace: CPU: 1 PID: 14256 Comm: syz-executor4 Not tainted 4.9.76-g9154940 #10 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c62271c0 ffffffff81d93149 ffffffff849b67b8 ffff8801b3a69800 ffffffff834e6574 ffffffff849b67b8 ffff8801b3a6a088 ffff8801c62271f0 ffffffff81236cd4 dffffc0000000000 ffffffff849b67b8 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 [] traverse+0x3a7/0x900 fs/seq_file.c:148 [] seq_read+0x7ea/0x1290 fs/seq_file.c:195 [] 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 [] kernel_readv fs/splice.c:363 [inline] [] default_file_splice_read+0x43f/0x7a0 fs/splice.c:435 [] do_splice_to+0x10a/0x160 fs/splice.c:899 [] splice_direct_to_actor+0x24d/0x800 fs/splice.c:971 [] do_splice_direct+0x1a7/0x270 fs/splice.c:1080 [] do_sendfile+0x54b/0xd30 fs/read_write.c:1401 [] SYSC_sendfile64 fs/read_write.c:1456 [inline] [] SyS_sendfile64+0xd1/0x160 fs/read_write.c:1448 [] entry_SYSCALL_64_fastpath+0x23/0xe2 device syz5 entered promiscuous mode TCP: request_sock_TCPv6: Possible SYN flooding on port 20014. Sending cookies. Check SNMP counters. device syz5 entered promiscuous mode binder: 14739:14740 unknown command 0 binder: 14739:14740 ioctl c0306201 2000a000 returned -22 binder_alloc: binder_alloc_mmap_handler: 14739 20000000-20002000 already mapped failed -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 14739:14740 ioctl 40046207 0 returned -16 binder: 14739:14766 unknown command 0 binder: 14739:14766 ioctl c0306201 2000a000 returned -22 binder: release 14739:14766 transaction 145 out, still active binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 145, target dead binder: 14862:14867 transaction failed 29201/-28, size 189464580-0 line 3127 binder: BINDER_SET_CONTEXT_MGR already set binder: 14862:14867 ioctl 40046207 0 returned -16 binder_alloc: 14862: binder_alloc_buf, no vma binder: 14862:14880 transaction failed 29189/-3, size 189464580-0 line 3127 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 netlink: 40 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 40 bytes leftover after parsing attributes in process `syz-executor6'. FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 1 PID: 15012 Comm: syz-executor2 Not tainted 4.9.76-g9154940 #10 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c19ef3d0 ffffffff81d93149 ffff8801c19ef6b0 0000000000000000 ffff8801d16a1010 ffff8801c19ef5a0 ffff8801d16a0f00 ffff8801c19ef5c8 ffffffff81660c0a 0000000000000000 ffff8801c19ef520 00000001ca22d067 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa3a/0x1310 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:1038 [] SYSC_ppoll fs/select.c:1034 [inline] [] SyS_ppoll+0x1cf/0x400 fs/select.c:1005 [] entry_SYSCALL_64_fastpath+0x23/0xe2 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 15023 Comm: syz-executor2 Not tainted 4.9.76-g9154940 #10 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c4c5f3d0 ffffffff81d93149 ffff8801c4c5f6b0 0000000000000000 ffff8801d16a1190 ffff8801c4c5f5a0 ffff8801d16a1080 ffff8801c4c5f5c8 ffffffff81660c0a 0000000000000043 ffff8801c4c5f520 00000001d1f36067 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa3a/0x1310 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:1038 [] SYSC_ppoll fs/select.c:1034 [inline] [] SyS_ppoll+0x1cf/0x400 fs/select.c:1005 [] entry_SYSCALL_64_fastpath+0x23/0xe2 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 15055 Comm: syz-executor1 Not tainted 4.9.76-g9154940 #10 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c4d5f4e0 ffffffff81d93149 ffff8801c4d5f7c0 0000000000000000 ffff8801d54a8110 ffff8801c4d5f6b0 ffff8801d54a8000 ffff8801c4d5f6d8 ffffffff81660c0a ffff8801c4136000 ffff8801c4d5f630 00000001c555a067 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa3a/0x1310 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:1038 [] 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/0xe2 device lo entered promiscuous mode IPv6: NLM_F_CREATE should be specified when creating new route IPv6: Can't replace route, no match found IPv6: Can't replace route, no match found keychord: unsupported version 0 device syz7 entered promiscuous mode device lo entered promiscuous mode FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 1 PID: 15483 Comm: syz-executor7 Not tainted 4.9.76-g9154940 #10 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801b39e78c0 ffffffff81d93149 ffff8801b39e7ba0 0000000000000000 ffff8801d16a1610 ffff8801b39e7a90 ffff8801d16a1500 ffff8801b39e7ab8 ffffffff81660c0a ffffffff8389fa03 ffff8801b39e7a10 00000001d6f7f067 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa3a/0x1310 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:1038 [] entry_SYSCALL_64_fastpath+0x23/0xe2 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 15486 Comm: syz-executor7 Not tainted 4.9.76-g9154940 #10 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cc98f8c0 ffffffff81d93149 ffff8801cc98fba0 0000000000000000 ffff8801d54a9790 ffff8801cc98fa90 ffff8801d54a9680 ffff8801cc98fab8 ffffffff81660c0a 0000000000000000 ffff8801cc98fa10 00000001c34e5067 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa3a/0x1310 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:1038 [] entry_SYSCALL_64_fastpath+0x23/0xe2 device eql entered promiscuous mode Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 1 PID: 15709 Comm: syz-executor3 Not tainted 4.9.76-g9154940 #10 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d7f979c0 ffffffff81d93149 ffff8801d7f97ca0 0000000000000000 ffff8801d54a9010 ffff8801d7f97b90 ffff8801d54a8f00 ffff8801d7f97bb8 ffffffff81660c0a ffffffff858fe740 ffff8801d7f97b10 00000001c6088067 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa3a/0x1310 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:1038 [] SYSC_keyctl security/keys/keyctl.c:1604 [inline] [] SyS_keyctl+0x1fb/0x230 security/keys/keyctl.c:1592 [] entry_SYSCALL_64_fastpath+0x23/0xe2 device gre0 entered promiscuous mode netlink: 40 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 40 bytes leftover after parsing attributes in process `syz-executor1'. binder: BINDER_SET_CONTEXT_MGR already set binder: 15810:15812 ioctl 40046207 0 returned -16 binder: release 15810:15812 transaction 151 in, still active binder: send failed reply for transaction 151 to 15810:15829 binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29189 audit: type=1401 audit(1515705337.946:53): op=setxattr invalid_context="" audit: type=1400 audit(1515705337.946:54): avc: denied { execute } for pid=15846 comm="syz-executor6" dev="pipefs" ino=23763 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=fifo_file permissive=1 audit: type=1401 audit(1515705338.006:55): op=setxattr invalid_context="" audit: type=1400 audit(1515705338.256:56): avc: denied { dyntransition } for pid=15891 comm="syz-executor4" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0 tclass=process permissive=1 binder: 15946:15947 transaction failed 29189/-22, size 0-0 line 3004 binder: 15946:15947 ioctl c0306201 20000000 returned -14 binder_alloc: binder_alloc_mmap_handler: 15946 20000000-20002000 already mapped failed -16 IPVS: Creating netns size=2536 id=9 binder: 15946:15947 transaction failed 29189/-22, size 0-0 line 3004 binder: undelivered TRANSACTION_ERROR: 29189 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 IPVS: Creating netns size=2536 id=10 device syz1 entered promiscuous mode binder: BINDER_SET_CONTEXT_MGR already set binder: 16043:16044 ioctl 40046207 0 returned -16 binder_alloc: 16043: binder_alloc_buf, no vma binder: 16043:16044 transaction failed 29189/-3, size 0-0 line 3127 binder: BINDER_SET_CONTEXT_MGR already set binder: 16043:16044 ioctl 40046207 0 returned -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 16043:16050 ioctl 40046207 0 returned -16 binder_alloc: 16043: binder_alloc_buf, no vma binder: 16043:16050 transaction failed 29189/-3, size 0-0 line 3127 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189