lowmemorykiller: Killing 'syz-executor.4' (19535) (tgid 19535), adj 1000, to free 35892kB on behalf of 'kswapd0' (33) because cache 57452kB is below limit 65536kB for oom_score_adj 12 Free memory is -10888kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:905 in_atomic(): 0, irqs_disabled(): 0, pid: 33, name: kswapd0 2 locks held by kswapd0/33: #0: (shrinker_rwsem){++++..}, at: [<0000000006cc36e2>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<000000002a38d721>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 Preemption disabled at: [<00000000d63bf3d2>] spin_lock include/linux/spinlock.h:302 [inline] [<00000000d63bf3d2>] task_lock include/linux/sched.h:3217 [inline] [<00000000d63bf3d2>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 1 PID: 33 Comm: kswapd0 Not tainted 4.9.189+ #22 ffff8801d84077c0 ffffffff81b65c01 0000000000000000 0000000000000001 ffff8801d8df8000 ffffffff810d1010 ffff8801d8df8000 ffff8801d84077f8 ffffffff814018f3 ffff8801d8df8000 ffffffff82a39fc0 0000000000000389 Call Trace: [<000000006ba72823>] __dump_stack lib/dump_stack.c:15 [inline] [<000000006ba72823>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000aab38e5b>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<00000000a0841949>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<00000000318fc36e>] mmput+0x28/0x370 kernel/fork.c:905 [<00000000ff11a445>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000938e2bab>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<000000005f3f884e>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000005f3f884e>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<000000008d8872ad>] shrink_slab mm/vmscan.c:466 [inline] [<000000008d8872ad>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000005eb63647>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<000000005eb63647>] balance_pgdat mm/vmscan.c:3329 [inline] [<000000005eb63647>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<000000004efd0eea>] kthread+0x278/0x310 kernel/kthread.c:211 [<00000000d1c258e5>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 ================================= [ INFO: inconsistent lock state ] 4.9.189+ #22 Tainted: G W --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. kswapd0/33 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<000000005d24cc90>] 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