lowmemorykiller: Killing 'syz-executor.5' (5057) (tgid 5057), adj 1000, to free 36008kB on behalf of 'syz-executor.0' (6152) because cache 61548kB is below limit 65536kB for oom_score_adj 12 Free memory is -13380kB above reserved ================================= [ INFO: inconsistent lock state ] 4.9.194+ #0 Not tainted --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. syz-executor.0/6152 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<00000000af15995c>] get_cmdline+0xa3/0x2d0 mm/util.c:641 mark_held_locks+0xb1/0x100 kernel/locking/lockdep.c:2660 __lockdep_trace_alloc kernel/locking/lockdep.c:2882 [inline] lockdep_trace_alloc+0x18c/0x2b0 kernel/locking/lockdep.c:2897 __alloc_pages_nodemask+0x143/0x1a80 mm/page_alloc.c:3803 __alloc_pages include/linux/gfp.h:433 [inline] __alloc_pages_node include/linux/gfp.h:446 [inline] alloc_pages_node include/linux/gfp.h:460 [inline] pmd_alloc_one arch/x86/include/asm/pgalloc.h:88 [inline] __pmd_alloc+0x4a/0x330 mm/memory.c:3742 pmd_alloc include/linux/mm.h:1625 [inline] alloc_new_pmd mm/mremap.c:64 [inline] move_page_tables+0xadb/0xd60 mm/mremap.c:212 shift_arg_pages+0x1ae/0x470 fs/exec.c:642 setup_arg_pages+0x60d/0x7c0 fs/exec.c:754 load_elf_binary+0xa84/0x4a90 fs/binfmt_elf.c:860 search_binary_handler fs/exec.c:1621 [inline] search_binary_handler+0x14f/0x700 fs/exec.c:1599 exec_binprm fs/exec.c:1663 [inline] do_execveat_common.isra.0+0xf81/0x1db0 fs/exec.c:1785 do_execve+0x3a/0x50 fs/exec.c:1829 run_init_process+0x33/0x37 init/main.c:904 try_to_run_init_process+0x18/0x48 init/main.c:913 kernel_init+0xf2/0x163 init/main.c:984 ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 irq event stamp: 1042497 hardirqs last enabled at (1042497): [<000000003715c63a>] vprintk_emit+0x25c/0x6f0 kernel/printk/printk.c:1897 hardirqs last disabled at (1042496): [<0000000098de556d>] vprintk_emit+0x6d/0x6f0 kernel/printk/printk.c:1801 softirqs last enabled at (1042112): [<00000000d8627924>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (1042027): [<00000000c217ed81>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (1042027): [<00000000c217ed81>] irq_exit+0x119/0x160 kernel/softirq.c:409 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&mm->mmap_sem); lock(&mm->mmap_sem); *** DEADLOCK *** 1 lock held by syz-executor.0/6152: #0: (shrinker_rwsem){++++..}, at: [<00000000fe1fb0b2>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 stack backtrace: CPU: 1 PID: 6152 Comm: syz-executor.0 Not tainted 4.9.194+ #0 ffff88011f676ff0 ffffffff81b67001 00000000000000f0 ffff8801968cc740 ffffffff83cb0b40 ffff8801968cd038 ffffffff84252000 ffff88011f677068 ffffffff81408710 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<0000000090b71f7d>] __dump_stack lib/dump_stack.c:15 [inline] [<0000000090b71f7d>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000ba0ae720>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<00000000ba0ae720>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<000000007fcb5952>] valid_state kernel/locking/lockdep.c:2400 [inline] [<000000007fcb5952>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<000000007fcb5952>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<00000000cb9a8124>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<00000000cb9a8124>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<00000000178d46b0>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<0000000075bd4962>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<00000000af15995c>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<00000000bdf676d8>] handle_lmk_event+0x169/0x920 drivers/staging/android/lowmemorykiller.c:116 [<000000002f14fb45>] lowmem_scan+0x6f3/0xb70 drivers/staging/android/lowmemorykiller.c:354 [<0000000037208630>] do_shrink_slab mm/vmscan.c:399 [inline] [<0000000037208630>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<000000003c9c2fd5>] shrink_slab mm/vmscan.c:466 [inline] [<000000003c9c2fd5>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000004709344b>] shrink_zones mm/vmscan.c:2751 [inline] [<000000004709344b>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000004709344b>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000f03a6a96>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000f03a6a96>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000f03a6a96>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000f03a6a96>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<00000000c8005125>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000c8005125>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000c8005125>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000c8005125>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<00000000c8005125>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<00000000fec759f9>] __vmalloc_node mm/vmalloc.c:1755 [inline] [<00000000fec759f9>] __vmalloc_node_flags mm/vmalloc.c:1769 [inline] [<00000000fec759f9>] vmalloc+0x5c/0x70 mm/vmalloc.c:1784 [<00000000f17b2340>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<000000007a3a29e7>] do_replace net/ipv4/netfilter/ip_tables.c:1146 [inline] [<000000007a3a29e7>] do_ipt_set_ctl+0x231/0x470 net/ipv4/netfilter/ip_tables.c:1693 [<00000000a64feda9>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000a64feda9>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000a88ba689>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<00000000a88ba689>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<00000000b5eb5543>] udp_setsockopt+0x4e/0x90 net/ipv4/udp.c:2114 [<00000000ccff8a99>] ipv6_setsockopt+0xa4/0x140 net/ipv6/ipv6_sockglue.c:912 [<000000003bfb62c3>] tcp_setsockopt net/ipv4/tcp.c:2759 [inline] [<000000003bfb62c3>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2753 [<00000000b2485420>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000e6531525>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000e6531525>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<0000000037b53116>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<000000009f66426e>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor.0' (6102) (tgid 6101), adj 1000, to free 36000kB on behalf of 'syz-executor.0' (6152) because cache 61148kB is below limit 65536kB for oom_score_adj 12 Free memory is -13180kB above reserved oom_reaper: reaped process 6152 (syz-executor.0), now anon-rss:0kB, file-rss:28kB, shmem-rss:0kB syz-executor.0: vmalloc: allocation failure, allocated 2188222464 of 3611754496 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 0 PID: 6152 Comm: syz-executor.0 Not tainted 4.9.194+ #0 ffff88011f677998 ffffffff81b67001 1ffff10023ecef35 dffffc0000000000 ffffffff82aab480 0000000000000000 0000000000400000 ffff88011f677ac0 ffffffff815080fc 0000000041b58ab3 ffffffff82e3bc80 ffffffff81431d00 Call Trace: [<0000000090b71f7d>] __dump_stack lib/dump_stack.c:15 [inline] [<0000000090b71f7d>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000872bb971>] warn_alloc.cold+0x76/0x93 mm/page_alloc.c:3069 [<000000006162c35c>] __vmalloc_area_node mm/vmalloc.c:1665 [inline] [<000000006162c35c>] __vmalloc_node_range+0x404/0x610 mm/vmalloc.c:1706 [<00000000fec759f9>] __vmalloc_node mm/vmalloc.c:1755 [inline] [<00000000fec759f9>] __vmalloc_node_flags mm/vmalloc.c:1769 [inline] [<00000000fec759f9>] vmalloc+0x5c/0x70 mm/vmalloc.c:1784 [<00000000f17b2340>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<000000007a3a29e7>] do_replace net/ipv4/netfilter/ip_tables.c:1146 [inline] [<000000007a3a29e7>] do_ipt_set_ctl+0x231/0x470 net/ipv4/netfilter/ip_tables.c:1693 [<00000000a64feda9>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000a64feda9>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000a88ba689>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<00000000a88ba689>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<00000000b5eb5543>] udp_setsockopt+0x4e/0x90 net/ipv4/udp.c:2114 [<00000000ccff8a99>] ipv6_setsockopt+0xa4/0x140 net/ipv6/ipv6_sockglue.c:912 [<000000003bfb62c3>] tcp_setsockopt net/ipv4/tcp.c:2759 [inline] [<000000003bfb62c3>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2753 [<00000000b2485420>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000e6531525>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000e6531525>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<0000000037b53116>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<000000009f66426e>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:99711 inactive_anon:41 isolated_anon:0 active_file:34 inactive_file:48 isolated_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:5350 slab_unreclaimable:60134 mapped:52242 shmem:47 pagetables:1277 bounce:0 free:3 free_pcp:361 free_cma:0 Node 0 active_anon:398844kB inactive_anon:164kB active_file:136kB inactive_file:192kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:208968kB dirty:0kB writeback:0kB shmem:188kB writeback_tmp:0kB unstable:0kB pages_scanned:23 all_unreclaimable? no DMA32 free:40kB min:4696kB low:7712kB high:10728kB active_anon:732kB inactive_anon:20kB active_file:4kB inactive_file:0kB unevictable:0kB writepending:0kB present:3145324kB managed:3020092kB mlocked:0kB slab_reclaimable:32kB slab_unreclaimable:5448kB kernel_stack:128kB pagetables:400kB bounce:0kB free_pcp:124kB local_pcp:4kB free_cma:0kB Normal free:0kB min:5580kB low:9168kB high:12756kB active_anon:398112kB inactive_anon:144kB active_file:136kB inactive_file:192kB unevictable:0kB writepending:0kB present:4718592kB managed:3589312kB mlocked:0kB slab_reclaimable:21368kB slab_unreclaimable:235088kB kernel_stack:4896kB pagetables:4708kB bounce:0kB free_pcp:1320kB local_pcp:628kB free_cma:0kB DMA32: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB 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 313628 pages reserved BUG: Bad rss-counter state mm:0000000008896f0f idx:0 val:6 netlink: 8 bytes leftover after parsing attributes in process `syz-executor.4'. PF_BRIDGE: RTM_SETLINK with unknown ifindex syz-executor.5 (6236) used greatest stack depth: 23640 bytes left PF_BRIDGE: RTM_SETLINK with unknown ifindex SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6267 comm=syz-executor.0 PF_BRIDGE: RTM_SETLINK with unknown ifindex EXT4-fs (loop4): VFS: Can't find ext4 filesystem SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6303 comm=syz-executor.4 EXT4-fs (loop4): VFS: Can't find ext4 filesystem PF_BRIDGE: RTM_SETLINK with unknown ifindex PF_BRIDGE: RTM_SETLINK with unknown ifindex PF_BRIDGE: RTM_SETLINK with unknown ifindex PF_BRIDGE: RTM_SETLINK with unknown ifindex PF_BRIDGE: RTM_SETLINK with unknown ifindex syz-executor.0 (6505) used greatest stack depth: 23616 bytes left SELinux: unrecognized netlink message: protocol=6 nlmsg_type=1284 sclass=netlink_xfrm_socket pig=6514 comm=syz-executor.0 PF_BRIDGE: RTM_SETLINK with unknown ifindex SELinux: unrecognized netlink message: protocol=6 nlmsg_type=1284 sclass=netlink_xfrm_socket pig=6558 comm=syz-executor.0