===================================== [ BUG: bad unlock balance detected! ] 4.9.80-g550c01d #29 Not tainted ------------------------------------- syz-executor5/10863 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-executor5/10863: #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: 1 PID: 10863 Comm: syz-executor5 Not tainted 4.9.80-g550c01d #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cea678e8 ffffffff81d94b69 ffffffff849b6cf8 ffff8801ccafe000 ffffffff834e8ee4 ffffffff849b6cf8 ffff8801ccafe888 ffff8801cea67918 ffffffff81237e04 dffffc0000000000 ffffffff849b6cf8 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+0x29/0xe8 audit: type=1400 audit(1517996550.039:50): avc: denied { setpcap } for pid=10943 comm="syz-executor6" capability=8 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 binder: BINDER_SET_CONTEXT_MGR already set binder: 10929:10941 ioctl 40046207 0 returned -16 audit: type=1400 audit(1517996550.099:51): avc: denied { create } for pid=10962 comm="syz-executor3" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_fib_lookup_socket permissive=1 binder: release 10929:10932 transaction 51 in, still active binder: send failed reply for transaction 51 to 10944:10947 binder: send failed reply for transaction 52 to 10944:10947 device gre0 entered promiscuous mode FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 1 PID: 10968 Comm: syz-executor0 Not tainted 4.9.80-g550c01d #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cc9075d0 ffffffff81d94b69 ffff8801cc9078b0 0000000000000000 ffff8801cde5b610 ffff8801cc9077a0 ffff8801cde5b500 ffff8801cc9077c8 ffffffff816624ba 0000000000000000 ffff8801cc907720 00000001cdb7a067 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:1407 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1470 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1055 [] vfs_ioctl fs/ioctl.c:43 [inline] [] do_vfs_ioctl+0x1aa/0x1140 fs/ioctl.c:679 [] SYSC_ioctl fs/ioctl.c:694 [inline] [] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:685 [] entry_SYSCALL_64_fastpath+0x29/0xe8 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 10968 Comm: syz-executor0 Not tainted 4.9.80-g550c01d #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cc9075d0 ffffffff81d94b69 ffff8801cc9078b0 0000000000000000 ffff8801d928f790 ffff8801cc9077a0 ffff8801d928f680 ffff8801cc9077c8 ffffffff816624ba 0000000041b58ab3 ffff8801cc907720 00000001d4e63067 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:1407 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1470 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1055 [] vfs_ioctl fs/ioctl.c:43 [inline] [] do_vfs_ioctl+0x1aa/0x1140 fs/ioctl.c:679 [] SYSC_ioctl fs/ioctl.c:694 [inline] [] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:685 [] entry_SYSCALL_64_fastpath+0x29/0xe8 audit: type=1400 audit(1517996550.219:52): avc: denied { getopt } for pid=10962 comm="syz-executor3" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_fib_lookup_socket permissive=1 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 binder: BINDER_SET_CONTEXT_MGR already set binder: 11027:11029 ioctl 40046207 0 returned -16 SELinux: policydb version 1562669667 does not match my version range 15-30 SELinux: policydb version 1562669667 does not match my version range 15-30 keychord: unsupported version 0 audit: type=1400 audit(1517996551.409:53): avc: denied { setattr } for pid=11271 comm="syz-executor0" name="setgroups" dev="proc" ino=24623 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=file permissive=1 binder: 11277:11282 BC_FREE_BUFFER u0000000020000000 matched unreturned buffer binder: BINDER_SET_CONTEXT_MGR already set binder: 11277:11282 ioctl 40046207 0 returned -16 binder_alloc: 11277: binder_alloc_buf, no vma binder: 11277:11282 transaction failed 29189/-3, size 0-0 line 3127 binder: 11277:11283 BC_FREE_BUFFER u0000000020000000 no match binder: undelivered TRANSACTION_ERROR: 29189 binder: release 11277:11282 transaction 57 out, still active binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 57, target dead IPv6: Can't replace route, no match found IPv6: Can't replace route, no match found audit: type=1400 audit(1517996551.969:54): avc: denied { read } for pid=11376 comm="syz-executor6" path="socket:[24678]" dev="sockfs" ino=24678 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: 11471:11476 not enough space to store 0 fds in buffer binder: 11471:11476 transaction failed 29201/-22, size 72-16 line 3269 binder_alloc: binder_alloc_mmap_handler: 11471 20000000-20002000 already mapped failed -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 11471:11476 ioctl 40046207 0 returned -16 binder_alloc: 11471: binder_alloc_buf, no vma binder: 11471:11485 transaction failed 29189/-3, size 72-16 line 3127 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 binder: 11599:11620 ioctl c0306201 20003fd0 returned -14 binder: 11599:11629 tried to acquire reference to desc 0, got 1 instead binder: 11599:11629 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 11599:11629 ioctl c0306201 20003fd0 returned -14 audit: type=1400 audit(1517996553.209:55): avc: denied { setuid } for pid=11670 comm="syz-executor5" capability=7 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 IPVS: Creating netns size=2536 id=14 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 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=1057 sclass=netlink_route_socket pig=11722 comm=syz-executor4 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=1057 sclass=netlink_route_socket pig=11740 comm=syz-executor4 binder: 11758:11759 BC_CLEAR_DEATH_NOTIFICATION invalid ref 0 binder: 11758:11759 got transaction to invalid handle binder: 11758:11759 transaction failed 29201/-22, size 0-0 line 3004 binder: undelivered TRANSACTION_ERROR: 29201 device gre0 entered promiscuous mode device gre0 entered promiscuous mode ALSA: seq fatal error: cannot create timer (-16) tty_warn_deprecated_flags: 'syz-executor6' is using deprecated serial flags (with no effect): 00008700 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=55600 sclass=netlink_xfrm_socket pig=12081 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=55600 sclass=netlink_xfrm_socket pig=12083 comm=syz-executor0 tty_warn_deprecated_flags: 'syz-executor6' is using deprecated serial flags (with no effect): 00008700 device gre0 entered promiscuous mode binder: 12274:12277 BC_FREE_BUFFER u0000000000000000 no match FAULT_FLAG_ALLOW_RETRY missing 30 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 12422 Comm: syz-executor0 Not tainted 4.9.80-g550c01d #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cc21f8e0 ffffffff81d94b69 ffff8801cc21fbc0 0000000000000000 ffff8801cb76ee90 ffff8801cc21fab0 ffff8801cb76ed80 ffff8801cc21fad8 ffffffff816624ba ffff8801db222468 ffff8801cc21fa30 00000001cd82d067 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:1407 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1470 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1055 [] SyS_rt_tgsigqueueinfo+0x2c/0x40 kernel/signal.c:3010 [] entry_SYSCALL_64_fastpath+0x29/0xe8 CPU: 1 PID: 12431 Comm: syz-executor0 Not tainted 4.9.80-g550c01d #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d530f840 ffffffff81d94b69 ffff8801d530fb20 0000000000000000 ffff8801cb76ee90 ffff8801d530fa10 ffff8801cb76ed80 ffff8801d530fa38 ffffffff816624ba 0000000000000000 ffff8801d530f990 00000001cd82d067 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:1407 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1470 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1055 [] getname_flags+0x10e/0x580 fs/namei.c:148 [] getname+0x19/0x20 fs/namei.c:208 [] do_sys_open+0x22d/0x620 fs/open.c:1066 [] SYSC_openat fs/open.c:1099 [inline] [] SyS_openat+0x30/0x40 fs/open.c:1093 [] entry_SYSCALL_64_fastpath+0x29/0xe8 binder: 12441:12449 BC_CLEAR_DEATH_NOTIFICATION invalid ref 0 binder: 12441:12449 got transaction to invalid handle IPVS: Creating netns size=2536 id=15 binder: 12441:12449 transaction failed 29201/-22, size 0-0 line 3004 binder: 12454:12473 BC_DEAD_BINDER_DONE 0000000000000003 not found binder: undelivered TRANSACTION_ERROR: 29201 binder: 12454:12486 tried to acquire reference to desc 0, got 1 instead pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) IPVS: Creating netns size=2536 id=16 binder: 12454:12486 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 12454:12473 BC_CLEAR_DEATH_NOTIFICATION invalid ref 0 binder: 12454:12486 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0 binder: 12454:12473 BC_DEAD_BINDER_DONE 0000000000000003 not found binder: undelivered death notification, 0000000000000000 l2tp_core: tunl 4: fd 19 wrong protocol, got 1, expected 17 l2tp_core: tunl 4: fd 19 wrong protocol, got 1, expected 17 binder: 12593:12602 ioctl c018620b 20e8cbdc returned -14 binder: 12593:12610 ioctl c018620b 20e8cbdc returned -14 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 12745 Comm: syz-executor2 Not tainted 4.9.80-g550c01d #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d6827960 ffffffff81d94b69 ffff8801d6827c40 0000000000000000 ffff8801cb76e410 ffff8801d6827b30 ffff8801cb76e300 ffff8801d6827b58 ffffffff816624ba ffff8801d6827980 ffff8801d6827ab0 00000001b8cbe067 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:1407 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1470 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1055 [] entry_SYSCALL_64_fastpath+0x29/0xe8 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 12745 Comm: syz-executor2 Not tainted 4.9.80-g550c01d #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d6827960 ffffffff81d94b69 ffff8801d6827c40 0000000000000000 ffff8801d6ed0290 ffff8801d6827b30 ffff8801d6ed0180 ffff8801d6827b58 ffffffff816624ba dffffc0000000000 ffff8801d6827ab0 00000001b747f067 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:1407 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1470 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1055 [] entry_SYSCALL_64_fastpath+0x29/0xe8 device gre0 entered promiscuous mode IPVS: length: 24 != 3145848