binder_alloc: binder_alloc_mmap_handler: 12918 20000000-20002000 already mapped failed -16 ===================================== [ BUG: bad unlock balance detected! ] 4.9.67-gf26d3c7 #106 Not tainted ------------------------------------- syz-executor5/12951 is trying to release lock ([ 237.897173] binder_alloc: 12918: binder_alloc_buf, no vma binder: 12918:12940 transaction failed 29189/-3, size 80-16 line 3130 binder: 12918:12919 BC_DEAD_BINDER_DONE 0000000000000000 not found binder: 12918:12919 BC_FREE_BUFFER u0000000000000000 no match binder: 12918:12919 got transaction to invalid handle binder: 12918:12919 transaction failed 29201/-22, size 0-32 line 3007 mrt_lock) at: but there are no more locks to release! other info that might help us debug this: 1 lock held by syz-executor5/12951: #0: (&p->lock){+.+.+.}, at: [] seq_read+0xdd/0x1290 fs/seq_file.c:178 stack backtrace: CPU: 0 PID: 12951 Comm: syz-executor5 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d1e078e8 ffffffff81d906e9 ffffffff849ae8f8 ffff8801cb1c8000 ffffffff834dec54 ffffffff849ae8f8 ffff8801cb1c8888 ffff8801d1e07918 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: release 12918:12919 transaction 597 out, still active binder: unexpected work type, 4, not freed binder: unexpected work type, 4, not freed binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 597, target dead netlink: 21 bytes leftover after parsing attributes in process `syz-executor7'. netlink: 21 bytes leftover after parsing attributes in process `syz-executor7'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor7'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor7'. syz-executor6: vmalloc: allocation failure: 17179082768 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 1 PID: 13114 Comm: syz-executor6 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801a8647880 ffffffff81d906e9 1ffff100350c8f13 ffff8801ceb7b000 ffffffff83ab7dc0 0000000000000001 0000000000400000 ffff8801a8647990 ffffffff8144ea02 024000c2d006d684 0000000041b58ab3 ffffffff841913b5 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] warn_alloc+0x212/0x240 mm/page_alloc.c:3063 [] __vmalloc_node_range+0x3f5/0x5f0 mm/vmalloc.c:1722 [] __vmalloc_node mm/vmalloc.c:1744 [inline] [] __vmalloc_node_flags mm/vmalloc.c:1758 [inline] [] vmalloc+0x5b/0x70 mm/vmalloc.c:1773 [] xt_alloc_entry_offsets+0x41/0x60 net/netfilter/x_tables.c:722 [] translate_table+0x2da/0x1cd0 net/ipv4/netfilter/arp_tables.c:549 [] do_replace net/ipv4/netfilter/arp_tables.c:986 [inline] [] do_arpt_set_ctl+0x2b7/0x650 net/ipv4/netfilter/arp_tables.c:1465 [] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:114 [] ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1248 [] tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2736 [] sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2706 [] SYSC_setsockopt net/socket.c:1771 [inline] [] SyS_setsockopt+0x160/0x250 net/socket.c:1750 [] entry_SYSCALL_64_fastpath+0x23/0xc6 Mem-Info: active_anon:94087 inactive_anon:40 isolated_anon:0 active_file:4400 inactive_file:7282 isolated_file:0 unevictable:0 dirty:137 writeback:0 unstable:0 slab_reclaimable:7969 slab_unreclaimable:55183 mapped:22918 shmem:108 pagetables:677 bounce:0 free:1439257 free_pcp:426 free_cma:0 Node 0 active_anon:376348kB inactive_anon:160kB active_file:17600kB inactive_file:29128kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:91672kB dirty:548kB writeback:0kB shmem:432kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 30720kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no DMA free:15908kB min:160kB low:200kB high:240kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB DMA32 free:2981148kB min:30600kB low:38248kB high:45896kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129332kB managed:2981844kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:696kB local_pcp:648kB free_cma:0kB Normal free:2759972kB min:36816kB low:46020kB high:55224kB active_anon:376348kB inactive_anon:160kB active_file:17600kB inactive_file:29128kB unevictable:0kB writepending:548kB present:4718592kB managed:3585220kB mlocked:0kB slab_reclaimable:31876kB slab_unreclaimable:220732kB kernel_stack:6016kB pagetables:2708kB bounce:0kB free_pcp:1008kB local_pcp:572kB free_cma:0kB DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 11789 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 1965979 pages RAM 0 pages HighMem/MovableOnly 320236 pages reserved syz-executor6: vmalloc: allocation failure: 17179082768 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 1 PID: 13118 Comm: syz-executor6 Not tainted 4.9.67-gf26d3c7 #106 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cc9df880 ffffffff81d906e9 1ffff1003993bf13 ffff8801a4156000 ffffffff83ab7dc0 0000000000000001 0000000000400000 ffff8801cc9df990 ffffffff8144ea02 024000c299cb78bc 0000000041b58ab3 ffffffff841913b5 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] warn_alloc+0x212/0x240 mm/page_alloc.c:3063 [] __vmalloc_node_range+0x3f5/0x5f0 mm/vmalloc.c:1722 [] __vmalloc_node mm/vmalloc.c:1744 [inline] [] __vmalloc_node_flags mm/vmalloc.c:1758 [inline] [] vmalloc+0x5b/0x70 mm/vmalloc.c:1773 [] xt_alloc_entry_offsets+0x41/0x60 net/netfilter/x_tables.c:722 [] translate_table+0x2da/0x1cd0 net/ipv4/netfilter/arp_tables.c:549 [] do_replace net/ipv4/netfilter/arp_tables.c:986 [inline] [] do_arpt_set_ctl+0x2b7/0x650 net/ipv4/netfilter/arp_tables.c:1465 [] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:114 [] ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1248 [] tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2736 [] sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2706 [] SYSC_setsockopt net/socket.c:1771 [inline] [] SyS_setsockopt+0x160/0x250 net/socket.c:1750 [] entry_SYSCALL_64_fastpath+0x23/0xc6 Mem-Info: active_anon:96123 inactive_anon:40 isolated_anon:0 active_file:4400 inactive_file:7282 isolated_file:0 unevictable:0 dirty:137 writeback:0 unstable:0 slab_reclaimable:7975 slab_unreclaimable:55245 mapped:22918 shmem:108 pagetables:684 bounce:0 free:1437220 free_pcp:392 free_cma:0 Node 0 active_anon:384492kB inactive_anon:160kB active_file:17600kB inactive_file:29128kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:91672kB dirty:548kB writeback:0kB shmem:432kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 43008kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no DMA free:15908kB min:160kB low:200kB high:240kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB DMA32 free:2981148kB min:30600kB low:38248kB high:45896kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129332kB managed:2981844kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:696kB local_pcp:648kB free_cma:0kB Normal free:2751824kB min:36816kB low:46020kB high:55224kB active_anon:384492kB inactive_anon:160kB active_file:17600kB inactive_file:29128kB unevictable:0kB writepending:548kB present:4718592kB managed:3585220kB mlocked:0kB slab_reclaimable:31900kB slab_unreclaimable:220980kB kernel_stack:5920kB pagetables:2736kB bounce:0kB free_pcp:872kB local_pcp:440kB free_cma:0kB DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 11789 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 1965979 pages RAM 0 pages HighMem/MovableOnly 320236 pages reserved binder: 13155:13159 got transaction with invalid parent offset or type binder: 13155:13159 transaction failed 29201/-22, size 80-16 line 3315 binder_alloc: binder_alloc_mmap_handler: 13155 20000000-20002000 already mapped failed -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 13155:13159 ioctl 40046207 0 returned -16 binder_alloc: 13155: binder_alloc_buf, no vma binder: 13155:13174 transaction failed 29189/-3, size 80-16 line 3130 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29201 device gre0 entered promiscuous mode binder: 13216:13217 got transaction with invalid parent offset or type binder: 13216:13217 transaction failed 29201/-22, size 72-32 line 3315 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 13217 at net/core/dev.c:2465 skb_warn_bad_offload+0x2af/0x390 net/core/dev.c:2460 tunl0: caps=(0x00000000803b7869, 0x0000000000000000) len=373 data_len=0 gso_size=55468 gso_type=4 ip_summed=0