lowmemorykiller: Killing 'syz-executor.2' (3507) (tgid 3507), adj 1000, to free 36156kB on behalf of 'syz-executor.0' (19042) because cache 60700kB is below limit 65536kB for oom_score_adj 12 Free memory is -12556kB above reserved ================================= [ INFO: inconsistent lock state ] 4.9.194+ #0 Not tainted --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. syz-executor.0/19042 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<00000000badd4eb0>] 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: 1900777 hardirqs last enabled at (1900777): [<00000000a8b3b618>] vprintk_emit+0x25c/0x6f0 kernel/printk/printk.c:1897 hardirqs last disabled at (1900776): [<00000000a2d457cf>] vprintk_emit+0x6d/0x6f0 kernel/printk/printk.c:1801 softirqs last enabled at (1886776): [<00000000f703edf0>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (1886759): [<00000000be870adf>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (1886759): [<00000000be870adf>] 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.0/19042: #0: (shrinker_rwsem){++++..}, at: [<000000009f30b5c9>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 stack backtrace: CPU: 0 PID: 19042 Comm: syz-executor.0 Not tainted 4.9.194+ #0 ffff8801cb466f20 ffffffff81b67001 00000000000000f0 ffff8801d856af80 ffffffff83cb0b40 ffff8801d856b878 ffffffff84252000 ffff8801cb466f98 ffffffff81408710 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<000000008ad02be9>] __dump_stack lib/dump_stack.c:15 [inline] [<000000008ad02be9>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<000000007562af85>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<000000007562af85>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<00000000ed3d9364>] valid_state kernel/locking/lockdep.c:2400 [inline] [<00000000ed3d9364>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<00000000ed3d9364>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<00000000f475adef>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<00000000f475adef>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<00000000e4cd9b7a>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<000000001eb8e191>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<00000000badd4eb0>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<000000004104c5e3>] handle_lmk_event+0x169/0x920 drivers/staging/android/lowmemorykiller.c:116 [<000000000afbe912>] lowmem_scan+0x6f3/0xb70 drivers/staging/android/lowmemorykiller.c:354 [<000000005c4b52a6>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000005c4b52a6>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000040b724bb>] shrink_slab mm/vmscan.c:466 [inline] [<0000000040b724bb>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000002ae81777>] shrink_zones mm/vmscan.c:2751 [inline] [<000000002ae81777>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000002ae81777>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<0000000047a4039d>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<0000000047a4039d>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<0000000047a4039d>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<0000000047a4039d>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<00000000f4f4be4e>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000f4f4be4e>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000f4f4be4e>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000f4f4be4e>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<00000000f4f4be4e>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<00000000f3a106e8>] __vmalloc_node mm/vmalloc.c:1755 [inline] [<00000000f3a106e8>] __vmalloc_node_flags mm/vmalloc.c:1769 [inline] [<00000000f3a106e8>] vmalloc+0x5c/0x70 mm/vmalloc.c:1784 [<000000001f87bd4e>] xt_alloc_entry_offsets+0x44/0x50 net/netfilter/x_tables.c:758 [<00000000357cc81b>] translate_table+0x215/0x16c0 net/ipv6/netfilter/ip6_tables.c:733 [<00000000b1b772b6>] do_replace net/ipv6/netfilter/ip6_tables.c:1186 [inline] [<00000000b1b772b6>] do_ip6t_set_ctl+0x2d4/0x480 net/ipv6/netfilter/ip6_tables.c:1712 [<00000000147b5129>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000147b5129>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<0000000059d88672>] ipv6_setsockopt net/ipv6/ipv6_sockglue.c:922 [inline] [<0000000059d88672>] ipv6_setsockopt+0x10b/0x140 net/ipv6/ipv6_sockglue.c:906 [<000000006d8529a5>] tcp_setsockopt net/ipv4/tcp.c:2759 [inline] [<000000006d8529a5>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2753 [<00000000a2c0ce11>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000a223c23f>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000a223c23f>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<000000008725d2be>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000e6a78c70>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor.0' (19038) (tgid 19036), adj 1000, to free 35968kB on behalf of 'syz-executor.0' (19042) because cache 52700kB is below limit 65536kB for oom_score_adj 12 Free memory is -13076kB above reserved lowmemorykiller: Killing 'syz-executor.0' (19038) (tgid 19036), adj 1000, to free 34996kB on behalf of 'syz-fuzzer' (2036) because cache 188kB is below limit 6144kB for oom_score_adj 0 Free memory is -13488kB above reserved lowmemorykiller: Killing 'syz-executor.0' (19038) (tgid 19036), adj 1000, to free 34996kB on behalf of 'syz-executor.0' (19042) because cache 188kB is below limit 6144kB for oom_score_adj 0 Free memory is -13488kB above reserved syz-executor.0 invoked oom-killer: gfp_mask=0x24002c2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN), nodemask=0, order=0, oom_score_adj=1000 lowmemorykiller: Killing 'syz-executor.0' (19038) (tgid 19036), adj 1000, to free 34996kB on behalf of 'rsyslogd' (1894) because cache 264kB is below limit 6144kB for oom_score_adj 0 Free memory is -13444kB above reserved lowmemorykiller: Killing 'syz-executor.0' (19038) (tgid 19036), adj 1000, to free 34996kB on behalf of 'kswapd0' (33) because cache 264kB is below limit 6144kB for oom_score_adj 0 Free memory is -13444kB above reserved CPU: 0 PID: 19038 Comm: syz-executor.0 Not tainted 4.9.194+ #0 ffff8801cb64f5f0 ffffffff81b67001 ffff8801cb64f948 ffffffff833f1c30 00000000000003e8 ffff8801cb64f960 0000000000000000 ffff8801cb64f670 ffffffff81506e44 0000000000000000 00000000000003e8 ffffffff8282ac45 Call Trace: [<000000008ad02be9>] __dump_stack lib/dump_stack.c:15 [inline] [<000000008ad02be9>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<000000006c1377f7>] dump_header.isra.0+0x142/0x74c mm/oom_kill.c:417 [<0000000016cbb9ef>] oom_kill_process.cold+0xd/0xa74 mm/oom_kill.c:852 [<00000000f40396bf>] out_of_memory mm/oom_kill.c:1069 [inline] [<00000000f40396bf>] out_of_memory+0x29b/0xea0 mm/oom_kill.c:1009 [<0000000001ee7799>] __alloc_pages_may_oom mm/page_alloc.c:3136 [inline] [<0000000001ee7799>] __alloc_pages_slowpath mm/page_alloc.c:3750 [inline] [<0000000001ee7799>] __alloc_pages_nodemask+0x1730/0x1a80 mm/page_alloc.c:3861 [<00000000f4f4be4e>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000f4f4be4e>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000f4f4be4e>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000f4f4be4e>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<00000000f4f4be4e>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<00000000f3a106e8>] __vmalloc_node mm/vmalloc.c:1755 [inline] [<00000000f3a106e8>] __vmalloc_node_flags mm/vmalloc.c:1769 [inline] [<00000000f3a106e8>] vmalloc+0x5c/0x70 mm/vmalloc.c:1784 [<000000001f87bd4e>] xt_alloc_entry_offsets+0x44/0x50 net/netfilter/x_tables.c:758 [<00000000357cc81b>] translate_table+0x215/0x16c0 net/ipv6/netfilter/ip6_tables.c:733 [<00000000b1b772b6>] do_replace net/ipv6/netfilter/ip6_tables.c:1186 [inline] [<00000000b1b772b6>] do_ip6t_set_ctl+0x2d4/0x480 net/ipv6/netfilter/ip6_tables.c:1712 [<00000000147b5129>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000147b5129>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<0000000059d88672>] ipv6_setsockopt net/ipv6/ipv6_sockglue.c:922 [inline] [<0000000059d88672>] ipv6_setsockopt+0x10b/0x140 net/ipv6/ipv6_sockglue.c:906 [<000000006d8529a5>] tcp_setsockopt net/ipv4/tcp.c:2759 [inline] [<000000006d8529a5>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2753 [<00000000a2c0ce11>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000a223c23f>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000a223c23f>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<000000008725d2be>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000e6a78c70>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor.0' (19038) (tgid 19036), adj 1000, to free 34996kB on behalf of 'getty' (18814) because cache 264kB is below limit 6144kB for oom_score_adj 0 Free memory is -13444kB above reserved lowmemorykiller: Killing 'syz-executor.0' (19038) (tgid 19036), adj 1000, to free 34996kB on behalf of 'init' (1) because cache 264kB is below limit 6144kB for oom_score_adj 0 Free memory is -13444kB above reserved lowmemorykiller: Killing 'syz-executor.0' (19038) (tgid 19036), adj 1000, to free 34996kB on behalf of 'getty' (18811) because cache 264kB is below limit 6144kB for oom_score_adj 0 Free memory is -13444kB above reserved lowmemorykiller: Killing 'syz-executor.0' (19038) (tgid 19036), adj 1000, to free 34996kB on behalf of 'syz-executor.0' (2082) because cache 264kB is below limit 6144kB for oom_score_adj 0 Free memory is -13444kB above reserved Mem-Info: active_anon:61850 inactive_anon:35 isolated_anon:0 active_file:29 inactive_file:31 isolated_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:9401 slab_unreclaimable:56107 mapped:52244 shmem:43 pagetables:3386 bounce:0 free:6015 free_pcp:60 free_cma:0 Node 0 active_anon:247400kB inactive_anon:140kB active_file:116kB inactive_file:124kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:208976kB dirty:0kB writeback:0kB shmem:172kB writeback_tmp:0kB unstable:0kB pages_scanned:10 all_unreclaimable? yes DMA32 free:18632kB min:4696kB low:7712kB high:10728kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:4kB unevictable:0kB writepending:0kB present:3145324kB managed:3020092kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:120kB local_pcp:120kB free_cma:0kB Normal free:5428kB min:5580kB low:9168kB high:12756kB active_anon:247400kB inactive_anon:140kB active_file:116kB inactive_file:120kB unevictable:0kB writepending:0kB present:4718592kB managed:3589312kB mlocked:0kB slab_reclaimable:37604kB slab_unreclaimable:224428kB kernel_stack:7040kB pagetables:13544kB bounce:0kB free_pcp:120kB local_pcp:120kB free_cma:0kB DMA32: 0*4kB 1*8kB (M) 2*16kB (UM) 1*32kB (U) 0*64kB 3*128kB (M) 3*256kB (M) 2*512kB (UM) 2*1024kB (M) 1*2048kB (M) 3*4096kB (M) = 18632kB 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 313628 pages reserved [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name [ 470] 0 470 5384 181 17 3 0 -1000 udevd [ 1760] 0 1760 2492 574 9 3 0 0 dhclient [ 1891] 0 1891 14231 108 23 3 0 0 rsyslogd [ 1930] 0 1930 4724 50 15 3 0 0 cron [ 1961] 0 1961 3735 61 11 3 0 0 mcstransd [ 1966] 0 1966 12926 1230 27 4 0 0 restorecond [ 1992] 0 1992 12489 152 28 3 0 -1000 sshd [ 2022] 0 2022 3648 40 13 3 0 0 getty [ 2032] 0 2032 17820 197 40 3 0 0 sshd [ 2034] 0 2034 92352 55649 143 5 0 0 syz-fuzzer [ 2073] 0 2073 18114 16 23 3 0 0 syz-executor.0 [ 2074] 0 2074 18114 16 23 3 0 0 syz-executor.1 [ 2077] 0 2077 18114 16 23 3 0 0 syz-executor.2 [ 2082] 0 2082 18113 8731 24 4 0 0 syz-executor.0 [ 2083] 0 2083 18113 8730 24 4 0 0 syz-executor.2 [ 2085] 0 2085 18113 8730 24 4 0 0 syz-executor.1 [ 4158] 0 4158 18114 15 23 4 0 0 syz-executor.4 [ 4159] 0 4159 18113 8730 24 5 0 0 syz-executor.4 [ 5186] 0 5186 5562 368 16 3 0 -1000 udevd [ 5259] 0 5259 18114 16 23 3 0 0 syz-executor.3 [ 5260] 0 5260 18113 8730 24 4 0 0 syz-executor.3 [ 6909] 0 6909 5397 179 15 3 0 -1000 udevd [ 9611] 0 9611 18146 8741 25 4 0 1000 syz-executor.2 [ 9623] 0 9623 18146 8741 25 4 0 1000 syz-executor.2 [ 9628] 0 9628 18146 8741 25 4 0 1000 syz-executor.2 [10120] 0 10120 18146 8739 25 4 0 1000 syz-executor.3 [10395] 0 10395 18146 8741 25 4 0 1000 syz-executor.1 [10407] 0 10407 18146 8741 25 4 0 1000 syz-executor.1 [10410] 0 10410 18146 8741 25 4 0 1000 syz-executor.1 [10415] 0 10415 18146 8741 25 4 0 1000 syz-executor.1 [10432] 0 10432 18146 8741 25 4 0 1000 syz-executor.1 [10480] 0 10480 18146 8701 24 3 0 1000 syz-executor.1 [10502] 0 10502 18146 8701 24 3 0 1000 syz-executor.1 [10525] 0 10525 18146 8701 24 3 0 1000 syz-executor.1 [10547] 0 10547 18146 8741 25 4 0 1000 syz-executor.1 [10563] 0 10563 18146 8741 25 4 0 1000 syz-executor.1 [10595] 0 10595 18146 8741 25 4 0 1000 syz-executor.1 [10611] 0 10611 18146 8741 25 4 0 1000 syz-executor.1 [10627] 0 10627 18146 8741 25 4 0 1000 syz-executor.1 [10640] 0 10640 18146 8741 25 4 0 1000 syz-executor.1 [10650] 0 10650 18146 8741 25 4 0 1000 syz-executor.1 [12561] 0 12561 18146 8742 26 4 0 1000 syz-executor.0 [12844] 0 12844 18114 16 23 3 0 0 syz-executor.5 [12845] 0 12845 18113 8728 24 4 0 0 syz-executor.5 [14474] 0 14474 18146 8741 25 4 0 1000 syz-executor.3 [14883] 0 14883 18179 8744 26 4 0 1000 syz-executor.2 [14901] 0 14901 18146 8741 25 4 0 1000 syz-executor.2 [14908] 0 14908 18146 8741 25 4 0 1000 syz-executor.2 [14912] 0 14912 18146 8741 25 4 0 1000 syz-executor.2 [14921] 0 14921 18146 8741 25 4 0 1000 syz-executor.2 [14926] 0 14926 18146 8741 25 4 0 1000 syz-executor.2 [14960] 0 14960 18146 8741 25 4 0 1000 syz-executor.2 [15026] 0 15026 18146 8742 26 4 0 1000 syz-executor.3 [15048] 0 15048 18146 8701 24 3 0 1000 syz-executor.2 [15066] 0 15066 18146 8701 24 3 0 1000 syz-executor.2 [15089] 0 15089 18146 8701 24 3 0 1000 syz-executor.2 [15091] 0 15091 18146 8701 24 3 0 1000 syz-executor.3 [15099] 0 15099 18146 8741 25 4 0 1000 syz-executor.2 [15103] 0 15103 18146 8741 25 4 0 1000 syz-executor.2 [15107] 0 15107 18146 8741 25 4 0 1000 syz-executor.2 [15110] 0 15110 18146 8741 25 4 0 1000 syz-executor.2 [15115] 0 15115 18146 8741 25 4 0 1000 syz-executor.2 [15119] 0 15119 18146 8741 25 4 0 1000 syz-executor.2 [15126] 0 15126 18146 8741 25 4 0 1000 syz-executor.2 [15129] 0 15129 18146 8741 25 4 0 1000 syz-executor.2 [15141] 0 15141 18146 8701 24 3 0 1000 syz-executor.3 [15142] 0 15142 18146 8741 25 4 0 1000 syz-executor.2 [15175] 0 15175 18146 8701 24 3 0 1000 syz-executor.3 [15195] 0 15195 18146 8701 24 3 0 1000 syz-executor.3