lowmemorykiller: Killing 'syz-executor.4' (26919) (tgid 26919), adj 1000, to free 37740kB on behalf of 'kswapd0' (33) because cache 54228kB is below limit 65536kB for oom_score_adj 12 Free memory is 6300kB 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: [<00000000646743c2>] 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: 283937 hardirqs last enabled at (283937): [<000000000be681cb>] vprintk_emit+0x25c/0x6f0 kernel/printk/printk.c:1897 hardirqs last disabled at (283936): [<00000000a5433891>] vprintk_emit+0x6d/0x6f0 kernel/printk/printk.c:1801 softirqs last enabled at (275678): [<0000000042b23feb>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (275587): [<00000000f1812935>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (275587): [<00000000f1812935>] 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: [<000000002b33134a>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 stack backtrace: CPU: 1 PID: 33 Comm: kswapd0 Not tainted 4.9.194+ #0 ffff8801d841f420 ffffffff81b67001 00000000000000f0 ffff8801d95817c0 ffffffff83cb07e0 ffff8801d95820b8 ffffffff84252000 ffff8801d841f498 ffffffff81408710 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<00000000f14284fa>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000f14284fa>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000cdb95b74>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<00000000cdb95b74>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<000000008158bd36>] valid_state kernel/locking/lockdep.c:2400 [inline] [<000000008158bd36>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<000000008158bd36>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<000000005a0b8e70>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<000000005a0b8e70>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<000000003253fe75>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<0000000099fca18b>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<00000000646743c2>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<0000000011ff5394>] handle_lmk_event+0x169/0x920 drivers/staging/android/lowmemorykiller.c:116 [<00000000f870fc68>] lowmem_scan+0x6f3/0xb70 drivers/staging/android/lowmemorykiller.c:354 [<000000006c26511c>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000006c26511c>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<000000000f33d1a0>] shrink_slab mm/vmscan.c:466 [inline] [<000000000f33d1a0>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<0000000070a304c6>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<0000000070a304c6>] balance_pgdat mm/vmscan.c:3329 [inline] [<0000000070a304c6>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<000000007f4ee03f>] kthread+0x278/0x310 kernel/kthread.c:211 [<0000000053ff4910>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 lowmemorykiller: Killing 'syz-executor.2' (6562) (tgid 6562), adj 1000, to free 36064kB on behalf of 'kswapd0' (33) because cache 54228kB is below limit 65536kB for oom_score_adj 12 Free memory is 13676kB above reserved lowmemorykiller: Killing 'syz-executor.4' (4325) (tgid 4325), adj 1000, to free 36004kB on behalf of 'kswapd0' (33) because cache 54228kB is below limit 65536kB for oom_score_adj 12 Free memory is 13676kB above reserved lowmemorykiller: Killing 'syz-executor.4' (27964) (tgid 27964), adj 1000, to free 35980kB on behalf of 'kswapd0' (33) because cache 55116kB is below limit 65536kB for oom_score_adj 12 Free memory is -8228kB above reserved lowmemorykiller: Killing 'syz-executor.4' (28029) (tgid 28029), adj 1000, to free 35980kB on behalf of 'kswapd0' (33) because cache 55016kB is below limit 65536kB for oom_score_adj 12 Free memory is -8352kB above reserved lowmemorykiller: Killing 'syz-executor.4' (1135) (tgid 1135), adj 1000, to free 35964kB on behalf of 'kswapd0' (33) because cache 55100kB is below limit 65536kB for oom_score_adj 12 Free memory is -9160kB above reserved lowmemorykiller: Killing 'syz-executor.4' (3807) (tgid 3807), adj 1000, to free 35960kB on behalf of 'kswapd0' (33) because cache 55444kB is below limit 65536kB for oom_score_adj 12 Free memory is -9876kB above reserved lowmemorykiller: Killing 'syz-executor.3' (6551) (tgid 6551), adj 1000, to free 35952kB on behalf of 'kswapd0' (33) because cache 55492kB is below limit 65536kB for oom_score_adj 12 Free memory is -9600kB above reserved lowmemorykiller: Killing 'syz-executor.4' (4118) (tgid 4118), adj 1000, to free 35948kB on behalf of 'kswapd0' (33) because cache 53892kB is below limit 65536kB for oom_score_adj 12 Free memory is -8000kB above reserved lowmemorykiller: Killing 'syz-executor.4' (635) (tgid 635), adj 1000, to free 35932kB on behalf of 'kswapd0' (33) because cache 51792kB is below limit 65536kB for oom_score_adj 12 Free memory is -5700kB above reserved lowmemorykiller: Killing 'syz-executor.4' (5031) (tgid 5031), adj 1000, to free 35920kB on behalf of 'kswapd0' (33) because cache 51792kB is below limit 65536kB for oom_score_adj 12 Free memory is -5276kB above reserved lowmemorykiller: Killing 'syz-executor.4' (5203) (tgid 5203), adj 1000, to free 35920kB on behalf of 'kswapd0' (33) because cache 51792kB is below limit 65536kB for oom_score_adj 12 Free memory is -4500kB above reserved lowmemorykiller: Killing 'syz-executor.4' (5279) (tgid 5279), adj 1000, to free 35920kB on behalf of 'kswapd0' (33) because cache 51592kB is below limit 65536kB for oom_score_adj 12 Free memory is -4340kB above reserved lowmemorykiller: Killing 'syz-executor.4' (6495) (tgid 6495), adj 1000, to free 35920kB on behalf of 'kswapd0' (33) because cache 51592kB is below limit 65536kB for oom_score_adj 12 Free memory is -4340kB above reserved lowmemorykiller: Killing 'syz-executor.4' (28130) (tgid 28130), adj 1000, to free 35916kB on behalf of 'kswapd0' (33) because cache 51