lowmemorykiller: Killing 'syz-executor.5' (1547) (tgid 1547), adj 1000, to free 51972kB on behalf of 'syz-executor.4' (16426) because cache 64780kB is below limit 65536kB for oom_score_adj 12 Free memory is -13112kB above reserved ================================= [ INFO: inconsistent lock state ] 4.9.194+ #0 Not tainted --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. syz-executor.4/16426 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<000000002499bcfb>] 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: 1780199 hardirqs last enabled at (1780199): [<000000008d83f710>] vprintk_emit+0x25c/0x6f0 kernel/printk/printk.c:1897 hardirqs last disabled at (1780198): [<00000000d2642c1e>] vprintk_emit+0x6d/0x6f0 kernel/printk/printk.c:1801 softirqs last enabled at (1769582): [<000000004402f21e>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (1769561): [<0000000051e12661>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (1769561): [<0000000051e12661>] 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.4/16426: #0: (shrinker_rwsem){++++..}, at: [<00000000ad699fca>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 stack backtrace: CPU: 0 PID: 16426 Comm: syz-executor.4 Not tainted 4.9.194+ #0 ffff8801b178ed90 ffffffff81b67001 00000000000000f0 ffff88019922df00 ffffffff83cb0b40 ffff88019922e7f8 ffffffff84252000 ffff8801b178ee08 ffffffff81408710 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<0000000088f15ddf>] __dump_stack lib/dump_stack.c:15 [inline] [<0000000088f15ddf>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000b2895bfb>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<00000000b2895bfb>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<0000000072b5f8ea>] valid_state kernel/locking/lockdep.c:2400 [inline] [<0000000072b5f8ea>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<0000000072b5f8ea>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<00000000a6599cdd>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<00000000a6599cdd>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<00000000182929d0>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<000000008aebe7c1>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<000000002499bcfb>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<00000000adced8c4>] handle_lmk_event+0x169/0x920 drivers/staging/android/lowmemorykiller.c:116 [<0000000067baca98>] lowmem_scan+0x6f3/0xb70 drivers/staging/android/lowmemorykiller.c:354 [<000000001e95c9b5>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000001e95c9b5>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000c0f0bd5f>] shrink_slab mm/vmscan.c:466 [inline] [<00000000c0f0bd5f>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000a7477591>] shrink_zones mm/vmscan.c:2751 [inline] [<00000000a7477591>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<00000000a7477591>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<000000009e1035ac>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<000000009e1035ac>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<000000009e1035ac>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<000000009e1035ac>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<00000000a0aea1cc>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000a0aea1cc>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000a0aea1cc>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000a0aea1cc>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<00000000a0aea1cc>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<000000008621152e>] __vmalloc_node mm/vmalloc.c:1755 [inline] [<000000008621152e>] __vmalloc_node_flags mm/vmalloc.c:1769 [inline] [<000000008621152e>] vmalloc+0x5c/0x70 mm/vmalloc.c:1784 [<000000000de95500>] xt_alloc_entry_offsets+0x44/0x50 net/netfilter/x_tables.c:758 [<00000000fd88f3d7>] translate_table+0x2c7/0x1bd0 net/ipv4/netfilter/arp_tables.c:552 [<00000000d24d4af8>] do_replace.isra.0+0x1e9/0x480 net/ipv4/netfilter/arp_tables.c:990 [<000000005d1ecc16>] do_arpt_set_ctl+0x108/0x150 net/ipv4/netfilter/arp_tables.c:1469 [<000000008f9e9bc4>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<000000008f9e9bc4>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<000000005a6062c9>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<000000005a6062c9>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<00000000b4308cef>] udp_setsockopt+0x4e/0x90 net/ipv4/udp.c:2114 [<00000000628428eb>] ipv6_setsockopt+0xa4/0x140 net/ipv6/ipv6_sockglue.c:912 [<0000000019558e05>] tcp_setsockopt net/ipv4/tcp.c:2759 [inline] [<0000000019558e05>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2753 [<0000000067fbc194>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<0000000056dad8ea>] SYSC_setsockopt net/socket.c:1786 [inline] [<0000000056dad8ea>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<000000006d613c0d>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<0000000097efc47d>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor.5' (2682) (tgid 2682), adj 1000, to free 51852kB on behalf of 'kswapd0' (33) because cache 64280kB is below limit 65536kB for oom_score_adj 12 Free memory is -5912kB above reserved lowmemorykiller: Killing 'syz-executor.1' (26389) (tgid 26389), adj 1000, to free 51384kB on behalf of 'syz-executor.4' (16426) because cache 64280kB is below limit 65536kB for oom_score_adj 12 Free memory is -5212kB above reserved lowmemorykiller: Killing 'syz-executor.5' (32631) (tgid 32631), adj 1000, to free 51372kB on behalf of 'syz-executor.4' (16426) because cache 64280kB is below limit 65536kB for oom_score_adj 12 Free memory is 27088kB above reserved lowmemorykiller: Killing 'syz-executor.5' (32672) (tgid 32672), adj 1000, to free 51372kB on behalf of 'syz-executor.4' (16426) because cache 63980kB is below limit 65536kB for oom_score_adj 12 Free memory is 59980kB above reserved lowmemorykiller: Killing 'syz-executor.2' (1620) (tgid 1620), adj 1000, to free 51120kB on behalf of 'syz-executor.4' (16426) because cache 63480kB is below limit 65536kB for oom_score_adj 12 Free memory is -13076kB above reserved lowmemorykiller: Killing 'syz-executor.2' (12966) (tgid 12966), adj 1000, to free 50948kB on behalf of 'syz-executor.4' (16426) because cache 61580kB is below limit 65536kB for oom_score_adj 12 Free memory is -12584kB above reserved lowmemorykiller: Killing 'syz-executor.3' (4674) (tgid 4674), adj 1000, to free 47696kB on behalf of 'syz-executor.4' (16426) because cache 61280kB is below limit 65536kB for oom_score_adj 12 Free memory is -13188kB above reserved input: syz1 as /devices/virtual/input/input1038 input: syz1 as /devices/virtual/input/input1039 input: syz1 as /devices/virtual/input/input1040 input: syz1 as /devices/virtual/input/input1041 lowmemorykiller: Killing 'syz-executor.5' (8690) (tgid 8690), adj 1000, to free 47692kB on behalf of 'kswapd0' (33) because cache 61168kB is below limit 65536kB for oom_score_adj 12 Free memory is -7412kB above reserved lowmemorykiller: Killing 'syz-executor.5' (8690) (tgid 8690), adj 1000, to free 47692kB on behalf of 'syz-executor.4' (16547) because cache 60968kB is below limit 65536kB for oom_score_adj 12 Free memory is -13164kB above reserved lowmemorykiller: Killing 'syz-executor.4' (28422) (tgid 28422), adj 1000, to free 47520kB on behalf of 'syz-executor.4' (16547) because cache 52868kB is below limit 65536kB for oom_score_adj 12 Free memory is -8064kB above reserved lowmemorykiller: Killing 'syz-executor.3' (3893) (tgid 3893), adj 1000, to free 47428kB on behalf of 'syz-executor.4' (16547) because cache 52568kB is below limit 65536kB for oom_score_adj 12 Free memory is -13156kB above reserved lowmemorykiller: Killing 'syz-executor.3' (13567) (tgid 13567), adj 1000, to free 46904kB on behalf of 'syz-executor.4' (16547) because cache 52268kB is below limit 65536kB for oom_score_adj 12 Free memory is -13024kB above reserved lowmemorykiller: Killing 'syz-executor.1' (13138) (tgid 13138), adj 1000, to free 46864kB on behalf of 'syz-executor.4' (16547) because cache 51968kB is below limit 65536kB for oom_score_adj 12 Free memory is -13124kB above reserved lowmemorykiller: Killing 'syz-executor.5' (29786) (tgid 29786), adj 1000, to free 46664kB on behalf of 'syz-executor.4' (16547) because cache 48768kB is below limit 65536kB for oom_score_adj 12 Free memory is -13108kB above reserved lowmemorykiller: Killing 'syz-executor.1' (14304) (tgid 14304), adj 1000, to free 46432kB on behalf of 'syz-executor.4' (16547) because cache 48768kB is below limit 65536kB for oom_score_adj 12 Free memory is -12360kB above reserved lowmemorykiller: Killing 'syz-executor.1' (13912) (tgid 13912), adj 1000, to free 46188kB on behalf of 'syz-executor.4' (16547) because cache 48668kB is below limit 65536kB for oom_score_adj 12 Free memory is 39840kB above reserved lowmemorykiller: Killing 'syz-executor.3' (3926) (tgid 3926), adj 1000, to free 46120kB on behalf of 'syz-executor.4' (16547) because cache 48668kB is below limit 65536kB for oom_score_adj 12 Free memory is 41540kB above reserved lowmemorykiller: Killing 'syz-executor.3' (5007) (tgid 5007), adj 1000, to free 46000kB on behalf of 'syz-executor.4' (16547) because cache 48368kB is below limit 65536kB for oom_score_adj 12 Free memory is -13168kB above reserved lowmemorykiller: Killing 'syz-executor.3' (1242) (tgid 1242), adj 1000, to free 45848kB on behalf of 'syz-executor.4' (16547) because cache 48268kB is below limit 65536kB for oom_score_adj 12 Free memory is -2668kB above reserved lowmemorykiller: Killing 'syz-executor.5' (8782) (tgid 8782), adj 1000, to free 45608kB on behalf of 'syz-executor.4' (16547) because cache 42868kB is below limit 65536kB for oom_score_adj 12 Free memory is -13068kB above reserved lowmemorykiller: Killing 'syz-executor.3' (1194) (tgid 1194), adj 1000, to free 45468kB on behalf of 'syz-executor.4' (16547) because cache 42768kB is below limit 65536kB for oom_score_adj 12 Free memory is -13228kB above reserved lowmemorykiller: Killing 'syz-executor.5' (32446) (tgid 32446), adj 1000, to free 45380kB on behalf of 'syz-executor.4' (16547) because cache 42668kB is below limit 65536kB for oom_score_adj 12 Free memory is -11404kB above reserved lowmemorykiller: Killing 'syz-executor.5' (32756) (tgid 32756), adj 1000, to free 45368kB on behalf of 'syz-executor.4' (16547) because cache 42468kB is below limit 65536kB for oom_score_adj 12 Free memory is 4296kB above reserved lowmemorykiller: Killing 'syz-executor.5' (13314) (tgid 13314), adj 1000, to free 45336kB on behalf of 'syz-executor.4' (16547) because cache 42468kB is below limit 65536kB for oom_score_adj 12 Free memory is 8596kB above reserved lowmemorykiller: Killing 'syz-executor.5' (12867) (tgid 12867), adj 1000, to free 44900kB on behalf of 'syz-executor.4' (16547) because cache 42468kB is below limit 65536kB for oom_score_adj 12 Free memory is -13292kB above reserved lowmemorykiller: Killing 'syz-executor.2' (12238) (tgid 12238), adj 1000, to free 44644kB on behalf of 'syz-executor.4' (16547) because cache 42368kB is below limit 65536kB for oom_score_adj 12 Free memory is 42408kB above reserved lowmemorykiller: Killing 'syz-executor.2' (944) (tgid 944), adj 1000, to free 44552kB on behalf of 'syz-executor.4' (16547) because cache 42260kB is below limit 65536kB for oom_score_adj 12 Free memory is -12368kB above reserved lowmemorykiller: Killing 'syz-executor.2' (6629) (tgid 6629), adj 1000, to free 44320kB on behalf of 'syz-executor.4' (16547) because cache 42260kB is below limit 65536kB for oom_score_adj 12 Free memory is -10268kB above reserved lowmemorykiller: Killing 'syz-executor.3' (29964) (tgid 29964), adj 1000, to free 44288kB on behalf of 'syz-executor.4' (16547) because cache 42160kB is below limit 65536kB for oom_score_adj 12 Free memory is -10268kB above reserved lowmemorykiller: Killing 'syz-executor.3' (4933) (tgid 4933), adj 1000, to free 44280kB on behalf of 'syz-executor.4' (16547) because cache 42160kB is below limit 65536kB for oom_score_adj 12 Free memory is -13204kB above reserved lowmemorykiller: Killing 'syz-executor.5' (14238) (tgid 14238), adj 1000, to free 44100kB on behalf of 'syz-executor.4' (16547) because cache 41860kB is below limit 65536kB for oom_score_adj 12 Free memory is -4392kB above reserved lowmemorykiller: Killing 'syz-executor.5' (12213) (tgid 12213), adj 1000, to free 43964kB on behalf of 'syz-executor.4' (16547) because cache 41860kB is below limit 65536kB for oom_score_adj 12 Free memory is 21420kB above reserved input: syz1 as /devices/virtual/input/input1042 input: syz1 as /devices/virtual/input/input1043 input: syz1 as /devices/virtual/input/input1044 input: syz1 as /devices/virtual/input/input1045 input: syz1 as /devices/virtual/input/input1046 input: syz1 as /devices/virtual/input/input1047 input: syz1 as /devices/virtual/input/input1048