lowmemorykiller: Killing 'syz-executor.3' (4199) (tgid 4199), adj 1000, to free 36088kB on behalf of 'syz-executor.3' (18367) because cache 59788kB is below limit 65536kB for oom_score_adj 12 Free memory is -12976kB above reserved ================================= [ INFO: inconsistent lock state ] 4.9.194+ #0 Not tainted --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. syz-executor.3/18367 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<000000006f5a3232>] 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: 1381533 hardirqs last enabled at (1381533): [<00000000cb46a4b5>] vprintk_emit+0x25c/0x6f0 kernel/printk/printk.c:1897 hardirqs last disabled at (1381532): [<000000006bda3527>] vprintk_emit+0x6d/0x6f0 kernel/printk/printk.c:1801 softirqs last enabled at (1377444): [<00000000f5adbffb>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (1377431): [<00000000d97eb149>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (1377431): [<00000000d97eb149>] 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 syz-executor.3/18367: #0: (shrinker_rwsem){++++..}, at: [<0000000011ff6367>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 stack backtrace: CPU: 0 PID: 18367 Comm: syz-executor.3 Not tainted 4.9.194+ #0 ffff880158b66f20 ffffffff81b67001 00000000000000f0 ffff8801c765df00 ffffffff83cb0ea0 ffff8801c765e7f8 ffffffff84252000 ffff880158b66f98 ffffffff81408710 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<00000000ba383099>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ba383099>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<000000004002d671>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<000000004002d671>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<00000000f32a592b>] valid_state kernel/locking/lockdep.c:2400 [inline] [<00000000f32a592b>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<00000000f32a592b>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<000000007bf11088>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<000000007bf11088>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<00000000a2f957fa>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<00000000aca9dd12>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<000000006f5a3232>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<00000000dfe00d1d>] handle_lmk_event+0x169/0x920 drivers/staging/android/lowmemorykiller.c:116 [<0000000075e44319>] lowmem_scan+0x6f3/0xb70 drivers/staging/android/lowmemorykiller.c:354 [<00000000362a6ad0>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000362a6ad0>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000027b280ae>] shrink_slab mm/vmscan.c:466 [inline] [<0000000027b280ae>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000008a858cf8>] shrink_zones mm/vmscan.c:2751 [inline] [<000000008a858cf8>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000008a858cf8>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<000000007bed64ef>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<000000007bed64ef>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<000000007bed64ef>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<000000007bed64ef>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<00000000cddcda0e>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000cddcda0e>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000cddcda0e>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000cddcda0e>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<00000000cddcda0e>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<0000000064bc6f8a>] __vmalloc_node mm/vmalloc.c:1755 [inline] [<0000000064bc6f8a>] __vmalloc_node_flags mm/vmalloc.c:1769 [inline] [<0000000064bc6f8a>] vmalloc+0x5c/0x70 mm/vmalloc.c:1784 [<00000000889d2307>] xt_alloc_entry_offsets+0x44/0x50 net/netfilter/x_tables.c:758 [<000000002244e609>] translate_table+0x215/0x1650 net/ipv4/netfilter/ip_tables.c:705 [<0000000077a26a61>] do_replace net/ipv4/netfilter/ip_tables.c:1157 [inline] [<0000000077a26a61>] do_ipt_set_ctl+0x2d4/0x470 net/ipv4/netfilter/ip_tables.c:1693 [<000000007fb7258d>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<000000007fb7258d>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000ed9736cc>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<00000000ed9736cc>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<0000000086ce37ce>] tcp_setsockopt net/ipv4/tcp.c:2759 [inline] [<0000000086ce37ce>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2753 [<0000000014892a83>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000a924ba85>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000a924ba85>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<0000000073908ccc>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<000000002a61b44a>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor.5' (16361) (tgid 16361), adj 1000, to free 36012kB on behalf of 'syz-executor.3' (18367) because cache 57488kB is below limit 65536kB for oom_score_adj 12 Free memory is -13084kB above reserved lowmemorykiller: Killing 'syz-executor.3' (18705) (tgid 18705), adj 1000, to free 36008kB on behalf of 'syz-executor.3' (18367) because cache 53688kB is below limit 65536kB for oom_score_adj 12 Free memory is -13172kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15800) (tgid 15800), adj 1000, to free 36000kB on behalf of 'syz-executor.3' (18367) because cache 51788kB is below limit 65536kB for oom_score_adj 12 Free memory is -13200kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15853) (tgid 15853), adj 1000, to free 36000kB on behalf of 'syz-executor.3' (18367) because cache 51488kB is below limit 65536kB for oom_score_adj 12 Free memory is -13168kB above reserved lowmemorykiller: Killing 'syz-executor.4' (31685) (tgid 31685), adj 1000, to free 36000kB on behalf of 'syz-executor.3' (18367) because cache 51188kB is below limit 65536kB for oom_score_adj 12 Free memory is -13136kB above reserved lowmemorykiller: Killing 'syz-executor.4' (12701) (tgid 12701), adj 1000, to free 35996kB on behalf of 'syz-executor.3' (18367) because cache 50988kB is below limit 65536kB for oom_score_adj 12 Free memory is -13104kB above reserved lowmemorykiller: Killing 'syz-executor.4' (13140) (tgid 13140), adj 1000, to free 35988kB on behalf of 'syz-executor.3' (18367) because cache 50688kB is below limit 65536kB for oom_score_adj 12 Free memory is -13104kB above reserved lowmemorykiller: Killing 'syz-executor.4' (13232) (tgid 13232), adj 1000, to free 35988kB on behalf of 'kswapd0' (33) because cache 46996kB is below limit 65536kB for oom_score_adj 12 Free memory is -13088kB above reserved lowmemorykiller: Killing 'syz-executor.5' (16932) (tgid 16932), adj 1000, to free 35984kB on behalf of 'syz-executor.3' (18367) because cache 46096kB is below limit 65536kB for oom_score_adj 12 Free memory is -13136kB above reserved lowmemorykiller: Killing 'syz-executor.5' (18518) (tgid 18518), adj 1000, to free 35984kB on behalf of 'kswapd0' (33) because cache 46096kB is below limit 65536kB for oom_score_adj 12 Free memory is -12936kB above reserved lowmemorykiller: Killing 'syz-executor.5' (16157) (tgid 16157), adj 1000, to free 35980kB on behalf of 'syz-executor.3' (18367) because cache 45296kB is below limit 65536kB for oom_score_adj 12 Free memory is -13164kB above reserved lowmemorykiller: Killing 'syz-executor.5' (16157) (tgid 16157), adj 1000, to free 35980kB on behalf of 'kswapd0' (33) because cache 45296kB is below limit 65536kB for oom_score_adj 12 Free memory is -13036kB above reserved lowmemorykiller: Killing 'syz-executor.5' (17796) (tgid 17796), adj 1000, to free 35972kB on behalf of 'kswapd0' (33) because cache 44496kB is below limit 65536kB for oom_score_adj 12 Free memory is -12860kB above reserved lowmemorykiller: Killing 'syz-executor.5' (18630) (tgid 18630), adj 1000, to free 35972kB on behalf of 'kswapd0' (33) because cache 44496kB is below limit 65536kB for oom_score_adj 12 Free memory is -12560kB above reserved lowmemorykiller: Killing 'syz-executor.5' (17703) (tgid 17703), adj 1000, to free 35972kB on behalf of 'syz-executor.3' (18367) because cache 44496kB is below limit 65536kB for oom_score_adj 12 Free memory is -12960kB above reserved lowmemorykiller: Killing 'syz-executor.5' (13070) (tgid 13070), adj 1000, to free 35968kB on behalf of 'kswapd0' (33) because cache 44496kB is below limit 65536kB for oom_score_adj 12 Free memory is -12360kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15084) (tgid 15084), adj 1000, to free 35968kB on behalf of 'kswapd0' (33) because cache 44496kB is below limit 65536kB for oom_score_adj 12 Free memory is -11548kB above reserved lowmemorykiller: Killing 'syz-executor.5' (17900) (tgid 17900), adj 1000, to free 35968kB on behalf of 'kswapd0' (33) because cache 43796kB is below limit 65536kB for oom_score_adj 12 Free memory is -12784kB above reserved lowmemorykiller: Killing 'syz-executor.5' (16101) (tgid 16101), adj 1000, to free 35968kB on behalf of 'syz-executor.3' (18367) because cache 43796kB is below limit 65536kB for oom_score_adj 12 Free memory is -13084kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15294) (tgid 15294), adj 1000, to free 35964kB on behalf of 'syz-executor.3' (18367) because cache 43796kB is below limit 65536kB for oom_score_adj 12 Free memory is -13292kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15314) (tgid 15314), adj 1000, to free 35964kB on behalf of 'syz-executor.3' (18367) because cache 42996kB is below limit 65536kB for oom_score_adj 12 Free memory is -12992kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15463) (tgid 15463), adj 1000, to free 35964kB on behalf of 'syz-executor.3' (18367) because cache 42296kB is below limit 65536kB for oom_score_adj 12 Free memory is -13092kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15869) (tgid 15869), adj 1000, to free 35964kB on behalf of 'syz-executor.3' (18367) because cache 41596kB is below limit 65536kB for oom_score_adj 12 Free memory is -13092kB above reserved lowmemorykiller: Killing 'syz-executor.5' (16702) (tgid 16702), adj 1000, to free 35964kB on behalf of 'syz-executor.3' (18367) because cache 41096kB is below limit 65536kB for oom_score_adj 12 Free memory is -13244kB above reserved lowmemorykiller: Killing 'syz-executor.5' (16777) (tgid 16777), adj 1000, to free 35964kB on behalf of 'kswapd0' (33) because cache 30696kB is below limit 65536kB for oom_score_adj 12 Free memory is -12756kB above reserved lowmemorykiller: Killing 'syz-executor.5' (17338) (tgid 17338), adj 1000, to free 35964kB on behalf of 'kswapd0' (33) because cache 30296kB is below limit 65536kB for oom_score_adj 12 Free memory is -12884kB above reserved lowmemorykiller: Killing 'syz-executor.5' (17389) (tgid 17389), adj 1000, to free 35964kB on behalf of 'kswapd0' (33) because cache 30248kB is below limit 65536kB for oom_score_adj 12 Free memory is -12816kB above reserved lowmemorykiller: Killing 'syz-executor.5' (17650) (tgid 17650), adj 1000, to free 35964kB on behalf of 'kswapd0' (33) because cache 30248kB is below limit 65536kB for oom_score_adj 12 Free memory is -12716kB above reserved lowmemorykiller: Killing 'syz-executor.5' (17932) (tgid 17932), adj 1000, to free 35964kB on behalf of 'kswapd0' (33) because cache 30248kB is below limit 65536kB for oom_score_adj 12 Free memory is -12416kB above reserved lowmemorykiller: Killing 'syz-executor.5' (17098) (tgid 17098), adj 1000, to free 35964kB on behalf of 'syz-executor.3' (18367) because cache 30296kB is below limit 65536kB for oom_score_adj 12 Free memory is -13376kB above reserved lowmemorykiller: Killing 'syz-executor.5' (18262) (tgid 18262), adj 1000, to free 35964kB on behalf of 'kswapd0' (33) because cache 29548kB is below limit 65536kB for oom_score_adj 12 Free memory is -11096kB above reserved lowmemorykiller: Killing 'syz-executor.5' (18409) (tgid 18409), adj 1000, to free 35964kB on behalf of 'kswapd0' (33) because cache 28248kB is below limit 65536kB for oom_score_adj 12 Free memory is -9296kB above reserved lowmemorykiller: Killing 'syz-executor.5' (18565) (tgid 18565), adj 1000, to free 35964kB on behalf of 'kswapd0' (33) because cache 28248kB is below limit 65536kB for oom_score_adj 12 Free memory is -9296kB above reserved lowmemorykiller: Killing 'syz-executor.5' (18013) (tgid 18013), adj 1000, to free 35964kB on behalf of 'syz-executor.3' (18367) because cache 30048kB is below limit 65536kB for oom_score_adj 12 Free memory is -11596kB above reserved lowmemorykiller: Killing 'syz-executor.5' (13100) (tgid 13100), adj 1000, to free 35960kB on behalf of 'kswapd0' (33) because cache 26448kB is below limit 65536kB for oom_score_adj 12 Free memory is -7496kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15398) (tgid 15398), adj 1000, to free 35960kB on behalf of 'kswapd0' (33) because cache 26448kB is below limit 65536kB for oom_score_adj 12 Free memory is -11708kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15631) (tgid 15631), adj 1000, to free 35960kB on behalf of 'kswapd0' (33) because cache 26448kB is below limit 65536kB for oom_score_adj 12 Free memory is -13220kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15911) (tgid 15911), adj 1000, to free 35960kB on behalf of 'syz-executor.3' (18367) because cache 26248kB is below limit 65536kB for oom_score_adj 12 Free memory is -12500kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15911) (tgid 15911), adj 1000, to free 35960kB on behalf of 'kswapd0' (33) because cache 26248kB is below limit 65536kB for oom_score_adj 12 Free memory is -12500kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15992) (tgid 15992), adj 1000, to free 35960kB on behalf of 'syz-executor.3' (18367) because cache 26148kB is below limit 65536kB for oom_score_adj 12 Free memory is -13368kB above reserved lowmemorykiller: Killing 'syz-executor.5' (16680) (tgid 16680), adj 1000, to free 35960kB on behalf of 'syz-executor.3' (18367) because cache 24748kB is below limit 65536kB for oom_score_adj 12 Free memory is -11868kB above reserved lowmemorykiller: Killing 'syz-executor.5' (16753) (tgid 16753), adj 1000, to free 35960kB on behalf of 'syz-executor.3' (18367) because cache 24048kB is below limit 65536kB for oom_score_adj 12 Free memory is -12992kB above reserved lowmemorykiller: Killing 'syz-executor.5' (18227) (tgid 18227), adj 1000, to free 35960kB on behalf of 'kswapd0' (33) because cache 22348kB is below limit 65536kB for oom_score_adj 12 Free memory is -11360kB above reserved lowmemorykiller: Killing 'syz-executor.5' (15442) (tgid 15442), adj 1000, to free 35956kB on behalf of 'kswapd0' (33) because cache 22348kB is below limit 65536kB for oom_score_adj 12 Free memory is -11060kB above reserved lowmemorykiller: Killing 'syz-executor.5' (16127) (tgid 16127), adj 1000, to free 35956kB on behalf of 'syz-executor.3' (18367) because cache 20148kB is below limit 65536kB for oom_score_adj 12 Free memory is -13252kB above reserved lowmemorykiller: Killing 'syz-executor.5' (16739) (tgid 16739), adj 1000, to free 35956kB on behalf of 'syz-executor.3' (18367) because cache 19348kB is below limit 65536kB for oom_score_adj 12 Free memory is -13124kB above reserved lowmemorykiller: Killing 'syz-executor.5' (17037) (tgid 17037), adj 1000, to free 35956kB on behalf of 'syz-executor.3' (18367) because cache 18648kB is below limit 65536kB for oom_score_adj 12 Free memory is -13368kB above reserved lowmemorykiller: Killing 'syz-executor.5' (17407) (tgid 17407), adj 1000, to free 35956kB on behalf of 'syz-executor.3' (18367) because cache 18148kB is below limit 65536kB for oom_score_adj 12 Free memory is -12968kB above reserved lowmemorykiller: Killing 'syz-executor.5' (17497) (tgid 17497), adj 1000, to free 35956kB on behalf of 'kswapd0' (33) because cache 14348kB is below limit 16384kB for oom_score_adj 6 Free memory is -8992kB above reserved lowmemorykiller: Killing 'syz-executor.5' (18458) (tgid 18458), adj 1000, to free 35956kB on behalf of 'kswapd0' (33) because cache 14348kB is below limit 16384kB for oom_score_adj 6 Free memory is -8992kB above reserved [10317] 0 10317 18212 8715 26 3 0 1000 syz-executor.4 [10292] 0 10292 18212 8719 27 3 0 1000 syz-executor.4 [10313] 0 10313 18179 8713 25 3 0 1000 syz-executor.4 [10317] 0 10317 18212 8715 26 3 0 1000 syz-executor.4 [10321] 0 10321 18146 8701 24 3 0 1000 syz-executor.1 [10346] 0 10346 18212 8715 26 3 0 1000 syz-executor.4 [10348] 0 10348 18146 8701 24 3 0 1000 syz-executor.1 [10358] 0 10358 18278 8719 26 3 0 1000 syz-executor.4 [10209] 0 10209 18245 8717 26 3 0 1000 syz-executor.4 [10239] 0 10239 18179 8713 25 3 0 1000 syz-executor.4 [10251] 0 10251 18212 8715 26 3 0 1000 syz-executor.4 [10279] 0 10279 18179 8716 26 3 0 1000 syz-executor.4 [10313] 0 10313 18179 8713 25 3 0 1000 syz-executor.4 [10317] 0 10317 18212 8715 26 3 0 1000 syz-executor.4 [10321] 0 10321 18146 8701 24 3 0 1000 syz-executor.1 [10093] 0 10093 18179 8713 25 3 0 1000 syz-executor.4 [10105] 0 10105 18245 8717 26 3 0 1000 syz-executor.4 [10133] 0 10133 18212 8715 26 3 0 1000 syz-executor.4 [10138] 0 10138 18212 8716 26 3 0 1000 syz-executor.4 [10155] 0 10155 18146 8743 26 4 0 1000 syz-executor.1 [10162] 0 10162 18179 8713 25 3 0 1000 syz-executor.4 [10174] 0 10174 18245 8717 26 3 0 1000 syz-executor.4 [10450] 0 10450 18212 8715 26 3 0 1000 syz-executor.4 [10471] 0 10471 18179 8713 25 3 0 1000 syz-executor.4 [10495] 0 10495 18245 8718 26 3 0 1000 syz-executor.4 [10545] 0 10545 18179 8715 25 3 0 1000 syz-executor.4 [10550] 0 10550 18245 8719 26 3 0 1000 syz-executor.4 [10566] 0 10566 18146 8711 25 3 0 1000 syz-executor.4 [10569] 0 10569 18212 8715 26 3 0 1000 syz-executor.4