lowmemorykiller: Killing 'syz-executor.2' (3519) (tgid 3519), adj 1000, to free 35992kB on behalf of 'udevd' (6225) because cache 60284kB is below limit 65536kB for oom_score_adj 12 Free memory is -11128kB above reserved ================================= [ INFO: inconsistent lock state ] 4.9.194+ #0 Not tainted --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. udevd/6225 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<00000000a05f780a>] 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: 887695 hardirqs last enabled at (887695): [<00000000c198ae14>] vprintk_emit+0x25c/0x6f0 kernel/printk/printk.c:1897 hardirqs last disabled at (887694): [<00000000f0977a5c>] vprintk_emit+0x6d/0x6f0 kernel/printk/printk.c:1801 softirqs last enabled at (887574): [<000000007be91ec9>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (887527): [<00000000810ae215>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (887527): [<00000000810ae215>] 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 udevd/6225: #0: (shrinker_rwsem){++++..}, at: [<000000002202fbe8>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 stack backtrace: CPU: 0 PID: 6225 Comm: udevd Not tainted 4.9.194+ #0 ffff8801d5e4f110 ffffffff81b67001 00000000000000f0 ffff8801ace40000 ffffffff83cb0b40 ffff8801ace408f8 ffffffff84252000 ffff8801d5e4f188 ffffffff81408710 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<0000000035ea49d5>] __dump_stack lib/dump_stack.c:15 [inline] [<0000000035ea49d5>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<000000001b9e7120>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<000000001b9e7120>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<000000000d3ef6f9>] valid_state kernel/locking/lockdep.c:2400 [inline] [<000000000d3ef6f9>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<000000000d3ef6f9>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<0000000071c0a2c9>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<0000000071c0a2c9>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<0000000030e26935>] do_shrink_slab mm/vmscan.c:399 [inline] [<0000000030e26935>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [ 7036] 0 7036 18146 8734 25 3 0 1000 syz-executor.2 [<000000006025bb8d>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:119104 inactive_anon:715 isolated_anon:0 active_file:31 inactive_file:57 isolated_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:6329 slab_unreclaimable:62933 mapped:52239 shmem:730 pagetables:3828 bounce:0 free:6067 free_pcp:0 free_cma:0 [18066] 0 18066 18146 8753 26 4 0 0 syz-executor.4 [ 7028] 0 7028 5364 169 14 3 0 -1000 udevd Mem-Info: active_anon:119054 inactive_anon:715 isolated_anon:0 active_file:20 inactive_file:43 isolated_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:6329 slab_unreclaimable:62958 mapped:52264 shmem:730 pagetables:3791 bounce:0 free:6072 free_pcp:0 free_cma:0 Node 0 active_anon:476216kB inactive_anon:2860kB active_file:80kB inactive_file:172kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:209056kB dirty:0kB writeback:0kB shmem:2920kB writeback_tmp:0kB unstable:0kB pages_scanned:2 all_unreclaimable? no Normal free:5780kB min:5580kB low:9168kB high:12756kB active_anon:476008kB inactive_anon:2860kB active_file:80kB inactive_file:84kB unevictable:0kB writepending:0kB present:4718592kB managed:3589316kB mlocked:0kB slab_reclaimable:25316kB slab_unreclaimable:251804kB kernel_stack:9408kB pagetables:15164kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB Normal: 623*4kB (UMH) 297*8kB (UMH) 57*16kB (UMH) 2*32kB (H) 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 5844kB 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 168 16 3 0 -1000 udevd [ 1763] 0 1763 2492 573 9 3 0 0 dhclient [ 1896] 0 1896 30615 113 24 3 0 0 rsyslogd [ 1950] 0 1950 4724 51 15 3 0 0 cron [ 1969] 0 1969 3767 71 11 3 0 0 mcstransd [ 1979] 0 1979 12926 1231 28 3 0 0 restorecond [ 1997] 0 1997 12489 152 28 3 0 -1000 sshd [ 2027] 0 2027 3648 39 11 3 0 0 getty [ 2037] 0 2037 17820 196 40 3 0 0 sshd [ 2039] 0 2039 154849 94661 264 5 0 0 syz-fuzzer [ 6733] 0 6733 18114 15 23 3 0 0 syz-executor.4 [ 6734] 0 6734 18113 8740 24 4 0 0 syz-executor.4 [ 7522] 0 7522 18143 8718 25 3 0 0 syz-executor.4 [ 7528] 0 7528 18176 8723 26 3 0 0 syz-executor.4 [ 8133] 0 8133 18179 8752 26 4 0 0 syz-executor.4 [ 9156] 0 9156 18179 8752 26 4 0 0 syz-executor.4 [ 9379] 0 9379 34729 8771 28 4 0 0 syz-executor.4 [ 9420] 0 9420 34729 8771 28 4 0 0 syz-executor.4 [ 9769] 0 9769 18245 9925 29 4 0 0 syz-executor.4 [11261] 0 11261 18179 8753 26 4 0 0 syz-executor.4 [11268] 0 11268 18146 8751 26 4 0 0 syz-executor.4 [11522] 0 11522 18179 8755 26 4 0 0 syz-executor.4 [11527] 0 11527 18179 8755 26 4 0 0 syz-executor.4 [11597] 0 11597 18311 12857 33 4 0 0 syz-executor.4 [12518] 0 12518 18278 8763 27 4 0 0 syz-executor.4 [12528] 0 12528 18278 8763 27 4 0 0 syz-executor.4 [12703] 0 12703 18146 8718 25 3 0 0 syz-executor.4 [12710] 0 12710 18179 8722 26 3 0 0 syz-executor.4 [13314] 0 13314 18212 8756 26 4 0 0 syz-executor.4 [13656] 0 13656 18146 8752 26 4 0 0 syz-executor.4 [13717] 0 13717 18143 8719 25 3 0 0 syz-executor.4 [13719] 0 13719 18176 8724 26 3 0 0 syz-executor.4 [14023] 0 14023 18146 8718 25 3 0 0 syz-executor.4 [14049] 0 14049 18212 8724 25 3 0 0 syz-executor.4 [14307] 60929 14307 18212 8756 26 4 0 0 syz-executor.4 [14672] 0 14672 18261 12631 33 4 0 0 syz-executor.4 [14717] 0 14717 18212 8775 26 4 0 0 syz-executor.4 [15313] 0 15313 18278 10400 29 4 0 0 syz-executor.4 [16563] 0 16563 18146 8755 26 4 0 0 syz-executor.4 [16573] 0 16573 18146 8755 26 4 0 0 syz-executor.4