lowmemorykiller: Killing 'syz-executor.3' (18345) (tgid 18345), adj 1000, to free 35964kB on behalf of 'syz-executor.3' (22619) because cache 58044kB is below limit 65536kB for oom_score_adj 12 Free memory is -13000kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:905 in_atomic(): 0, irqs_disabled(): 0, pid: 22619, name: syz-executor.3 2 locks held by syz-executor.3/22619: #0: (shrinker_rwsem){++++..}, at: [<00000000e8892d6c>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<00000000a5a9f839>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 Preemption disabled at: [<00000000375684d5>] spin_lock include/linux/spinlock.h:302 [inline] [<00000000375684d5>] task_lock include/linux/sched.h:3217 [inline] [<00000000375684d5>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 0 PID: 22619 Comm: syz-executor.3 Not tainted 4.9.189+ #21 ffff88019738f408 ffffffff81b65c01 0000000000000000 0000000000000001 ffff8801c7ab8000 ffffffff810d1010 ffff8801c7ab8000 ffff88019738f440 ffffffff814018f3 ffff8801c7ab8000 ffffffff82a39fc0 0000000000000389 Call Trace: [<000000004043e42e>] __dump_stack lib/dump_stack.c:15 [inline] [<000000004043e42e>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000e8490bfa>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<00000000bd072993>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<00000000f383075c>] mmput+0x28/0x370 kernel/fork.c:905 [<00000000c31df7d9>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<000000006aa14596>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<0000000022269d71>] do_shrink_slab mm/vmscan.c:399 [inline] [<0000000022269d71>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<000000007817fc62>] shrink_slab mm/vmscan.c:466 [inline] [<000000007817fc62>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000842f50cd>] shrink_zones mm/vmscan.c:2751 [inline] [<00000000842f50cd>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<00000000842f50cd>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000dd4d3d80>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000dd4d3d80>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000dd4d3d80>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000dd4d3d80>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<00000000e3c3473c>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000e3c3473c>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000e3c3473c>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000e3c3473c>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<00000000e3c3473c>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<00000000b4381565>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<00000000b4381565>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<00000000b4381565>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<00000000008f4595>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<0000000071b5f24a>] do_replace net/ipv6/netfilter/ip6_tables.c:1175 [inline] [<0000000071b5f24a>] do_ip6t_set_ctl+0x231/0x480 net/ipv6/netfilter/ip6_tables.c:1712 [<000000003f447b87>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<000000003f447b87>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<0000000022db8410>] ipv6_setsockopt net/ipv6/ipv6_sockglue.c:922 [inline] [<0000000022db8410>] ipv6_setsockopt+0x10b/0x140 net/ipv6/ipv6_sockglue.c:906 [<00000000fcd95ac0>] tcp_setsockopt net/ipv4/tcp.c:2759 [inline] [<00000000fcd95ac0>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2753 [<000000009f600d9a>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000fc180983>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000fc180983>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<0000000004dae9aa>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<0000000044bda7c2>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor.3' (18369) (tgid 18369), adj 1000, to free 35964kB on behalf of 'syz-executor.3' (22619) because cache 56244kB is below limit 65536kB for oom_score_adj 12 Free memory is -13072kB above reserved ================================= [ INFO: inconsistent lock state ] 4.9.189+ #21 Tainted: G W --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. syz-executor.3/22619 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<000000000d9a65c9>] 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 s