lowmemorykiller: Killing 'syz-executor.2' (16316) (tgid 16316), adj 1000, to free 52816kB on behalf of 'kswapd0' (33) because cache 52260kB is below limit 65536kB for oom_score_adj 12 Free memory is 22900kB above reserved ================================= [ INFO: inconsistent lock state ] 4.9.194+ #0 Not tainted --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. kswapd0/33 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<000000003653b709>] 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: 95801 hardirqs last enabled at (95801): [<0000000043dc61b7>] vprintk_emit+0x25c/0x6f0 kernel/printk/printk.c:1897 hardirqs last disabled at (95800): [<00000000b4651493>] vprintk_emit+0x6d/0x6f0 kernel/printk/printk.c:1801 softirqs last enabled at (84552): [<00000000bac9d230>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (84507): [<00000000a516d779>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (84507): [<00000000a516d779>] 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 kswapd0/33: #0: (shrinker_rwsem){++++..}, at: [<0000000076e1b5f4>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 stack backtrace: CPU: 1 PID: 33 Comm: kswapd0 Not tainted 4.9.194+ #0 ffff8801d8407420 ffffffff81b67001 00000000000000f0 ffff8801d8df8000 ffffffff83cb07e0 ffff8801d8df88f8 ffffffff84252000 ffff8801d8407498 ffffffff81408710 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<000000007f55db59>] __dump_stack lib/dump_stack.c:15 [inline] [<000000007f55db59>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000f252c2f2>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<00000000f252c2f2>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<0000000094fbec79>] valid_state kernel/locking/lockdep.c:2400 [inline] [<0000000094fbec79>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<0000000094fbec79>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<00000000c6d5c6a9>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<00000000c6d5c6a9>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<00000000657bf4fc>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<000000009009d470>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<000000003653b709>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<0000000020da0904>] handle_lmk_event+0x169/0x920 drivers/staging/android/lowmemorykiller.c:116 [<0000000073af8762>] lowmem_scan+0x6f3/0xb70 drivers/staging/android/lowmemorykiller.c:354 [<0000000074f92192>] do_shrink_slab mm/vmscan.c:399 [inline] [<0000000074f92192>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000e7be9762>] shrink_slab mm/vmscan.c:466 [inline] [<00000000e7be9762>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000da70462a>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<00000000da70462a>] balance_pgdat mm/vmscan.c:3329 [inline] [<00000000da70462a>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<00000000eb05bbcc>] kthread+0x278/0x310 kernel/kthread.c:211 [<000000002baa6596>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 lowmemorykiller: Killing 'syz-executor.1' (13437) (tgid 13437), adj 1000, to free 36168kB on behalf of 'syz-executor.4' (16630) because cache 51460kB is below limit 65536kB for oom_score_adj 12 Free memory is -13020kB above reserved lowmemorykiller: Killing 'syz-executor.1' (13492) (tgid 13492), adj 1000, to free 36168kB on behalf of 'syz-executor.4' (16630) because cache 50860kB is below limit 65536kB for oom_score_adj 12 Free memory is -13120kB above reserved lowmemorykiller: Killing 'syz-executor.2' (15431) (tgid 15431), adj 1000, to free 35984kB on behalf of 'syz-executor.4' (16630) because cache 40060kB is below limit 65536kB for oom_score_adj 12 Free memory is -13120kB above reserved lowmemorykiller: Killing 'syz-executor.2' (16639) (tgid 16639), adj 1000, to free 35964kB on behalf of 'kworker/u4:9' (4070) because cache 39560kB is below limit 65536kB for oom_score_adj 12 Free memory is -9820kB above reserved lowmemorykiller: Killing 'syz-executor.4' (16630) (tgid 16624), adj 1000, to free 35900kB on behalf of 'syz-executor.2' (12671) because cache 39160kB is below limit 65536kB for oom_score_adj 12 Free memory is -10064kB above reserved lowmemorykiller: Killing 'syz-executor.2' (15857) (tgid 15857), adj 1000, to free 35948kB on behalf of 'kswapd0' (33) because cache 39560kB is below limit 65536kB for oom_score_adj 12 Free memory is -6024kB above reserved syz-executor.2 invoked oom-killer: gfp_mask=0x26040c0(GFP_KERNEL|__GFP_COMP|__GFP_NOTRACK), nodemask=0, order=1, oom_score_adj=0 CPU: 0 PID: 12671 Comm: syz-executor.2 Not tainted 4.9.194+ #0 ffff8801a0f4f708 ffffffff81b67001 ffff8801a0f4fa60 ffffffff833f1c30 0000000000000000 ffff8801a0f4fa78 0000000000000001 ffff8801a0f4f788 ffffffff81506e44 0000000000000001 0000000000000000 ffffffff8282ac45 Call Trace: [<000000007f55db59>] __dump_stack lib/dump_stack.c:15 [inline] [<000000007f55db59>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000a1ccdb46>] dump_header.isra.0+0x142/0x74c mm/oom_kill.c:417 [<00000000540da834>] oom_kill_process.cold+0xd/0xa74 mm/oom_kill.c:852 [<00000000dfce5ea0>] out_of_memory mm/oom_kill.c:1069 [inline] [<00000000dfce5ea0>] out_of_memory+0x29b/0xea0 mm/oom_kill.c:1009 [<000000003cb14acb>] __alloc_pages_may_oom mm/page_alloc.c:3136 [inline] [<000000003cb14acb>] __alloc_pages_slowpath mm/page_alloc.c:3750 [inline] [<000000003cb14acb>] __alloc_pages_nodemask+0x1730/0x1a80 mm/page_alloc.c:3861 [<00000000a51abf4c>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000a51abf4c>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000a51abf4c>] alloc_slab_page mm/slub.c:1408 [inline] [<00000000a51abf4c>] allocate_slab mm/slub.c:1557 [inline] [<00000000a51abf4c>] new_slab+0x33b/0x3e0 mm/slub.c:1635 [<00000000d5cd2084>] new_slab_objects mm/slub.c:2419 [inline] [<00000000d5cd2084>] ___slab_alloc.constprop.0+0x361/0x470 mm/slub.c:2576 [<000000007eebf084>] __slab_alloc.isra.0.constprop.0+0x50/0xa0 mm/slub.c:2618 [<00000000b388a947>] slab_alloc_node mm/slub.c:2681 [inline] [<00000000b388a947>] slab_alloc mm/slub.c:2723 [inline] [<00000000b388a947>] kmem_cache_alloc+0x212/0x2b0 mm/slub.c:2728 [<00000000df72ea98>] getname_flags+0xcc/0x550 fs/namei.c:140 [<000000009db12b70>] user_path_at_empty+0x2f/0x50 fs/namei.c:2703 [<0000000048c814bb>] user_path_at include/linux/namei.h:55 [inline] [<0000000048c814bb>] vfs_fstatat+0xc6/0x170 fs/stat.c:106 [<00000000df5bcb0a>] vfs_lstat fs/stat.c:129 [inline] [<00000000df5bcb0a>] SYSC_newlstat fs/stat.c:283 [inline] [<00000000df5bcb0a>] SyS_newlstat+0x97/0x110 fs/stat.c:277 [<0000000089a6894d>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<000000004b586ed6>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:96005 inactive_anon:4172 isolated_anon:0 active_file:288 inactive_file:302 isolated_file:32 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:5109 slab_unreclaimable:59534 mapped:44049 shmem:4142 pagetables:880 bounce:0 free:6413 free_pcp:32 free_cma:0 Node 0 active_anon:384020kB inactive_anon:16688kB active_file:1152kB inactive_file:1208kB unevictable:0kB isolated(anon):0kB isolated(file):128kB mapped:176196kB dirty:0kB writeback:0kB shmem:16568kB writeback_tmp:0kB unstable:0kB pages_scanned:80 all_unreclaimable? no DMA32 free:18660kB min:4696kB low:7712kB high:10728kB active_anon:65880kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3145324kB managed:3020092kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB Normal free:6992kB min:5580kB low:9168kB high:12756kB active_anon:318140kB inactive_anon:16688kB active_file:1152kB inactive_file:1208kB unevictable:0kB writepending:132kB present:4718592kB managed:3589316kB mlocked:0kB slab_reclaimable:20436kB slab_unreclaimable:238136kB kernel_stack:4320kB pagetables:3520kB bounce:0kB free_pcp:128kB local_pcp:0kB free_cma:0kB DMA32: 1*4kB (M) 1*8kB (U) 2*16kB (UM) 3*32kB (UM) 2*64kB (UM) 0*128kB 2*256kB (UM) 1*512kB (U) 1*1024kB (M) 0*2048kB 4*4096kB (M) = 18700kB 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 313627 pages reserved [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name [ 470] 0 470 5365 169 16 3 0 -1000 udevd [ 1761] 0 1761 2492 572 8 3 0 0 dhclient [ 1892] 0 1892 14264 109 24 3 0 0 rsyslogd [ 1947] 0 1947 4724 51 15 3 0 0 cron [ 1965] 0 1965 3734 44 11 3 0 0 mcstransd [ 1967] 0 1967 12926 1232 26 3 0 0 restorecond [ 1993] 0 1993 12489 153 29 3 0 -1000 sshd [ 2023] 0 2023 3648 38 13 3 0 0 getty [ 2033] 0 2033 17820 197 41 3 0 0 sshd [ 2035] 0 2035 143399 92430 243 5 0 0 syz-fuzzer [12670] 0 12670 18114 240 22 3 0 0 syz-executor.2 [12671] 0 12671 18113 8958 23 4 0 0 syz-executor.2 [13211] 0 13211 18114 240 23 3 0 0 syz-executor.1 [13212] 0 13212 18113 8954 24 4 0 0 syz-executor.1 [13724] 0 13724 5430 216 15 3 0 -1000 udevd [13729] 0 13729 5430 215 15 3 0 -1000 udevd [15260] 0 15260 18114 240 23 3 0 0 syz-executor.4 [15261] 0 15261 18113 8955 24 4 0 0 syz-executor.4 [15498] 0 15498 18179 8970 26 4 0 1000 syz-executor.4 [15574] 0 15574 18212 8972 26 4 0 1000 syz-executor.4 [15883] 0 15883 18114 240 23 3 0 0 syz-executor.0 [15884] 0 15884 18113 8953 24 4 0 0 syz-executor.0 [16093] 0 16093 18114 241 23 3 0 0 syz-executor.5 [16094] 0 16094 18113 8955 24 4 0 0 syz-executor.5 [16327] 0 16327 18146 8967 26 4 0 1000 syz-executor.5 [16331] 0 16331 18146 8967 26 4 0 1000 syz-executor.5 [16622] 0 16622 5364 170 15 3 0 -1000 udevd [16630] 0 16624 18278 8975 26 4 0 1000 syz-executor.4 [16637] 0 16637 18146 8741 25 3 0 1000 syz-executor.0 Out of memory: Kill process 16624 (syz-executor.4) score 1005 or sacrifice child Killed process 16630 (syz-executor.4) total-vm:73112kB, anon-rss:184kB, file-rss:35716kB, shmem-rss:0kB syz-executor.4: vmalloc: allocation failure, allocated 3307401216 of 5356785664 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 0 PID: 16630 Comm: syz-executor.4 Not tainted 4.9.194+ #0 ffff8801d4c078c8 ffffffff81b67001 1ffff1003a980f1b dffffc0000000000 ffffffff82aab480 0000000000000000 0000000000400000 ffff8801d4c079f0 ffffffff815080fc 0000000041b58ab3 ffffffff82e3bc80 ffffffff81431d00 Call Trace: [<000000007f55db59>] __dump_stack lib/dump_stack.c:15 [inline] [<000000007f55db59>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000c72f97fb>] warn_alloc.cold+0x76/0x93 mm/page_alloc.c:3069 [<000000008d85b050>] __vmalloc_area_node mm/vmalloc.c:1665 [inline] [<000000008d85b050>] __vmalloc_node_range+0x404/0x610 mm/vmalloc.c:1706 [<0000000023949792>] __vmalloc_node mm/vmalloc.c:1755 [inline] [<0000000023949792>] __vmalloc_node_flags mm/vmalloc.c:1769 [inline] [<0000000023949792>] vmalloc+0x5c/0x70 mm/vmalloc.c:1784 [<00000000abe26da4>] xt_alloc_entry_offsets+0x44/0x50 net/netfilter/x_tables.c:758 [<00000000e6bbef85>] translate_table+0x215/0x16c0 net/ipv6/netfilter/ip6_tables.c:733 [<00000000c69823be>] do_replace net/ipv6/netfilter/ip6_tables.c:1186 [inline] [<00000000c69823be>] do_ip6t_set_ctl+0x2d4/0x480 net/ipv6/netfilter/ip6_tables.c:1712 [<00000000079e72ed>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000079e72ed>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000bde63b42>] ipv6_setsockopt net/ipv6/ipv6_sockglue.c:922 [inline] [<00000000bde63b42>] ipv6_setsockopt+0x10b/0x140 net/ipv6/ipv6_sockglue.c:906 [<000000002a95b14d>] tcp_setsockopt net/ipv4/tcp.c:2759 [inline] [<000000002a95b14d>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2753 [<00000000708c334f>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<0000000055ae9d27>] SYSC_setsockopt net/socket.c:1786 [inline] [<0000000055ae9d27>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<0000000089a6894d>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<000000004b586ed6>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:96005 inactive_anon:4172 isolated_anon:0 active_file:230 inactive_file:200 isolated_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:5109 slab_unreclaimable:59534 mapped:43874 shmem:4142 pagetables:880 bounce:0 free:0 free_pcp:212 free_cma:0 Node 0 active_anon:384020kB inactive_anon:16688kB active_file:920kB inactive_file:800kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:175496kB dirty:0kB writeback:0kB shmem:16568kB writeback_tmp:0kB unstable:0kB pages_scanned:321 all_unreclaimable? no DMA32 free:0kB min:4696kB low:7712kB high:10728kB active_anon:65880kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3145324kB managed:3020092kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB Normal free:0kB min:5580kB low:9168kB high:12756kB active_anon:318140kB inactive_anon:16688kB active_file:920kB inactive_file:800kB unevictable:0kB writepending:132kB present:4718592kB managed:3589316kB mlocked:0kB slab_reclaimable:20436kB slab_unreclaimable:238136kB kernel_stack:4320kB pagetables:3520kB bounce:0kB free_pcp:848kB local_pcp:252kB 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