lowmemorykiller: Killing 'syz-executor.5' (10610) (tgid 10610), adj 1000, to free 36752kB on behalf of 'kswapd0' (33) because cache 51600kB is below limit 65536kB for oom_score_adj 12 Free memory is 13360kB 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: [<00000000cf7d468f>] 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: 63079 hardirqs last enabled at (63079): [<00000000fa46df10>] vprintk_emit+0x25c/0x6f0 kernel/printk/printk.c:1897 hardirqs last disabled at (63078): [<0000000096b7fdbd>] vprintk_emit+0x6d/0x6f0 kernel/printk/printk.c:1801 softirqs last enabled at (52818): [<000000006cfbbfe9>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (52797): [<00000000b89693b0>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (52797): [<00000000b89693b0>] 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: [<000000005b06b084>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 stack backtrace: CPU: 0 PID: 33 Comm: kswapd0 Not tainted 4.9.194+ #0 ffff8801d8427420 ffffffff81b67001 00000000000000f0 ffff8801d992c740 ffffffff83cb0b40 ffff8801d992d038 ffffffff84252000 ffff8801d8427498 ffffffff81408710 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<0000000059d3229b>] __dump_stack lib/dump_stack.c:15 [inline] [<0000000059d3229b>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<0000000029a1b913>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<0000000029a1b913>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<00000000db90431b>] valid_state kernel/locking/lockdep.c:2400 [inline] [<00000000db90431b>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<00000000db90431b>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<000000002796fbef>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<000000002796fbef>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<0000000070656a5b>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<00000000c4428d33>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<00000000cf7d468f>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<00000000f205a210>] handle_lmk_event+0x169/0x920 drivers/staging/android/lowmemorykiller.c:116 [<0000000088aa1e9e>] lowmem_scan+0x6f3/0xb70 drivers/staging/android/lowmemorykiller.c:354 [<00000000cab33bd3>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000cab33bd3>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000009b16493>] shrink_slab mm/vmscan.c:466 [inline] [<0000000009b16493>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<0000000016d920dd>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<0000000016d920dd>] balance_pgdat mm/vmscan.c:3329 [inline] [<0000000016d920dd>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<00000000aadff076>] kthread+0x278/0x310 kernel/kthread.c:211 [<00000000b9e31f30>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 lowmemorykiller: Killing 'syz-executor.0' (4759) (tgid 4759), adj 1000, to free 36236kB on behalf of 'syz-executor.5' (20836) because cache 51560kB is below limit 65536kB for oom_score_adj 12 Free memory is 16000kB above reserved lowmemorykiller: Killing 'syz-executor.1' (4760) (tgid 4760), adj 1000, to free 36236kB on behalf of 'kswapd0' (33) because cache 51260kB is below limit 65536kB for oom_score_adj 12 Free memory is -13040kB above reserved lowmemorykiller: Killing 'syz-executor.3' (4758) (tgid 4758), adj 1000, to free 36232kB on behalf of 'syz-executor.5' (20836) because cache 50960kB is below limit 65536kB for oom_score_adj 12 Free memory is -13112kB above reserved lowmemorykiller: Killing 'syz-executor.0' (4488) (tgid 4488), adj 1000, to free 36224kB on behalf of 'syz-executor.5' (20836) because cache 44560kB is below limit 65536kB for oom_score_adj 12 Free memory is -13212kB above reserved lowmemorykiller: Killing 'syz-executor.0' (4418) (tgid 4418), adj 1000, to free 36168kB on behalf of 'syz-executor.5' (20836) because cache 44160kB is below limit 65536kB for oom_score_adj 12 Free memory is -13184kB above reserved lowmemorykiller: Killing 'syz-executor.5' (20783) (tgid 20778), adj 1000, to free 36032kB on behalf of 'syz-executor.5' (20836) because cache 43860kB is below limit 65536kB for oom_score_adj 12 Free memory is -13164kB above reserved lowmemorykiller: Killing 'syz-executor.5' (20783) (tgid 20778), adj 1000, to free 35040kB on behalf of 'kswapd0' (33) because cache 124kB is below limit 6144kB for oom_score_adj 0 Free memory is -13312kB above reserved lowmemorykiller: Killing 'syz-executor.5' (20783) (tgid 20778), adj 1000, to free 35040kB on behalf of 'syz-executor.5' (3962) because cache 124kB is below limit 6144kB for oom_score_adj 0 Free memory is -13312kB above reserved lowmemorykiller: Killing 'syz-executor.5' (20783) (tgid 20778), adj 1000, to free 35040kB on behalf of 'udevd' (470) because cache 124kB is below limit 6144kB for oom_score_adj 0 Free memory is -13312kB above reserved lowmemorykiller: Killing 'syz-executor.5' (20783) (tgid 20778), adj 1000, to free 35040kB on behalf of 'rsyslogd' (1901) because cache 124kB is below limit 6144kB for oom_score_adj 0 Free memory is -13312kB above reserved lowmemorykiller: Killing 'syz-executor.5' (20783) (tgid 20778), adj 1000, to free 35040kB on behalf of 'rsyslogd' (1901) because cache 124kB is below limit 6144kB for oom_score_adj 0 Free memory is -13312kB above reserved lowmemorykiller: Killing 'syz-executor.5' (20783) (tgid 20778), adj 1000, to free 35040kB on behalf of 'udevd' (470) because cache 124kB is below limit 6144kB for oom_score_adj 0 Free memory is -13312kB above reserved input: syz1 as /devices/virtual/input/input72 input: syz1 as /devices/virtual/input/input73 input: syz1 as /devices/virtual/input/input74 input: syz1 as /devices/virtual/input/input75 input: syz1 as /devices/virtual/input/input76 input: syz1 as /devices/virtual/input/input77 input: syz1 as /devices/virtual/input/input78 input: syz1 as /devices/virtual/input/input79 input: syz1 as /devices/virtual/input/input80 input: syz1 as /devices/virtual/input/input81 input: syz1 as /devices/virtual/input/input82 input: syz1 as /devices/virtual/input/input83 input: syz1 as /devices/virtual/input/input84 input: syz1 as /devices/virtual/input/input85 input: syz1 as /devices/virtual/input/input86 input: syz1 as /devices/virtual/input/input87 input: syz1 as /devices/virtual/input/input88 input: syz1 as /devices/virtual/input/input89 input: syz1 as /devices/virtual/input/input90 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=21268 comm=syz-executor.4