lowmemorykiller: Killing 'syz-executor.0' (4196) (tgid 4196), adj 1000, to free 72564kB on behalf of 'kswapd0' (33) because cache 35980kB is below limit 65536kB for oom_score_adj 12 Free memory is -1852kB 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: [<00000000e1268487>] 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] pte_alloc_one+0x23/0x110 arch/x86/mm/pgtable.c:29 __pte_alloc+0x26/0x1f0 mm/memory.c:570 move_page_tables+0xb4d/0xd60 mm/mremap.c:232 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: 65123 hardirqs last enabled at (65123): [<00000000dd6ed641>] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:170 [inline] hardirqs last enabled at (65123): [<00000000dd6ed641>] _raw_spin_unlock_irq+0x28/0x60 kernel/locking/spinlock.c:199 hardirqs last disabled at (65122): [<0000000069fb22c3>] __schedule+0x184/0x1f10 kernel/sched/core.c:3432 softirqs last enabled at (65096): [<000000006ddc9341>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (65075): [<000000003a90653c>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (65075): [<000000003a90653c>] 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: [<000000005c07b25c>] 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 ffff8801d8410000 ffffffff83cb0990 ffff8801d84108f8 ffffffff84252000 ffff8801d841f498 ffffffff81408710 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<00000000722c3875>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000722c3875>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000a506cc5f>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<00000000a506cc5f>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<00000000159e03db>] valid_state kernel/locking/lockdep.c:2400 [inline] [<00000000159e03db>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<00000000159e03db>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<00000000484a66c8>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<00000000484a66c8>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<00000000165977d5>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<0000000036840866>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<00000000e1268487>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<0000000070588ff2>] handle_lmk_event+0x169/0x920 drivers/staging/android/lowmemorykiller.c:116 [<000000009ffbf679>] lowmem_scan+0x6f3/0xb70 drivers/staging/android/lowmemorykiller.c:354 [<0000000023fddec7>] do_shrink_slab mm/vmscan.c:399 [inline] [<0000000023fddec7>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<000000004d97e4ef>] shrink_slab mm/vmscan.c:466 [inline] [<000000004d97e4ef>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000131f3c24>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<00000000131f3c24>] balance_pgdat mm/vmscan.c:3329 [inline] [<00000000131f3c24>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<0000000001e81ab1>] kthread+0x278/0x310 kernel/kthread.c:211 [<0000000072a787a1>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 lowmemorykiller: Killing 'syz-executor.0' (30983) (tgid 30983), adj 1000, to free 53048kB on behalf of 'syz-executor.4' (4211) because cache 65200kB is below limit 65536kB for oom_score_adj 12 Free memory is -13228kB above reserved lowmemorykiller: Killing 'syz-executor.0' (30983) (tgid 30983), adj 1000, to free 53048kB on behalf of 'syz-executor.0' (4213) because cache 65100kB is below limit 65536kB for oom_score_adj 12 Free memory is -13228kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31036) (tgid 31036), adj 1000, to free 53048kB on behalf of 'syz-executor.0' (4213) because cache 60500kB is below limit 65536kB for oom_score_adj 12 Free memory is 9204kB above reserved lowmemorykiller: Killing 'syz-executor.0' (4212) (tgid 4212), adj 1000, to free 66456kB on behalf of 'kswapd0' (33) because cache 25300kB is below limit 65536kB for oom_score_adj 12 Free memory is 24256kB above reserved lowmemorykiller: Killing 'syz-executor.0' (4213) (tgid 4212), adj 1000, to free 67408kB on behalf of 'kswapd0' (33) because cache 25300kB is below limit 65536kB for oom_score_adj 12 Free memory is 24256kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31077) (tgid 31077), adj 1000, to free 53048kB on behalf of 'kswapd0' (33) because cache 25168kB is below limit 65536kB for oom_score_adj 12 Free memory is 24256kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31131) (tgid 31131), adj 1000, to free 53048kB on behalf of 'kswapd0' (33) because cache 25168kB is below limit 65536kB for oom_score_adj 12 Free memory is 39624kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31178) (tgid 31178), adj 1000, to free 53048kB on behalf of 'kswapd0' (33) because cache 25468kB is below limit 65536kB for oom_score_adj 12 Free memory is 55724kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31286) (tgid 31286), adj 1000, to free 53048kB on behalf of 'kswapd0' (33) because cache 41284kB is below limit 65536kB for oom_score_adj 12 Free memory is -6728kB above reserved lowmemorykiller: Killing 'syz-executor.4' (4267) (tgid 4267), adj 1000, to free 72560kB on behalf of 'kswapd0' (33) because cache 6096kB is below limit 6144kB for oom_score_adj 0 Free memory is -6720kB above reserved lowmemorykiller: Killing 'syz-executor.2' (4281) (tgid 4281), adj 1000, to free 53168kB on behalf of 'kswapd0' (33) because cache -17056kB is below limit 6144kB for oom_score_adj 0 Free memory is -12040kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31347) (tgid 31347), adj 1000, to free 53048kB on behalf of 'kswapd0' (33) because cache -7156kB is below limit 6144kB for oom_score_adj 0 Free memory is -4940kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31359) (tgid 31359), adj 1000, to free 53048kB on behalf of 'kswapd0' (33) because cache 13404kB is below limit 65536kB for oom_score_adj 12 Free memory is 27648kB above reserved lowmemorykiller: Killing 'syz-executor.2' (4296) (tgid 4296), adj 1000, to free 54404kB on behalf of 'kswapd0' (33) because cache 51072kB is below limit 65536kB for oom_score_adj 12 Free memory is -6628kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31420) (tgid 31420), adj 1000, to free 53048kB on behalf of 'kswapd0' (33) because cache 51572kB is below limit 65536kB for oom_score_adj 12 Free memory is -6628kB above reserved lowmemorykiller: Killing 'syz-executor.2' (4302) (tgid 4302), adj 1000, to free 71604kB on behalf of 'kswapd0' (33) because cache 12448kB is below limit 16384kB for oom_score_adj 6 Free memory is -6712kB above reserved lowmemorykiller: Killing 'syz-executor.0' (4306) (tgid 4306), adj 1000, to free 53612kB on behalf of 'syz-executor.4' (4303) because cache 17048kB is below limit 65536kB for oom_score_adj 12 Free memory is -13284kB above reserved lowmemorykiller: Killing 'syz-executor.0' (4308) (tgid 4306), adj 1000, to free 54564kB on behalf of 'syz-executor.4' (4303) because cache 19148kB is below limit 65536kB for oom_score_adj 12 Free memory is -13284kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31470) (tgid 31470), adj 1000, to free 53048kB on behalf of 'syz-executor.4' (4303) because cache 25448kB is below limit 65536kB for oom_score_adj 12 Free memory is -12836kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31487) (tgid 31487), adj 1000, to free 53048kB on behalf of 'syz-executor.4' (4303) because cache 33548kB is below limit 65536kB for oom_score_adj 12 Free memory is -1460kB above reserved lowmemorykiller: Killing 'syz-executor.4' (4300) (tgid 4300), adj 1000, to free 72564kB on behalf of 'kswapd0' (33) because cache -25652kB is below limit 16384kB for oom_score_adj 6 Free memory is 9492kB above reserved lowmemorykiller: Killing 'syz-executor.2' (4315) (tgid 4315), adj 1000, to free 72564kB on behalf of 'kswapd0' (33) because cache -18852kB is below limit 16384kB for oom_score_adj 6 Free memory is 9492kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31499) (tgid 31499), adj 1000, to free 53048kB on behalf of 'kswapd0' (33) because cache 21772kB is below limit 65536kB for oom_score_adj 12 Free memory is -6752kB above reserved lowmemorykiller: Killing 'syz-executor.2' (4326) (tgid 4326), adj 1000, to free 53084kB on behalf of 'kswapd0' (33) because cache 14972kB is below limit 16384kB for oom_score_adj 6 Free memory is -12324kB above reserved lowmemorykiller: Killing 'syz-executor.2' (4327) (tgid 4326), adj 1000, to free 54032kB on behalf of 'syz-executor.2' (4327) because cache 14872kB is below limit 16384kB for oom_score_adj 6 Free memory is 1776kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31558) (tgid 31558), adj 1000, to free 53048kB on behalf of 'kswapd0' (33) because cache 15072kB is below limit 16384kB for oom_score_adj 6 Free memory is 5212kB above reserved lowmemorykiller: Killing 'syz-executor.0' (31609) (tgid 31609), adj 1000, to free 53048kB on behalf of 'kswapd0' (33) because cache 14972kB is below limit 65536kB for oom_score_adj 12 Free memory is 22512kB above reserved lowmemorykiller: Killing 'syz-executor.4' (4328) (tgid 4328), adj 1000, to free 70432kB on behalf of 'kswapd0' (33) because cache -3492kB is below limit 65536kB for oom_score_adj 12 Free memory is 39460kB above reserved