lowmemorykiller: Killing 'syz-executor.0' (7456) (tgid 7456), adj 1000, to free 52408kB on behalf of 'udevd' (3030) because cache 64860kB is below limit 65536kB for oom_score_adj 12 Free memory is -5716kB above reserved ================================= [ INFO: inconsistent lock state ] 4.9.194+ #0 Not tainted --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. udevd/3030 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<00000000f0c58b9f>] 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: 9327669 hardirqs last enabled at (9327669): [<000000007d3d0747>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:162 [inline] hardirqs last enabled at (9327669): [<000000007d3d0747>] _raw_spin_unlock_irqrestore+0x5a/0x70 kernel/locking/spinlock.c:191 hardirqs last disabled at (9327668): [<000000003aed7e95>] rcu_read_unlock_special+0x3a/0xb30 kernel/rcu/tree_plugin.h:393 softirqs last enabled at (9317712): [<000000007cdedde4>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (9317705): [<0000000086514139>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (9317705): [<0000000086514139>] 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/3030: #0: (shrinker_rwsem){++++..}, at: [<000000005a42a41b>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 stack backtrace: CPU: 1 PID: 3030 Comm: udevd Not tainted 4.9.194+ #0 ffff88019f8a6f70 ffffffff81b67001 00000000000000f0 ffff88019f8ac740 ffffffff83cb0b40 ffff88019f8ad038 ffffffff84252000 ffff88019f8a6fe8 ffffffff81408710 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<0000000082031a73>] __dump_stack lib/dump_stack.c:15 [inline] [<0000000082031a73>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000c3cf7353>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<00000000c3cf7353>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<00000000588673d1>] valid_state kernel/locking/lockdep.c:2400 [inline] [<00000000588673d1>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<00000000588673d1>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<00000000a899e301>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<00000000a899e301>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<000000009a6ffa74>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<00000000dd595f2b>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<00000000f0c58b9f>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<000000005184c1e0>] handle_lmk_event+0x169/0x920 drivers/staging/android/lowmemorykiller.c:116 [<000000001d8a2af3>] lowmem_scan+0x6f3/0xb70 drivers/staging/android/lowmemorykiller.c:354 [<00000000c0c3eace>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000c0c3eace>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000f2564de1>] shrink_slab mm/vmscan.c:466 [inline] [<00000000f2564de1>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000bd5454e7>] shrink_zones mm/vmscan.c:2751 [inline] [<00000000bd5454e7>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<00000000bd5454e7>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000e40e9a53>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000e40e9a53>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000e40e9a53>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000e40e9a53>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<0000000069c6d4af>] __alloc_pages include/linux/gfp.h:433 [inline] [<0000000069c6d4af>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<0000000069c6d4af>] alloc_slab_page mm/slub.c:1408 [inline] [<0000000069c6d4af>] allocate_slab mm/slub.c:1557 [inline] [<0000000069c6d4af>] new_slab+0x33b/0x3e0 mm/slub.c:1635 [<0000000087b9d1bd>] new_slab_objects mm/slub.c:2419 [inline] [<0000000087b9d1bd>] ___slab_alloc.constprop.0+0x361/0x470 mm/slub.c:2576 [<000000001900a134>] __slab_alloc.isra.0.constprop.0+0x50/0xa0 mm/slub.c:2618 [<000000000b303311>] slab_alloc_node mm/slub.c:2681 [inline] [<000000000b303311>] slab_alloc mm/slub.c:2723 [inline] [<000000000b303311>] kmem_cache_alloc+0x212/0x2b0 mm/slub.c:2728 [<0000000072ba0225>] kmem_cache_alloc_node include/linux/slab.h:364 [inline] [<0000000072ba0225>] alloc_task_struct_node kernel/fork.c:146 [inline] [<0000000072ba0225>] dup_task_struct kernel/fork.c:490 [inline] [<0000000072ba0225>] copy_process.part.0+0x1714/0x6690 kernel/fork.c:1640 [<00000000ce90f80b>] copy_process kernel/fork.c:1586 [inline] [<00000000ce90f80b>] _do_fork+0x1c1/0xd50 kernel/fork.c:2111 [<00000000f0bebf16>] SYSC_clone kernel/fork.c:2223 [inline] [<00000000f0bebf16>] SyS_clone+0x37/0x50 kernel/fork.c:2217 [<00000000edfb162f>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<000000003c018896>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor.3' (31184) (tgid 31184), adj 1000, to free 52400kB on behalf of 'udevd' (3030) because cache 64260kB is below limit 65536kB for oom_score_adj 12 Free memory is 1072kB above reserved blk_update_request: 18 callbacks suppressed blk_update_request: I/O error, dev loop10, sector 0 F2FS-fs (loop4): Unable to read 1th superblock blk_update_request: I/O error, dev loop4, sector 8 F2FS-fs (loop4): Unable to read 2th superblock F2FS-fs (loop10): Unable to read 1th superblock blk_update_request: I/O error, dev loop10, sector 8 F2FS-fs (loop10): Unable to read 2th superblock blk_update_request: I/O error, dev loop0, sector 0 blk_update_request: I/O error, dev loop2, sector 0 F2FS-fs (loop2): Unable to read 1th superblock blk_update_request: I/O error, dev loop2, sector 8 F2FS-fs (loop2): Unable to read 2th superblock blk_update_request: I/O error, dev loop8, sector 0 F2FS-fs (loop8): Unable to read 1th superblock blk_update_request: I/O error, dev loop8, sector 8 F2FS-fs (loop8): Unable to read 2th superblock F2FS-fs (loop0): Unable to read 1th superblock blk_update_request: I/O error, dev loop0, sector 8 F2FS-fs (loop0): Unable to read 2th superblock lowmemorykiller: Killing 'syz-executor.1' (2237) (tgid 2237), adj 1000, to free 52400kB on behalf of 'syz-executor.2' (24014) because cache 63908kB is below limit 65536kB for oom_score_adj 12 Free memory is -15976kB above reserved lowmemorykiller: Killing 'syz-executor.1' (2237) (tgid 2237), adj 1000, to free 52400kB on behalf of 'syz-executor.5' (24013) because cache 64008kB is below limit 65536kB for oom_score_adj 12 Free memory is -15976kB above reserved lowmemorykiller: Killing 'syz-executor.5' (10423) (tgid 10423), adj 1000, to free 52400kB on behalf of 'kswapd0' (33) because cache 64208kB is below limit 65536kB for oom_score_adj 12 Free memory is -8812kB above reserved blk_update_request: I/O error, dev loop10, sector 0 F2FS-fs (loop4): Unable to read 1th superblock F2FS-fs (loop4): Unable to read 2th superblock F2FS-fs (loop10): Unable to read 1th superblock F2FS-fs (loop10): Unable to read 2th superblock F2FS-fs (loop2): Unable to read 1th superblock F2FS-fs (loop2): Unable to read 2th superblock F2FS-fs (loop0): Unable to read 1th superblock F2FS-fs (loop0): Unable to read 2th superblock F2FS-fs (loop8): Unable to read 1th superblock F2FS-fs (loop8): Unable to read 2th superblock F2FS-fs (loop10): Unable to read 1th superblock F2FS-fs (loop10): Unable to read 2th superblock F2FS-fs (loop4): Unable to read 1th superblock F2FS-fs (loop4): Unable to read 2th superblock F2FS-fs (loop4): Unable to read 1th superblock F2FS-fs (loop4): Unable to read 2th superblock F2FS-fs (loop0): Unable to read 1th superblock F2FS-fs (loop4): Unable to read 1th superblock F2FS-fs (loop4): Unable to read 2th superblock F2FS-fs (loop0): Unable to read 2th superblock F2FS-fs (loop4): Unable to read 1th superblock F2FS-fs (loop4): Unable to read 2th superblock F2FS-fs (loop10): Unable to read 1th superblock F2FS-fs (loop10): Unable to read 2th superblock F2FS-fs (loop4): Unable to read 1th superblock F2FS-fs (loop4): Unable to read 2th superblock F2FS-fs (loop0): Unable to read 1th superblock F2FS-fs (loop0): Unable to read 2th superblock F2FS-fs (loop8): Unable to read 1th superblock F2FS-fs (loop8): Unable to read 2th superblock F2FS-fs (loop4): Unable to read 1th superblock F2FS-fs (loop4): Unable to read 2th superblock F2FS-fs (loop8): Unable to read 1th superblock F2FS-fs (loop8): Unable to read 2th superblock F2FS-fs (loop10): Unable to read 1th superblock F2FS-fs (loop10): Unable to read 2th superblock F2FS-fs (loop8): Unable to read 1th superblock F2FS-fs (loop8): Unable to read 2th superblock F2FS-fs (loop0): Unable to read 1th superblock F2FS-fs (loop0): Unable to read 2th superblock blk_update_request: 39 callbacks suppressed blk_update_request: I/O error, dev loop4, sector 0 F2FS-fs (loop4): Unable to read 1th superblock blk_update_request: I/O error, dev loop4, sector 8 F2FS-fs (loop4): Unable to read 2th superblock lowmemorykiller: Killing 'syz-executor.0' (6965) (tgid 6965), adj 1000, to free 52396kB on behalf of 'syz-executor.2' (24323) because cache 51764kB is below limit 65536kB for oom_score_adj 12 Free memory is -15912kB above reserved lowmemorykiller: Killing 'syz-executor.0' (6965) (tgid 6965), adj 1000, to free 52396kB on behalf of 'syz-executor.4' (24327) because cache 51764kB is below limit 65536kB for oom_score_adj 12 Free memory is -15912kB above reserved blk_update_request: I/O error, dev loop8, sector 0 F2FS-fs (loop8): Unable to read 1th superblock blk_update_request: I/O error, dev loop8, sector 8 F2FS-fs (loop8): Unable to read 2th superblock lowmemorykiller: Killing 'syz-executor.5' (15713) (tgid 15713), adj 1000, to free 52384kB on behalf of 'kswapd0' (33) because cache 27764kB is below limit 65536kB for oom_score_adj 12 Free memory is 392kB above reserved blk_update_request: I/O error, dev loop2, sector 0 F2FS-fs (loop2): Unable to read 1th superblock blk_update_request: I/O error, dev loop2, sector 8 F2FS-fs (loop2): Unable to read 2th superblock blk_update_request: I/O error, dev loop0, sector 0 F2FS-fs (loop0): Unable to read 1th superblock blk_update_request: I/O error, dev loop4, sector 0 F2FS-fs (loop4): Unable to read 1th superblock blk_update_request: I/O error, dev loop4, sector 8 F2FS-fs (loop4): Unable to read 2th superblock blk_update_request: I/O error, dev loop10, sector 0 F2FS-fs (loop10): Unable to read 1th superblock F2FS-fs (loop10): Unable to read 2th superblock F2FS-fs (loop8): Unable to read 1th superblock F2FS-fs (loop8): Unable to read 2th superblock F2FS-fs (loop0): Unable to read 2th superblock F2FS-fs (loop8): Unable to read 1th superblock F2FS-fs (loop8): Unable to read 2th superblock F2FS-fs (loop8): Unable to read 1th superblock F2FS-fs (loop8): Unable to read 2th superblock F2FS-fs (loop0): Unable to read 1th superblock F2FS-fs (loop10): Unable to read 1th superblock F2FS-fs (loop10): Unable to read 2th superblock F2FS-fs (loop0): Unable to read 2th superblock F2FS-fs (loop8): Unable to read 1th superblock F2FS-fs (loop8): Unable to read 2th superblock F2FS-fs (loop8): Unable to read 1th superblock F2FS-fs (loop8): Unable to read 2th superblock F2FS-fs (loop10): Unable to read 1th superblock F2FS-fs (loop0): Unable to read 1th superblock F2FS-fs (loop0): Unable to read 2th superblock F2FS-fs (loop10): Unable to read 2th superblock F2FS-fs (loop8): Unable to read 1th superblock F2FS-fs (loop8): Unable to read 2th superblock F2FS-fs (loop8): Unable to read 1th superblock F2FS-fs (loop8): Unable to read 2th superblock