lowmemorykiller: Killing 'syz-executor470' (2059) (tgid 2059), adj 1000, to free 44kB on behalf of 'syz-executor470' (2068) because cache 33736kB is below limit 65536kB for oom_score_adj 12 Free memory is -13624kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:903 in_atomic(): 0, irqs_disabled(): 0, pid: 2068, name: syz-executor470 2 locks held by syz-executor470/2068: #0: (shrinker_rwsem){++++..}, at: [<00000000abd71e25>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<0000000023dd615e>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 Preemption disabled at: [<00000000e2dae7f8>] spin_lock include/linux/spinlock.h:302 [inline] [<00000000e2dae7f8>] task_lock include/linux/sched.h:3217 [inline] [<00000000e2dae7f8>] get_task_mm+0x20/0xc0 kernel/fork.c:1010 CPU: 1 PID: 2068 Comm: syz-executor470 Not tainted 4.9.185+ #8 ffff8801c555f380 ffffffff81b5a081 0000000000000000 0000000000000001 ffff8801cf524740 ffffffff810d0ca0 ffff8801cf524740 ffff8801c555f3b8 ffffffff814002fc ffff8801cf524740 ffffffff82a39940 0000000000000387 Call Trace: [<00000000ab374fde>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ab374fde>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000519d611c>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000037673e1f>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000001547acdd>] mmput+0x28/0x370 kernel/fork.c:903 [<00000000e1c4510f>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<0000000055cc7393>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000df7b8cdf>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000df7b8cdf>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<000000005b7d16c6>] shrink_slab mm/vmscan.c:466 [inline] [<000000005b7d16c6>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000ee64685e>] shrink_zones mm/vmscan.c:2751 [inline] [<00000000ee64685e>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<00000000ee64685e>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<000000009d27adc8>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<000000009d27adc8>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<000000009d27adc8>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<000000009d27adc8>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<00000000a0543a21>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000a0543a21>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000a0543a21>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000a0543a21>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<00000000a0543a21>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<000000008b0587d3>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<000000008b0587d3>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<000000008b0587d3>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<00000000a7eb6b84>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<000000009f91eaa7>] do_replace.isra.0+0x111/0x480 net/ipv4/netfilter/arp_tables.c:979 [<000000006a02f900>] do_arpt_set_ctl+0x108/0x150 net/ipv4/netfilter/arp_tables.c:1469 [<00000000ae2ac941>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000ae2ac941>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000d5aac79f>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<00000000d5aac79f>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<0000000067b74e5e>] tcp_setsockopt net/ipv4/tcp.c:2757 [inline] [<0000000067b74e5e>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2751 [<0000000043c879a7>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000ebb266fd>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000ebb266fd>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<000000002fe69541>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000a43f550b>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb ================================= [ INFO: inconsistent lock state ] 4.9.185+ #8 Tainted: G W --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. syz-executor470/2068 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<00000000950e3303>] 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:1601 [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: 379349 hardirqs last enabled at (379349): [<00000000d4f0d517>] dump_stack+0x100/0x120 lib/dump_stack.c:56 hardirqs last disabled at (379348): [<00000000e8f1ab5b>] dump_stack+0x2c/0x120 lib/dump_stack.c:38 softirqs last enabled at (378546): [<0000000090eeb39a>] spin_unlock_bh include/linux/spinlock.h:352 [inline] softirqs last enabled at (378546): [<0000000090eeb39a>] wb_queue_work+0x1ed/0x450 fs/fs-writeback.c:203 softirqs last disabled at (378542): [<000000007776aae5>] spin_lock_bh include/linux/spinlock.h:307 [inline] softirqs last disabled at (378542): [<000000007776aae5>] wb_queue_work+0x90/0x450 fs/fs-writeback.c:195 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&mm->mmap_sem); lock(&mm->mmap_sem); *** DEADLOCK *** 3 locks held by syz-executor470/2068: #0: (shrinker_rwsem){++++..}, at: [<00000000abd71e25>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<0000000023dd615e>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 #2: (lmk_event_lock){+.+.-.}, at: [<00000000cdb64f17>] spin_lock include/linux/spinlock.h:302 [inline] #2: (lmk_event_lock){+.+.-.}, at: [<00000000cdb64f17>] handle_lmk_event+0xfb/0x8a0 drivers/staging/android/lowmemorykiller.c:114 stack backtrace: CPU: 1 PID: 2068 Comm: syz-executor470 Tainted: G W 4.9.185+ #8 ffff8801c555f0c0 ffffffff81b5a081 00000000000000f0 ffff8801cf524740 ffffffff83caf760 ffff8801cf525088 ffffffff84250ec0 ffff8801c555f138 ffffffff81406d39 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<00000000ab374fde>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ab374fde>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<000000001e916a31>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<000000001e916a31>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<000000001d2b7f41>] valid_state kernel/locking/lockdep.c:2400 [inline] [<000000001d2b7f41>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<000000001d2b7f41>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<0000000040caf67a>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<0000000040caf67a>] __lock_acquire+0x5c3/0x4350 kernel/locking/lockdep.c:3302 [<000000005c57bd6d>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<00000000d2ca1916>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<00000000950e3303>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<000000001c3e6d90>] handle_lmk_event+0x13c/0x8a0 drivers/staging/android/lowmemorykiller.c:128 [<0000000055cc7393>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000df7b8cdf>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000df7b8cdf>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<000000005b7d16c6>] shrink_slab mm/vmscan.c:466 [inline] [<000000005b7d16c6>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000ee64685e>] shrink_zones mm/vmscan.c:2751 [inline] [<00000000ee64685e>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<00000000ee64685e>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<000000009d27adc8>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<000000009d27adc8>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<000000009d27adc8>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<000000009d27adc8>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<00000000a0543a21>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000a0543a21>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000a0543a21>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000a0543a21>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<00000000a0543a21>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<000000008b0587d3>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<000000008b0587d3>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<000000008b0587d3>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<00000000a7eb6b84>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<000000009f91eaa7>] do_replace.isra.0+0x111/0x480 net/ipv4/netfilter/arp_tables.c:979 [<000000006a02f900>] do_arpt_set_ctl+0x108/0x150 net/ipv4/netfilter/arp_tables.c:1469 [<00000000ae2ac941>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000ae2ac941>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000d5aac79f>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<00000000d5aac79f>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<0000000067b74e5e>] tcp_setsockopt net/ipv4/tcp.c:2757 [inline] [<0000000067b74e5e>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2751 [<0000000043c879a7>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000ebb266fd>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000ebb266fd>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<000000002fe69541>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000a43f550b>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb oom_reaper: reaped process 2059 (syz-executor470), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB syz-executor470 invoked oom-killer: gfp_mask=0x24200ca(GFP_HIGHUSER_MOVABLE), nodemask=0, order=0, oom_score_adj=0 CPU: 1 PID: 2057 Comm: syz-executor470 Tainted: G W 4.9.185+ #8 ffff8801ce6976f0 ffffffff81b5a081 ffff8801ce697a48 ffffffff833f11b0 0000000000000000 ffff8801ce697a60 0000000000000000 ffff8801ce697770 ffffffff8150548b 0000000000000000 0000000000000000 ffffffff8281c265 Call Trace: [<00000000ab374fde>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ab374fde>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000991ca2d6>] dump_header.isra.0+0x142/0x74c mm/oom_kill.c:417 [<00000000d6ea85ac>] oom_kill_process.cold+0xd/0xa74 mm/oom_kill.c:852 [<0000000082e13358>] out_of_memory mm/oom_kill.c:1069 [inline] [<0000000082e13358>] out_of_memory+0x29b/0xea0 mm/oom_kill.c:1009 [<000000008b4d9918>] __alloc_pages_may_oom mm/page_alloc.c:3136 [inline] [<000000008b4d9918>] __alloc_pages_slowpath mm/page_alloc.c:3750 [inline] [<000000008b4d9918>] __alloc_pages_nodemask+0x1730/0x1a80 mm/page_alloc.c:3861 [<0000000069a15912>] __alloc_pages include/linux/gfp.h:433 [inline] [<0000000069a15912>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<0000000069a15912>] alloc_pages_node include/linux/gfp.h:460 [inline] [<0000000069a15912>] __page_cache_alloc include/linux/pagemap.h:208 [inline] [<0000000069a15912>] pagecache_get_page+0x248/0x740 mm/filemap.c:1367 [<00000000d2f95a09>] filemap_fault+0xb1f/0x1360 mm/filemap.c:2331 [<000000009299991d>] ext4_filemap_fault+0x72/0xa0 fs/ext4/inode.c:5854 [<00000000ea479ec6>] __do_fault+0x2a8/0x6c0 mm/memory.c:2855 [<000000002de7f573>] do_read_fault mm/memory.c:3202 [inline] [<000000002de7f573>] do_fault mm/memory.c:3338 [inline] [<000000002de7f573>] handle_pte_fault mm/memory.c:3547 [inline] [<000000002de7f573>] __handle_mm_fault mm/memory.c:3634 [inline] [<000000002de7f573>] handle_mm_fault+0x11bc/0x2420 mm/memory.c:3671 [<00000000f05937aa>] __do_page_fault+0x3f0/0xa60 arch/x86/mm/fault.c:1404 [<000000005333c384>] do_page_fault+0x28/0x30 arch/x86/mm/fault.c:1467 [<000000006e3d54cf>] page_fault+0x25/0x30 arch/x86/entry/entry_64.S:953 Mem-Info: active_anon:3230 inactive_anon:42 isolated_anon:0 active_file:24 inactive_file:20 isolated_file:0 unevictable:0 dirty:9 writeback:0 unstable:0 slab_reclaimable:4248 slab_unreclaimable:56881 mapped:41 shmem:48 pagetables:355 bounce:0 free:6054 free_pcp:8 free_cma:0 Node 0 active_anon:12920kB inactive_anon:168kB active_file:96kB inactive_file:80kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:164kB dirty:36kB writeback:0kB shmem:192kB writeback_tmp:0kB unstable:0kB pages_scanned:15 all_unreclaimable? no DMA32 free:18712kB min:4696kB low:7712kB high:10728kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3145324kB managed:3020100kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB Normal free:5504kB min:5580kB low:9168kB high:12756kB active_anon:12920kB inactive_anon:168kB active_file:96kB inactive_file:80kB unevictable:0kB writepending:36kB present:4718592kB managed:3589316kB mlocked:0kB slab_reclaimable:16992kB slab_unreclaimable:227524kB kernel_stack:3456kB pagetables:1420kB bounce:0kB free_pcp:32kB local_pcp:32kB free_cma:0kB DMA32: 4*4kB (UM) 6*8kB (UM) 4*16kB (UM) 4*32kB (UM) 1*64kB (M) 4*128kB (UM) 4*256kB (UM) 1*512kB (M) 2*1024kB (M) 1*2048kB (M) 3*4096kB (M) = 18752kB 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 313625 pages reserved [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name [ 470] 0 470 5384 182 16 3 0 -1000 udevd [ 588] 0 588 5377 180 15 3 0 -1000 udevd [ 589] 0 589 5383 181 15 3 0 -1000 udevd [ 1761] 0 1761 2492 573 9 3 0 0 dhclient [ 1892] 0 1892 14231 109 23 3 0 0 rsyslogd [ 1947] 0 1947 4724 52 14 3 0 0 cron [ 1965] 0 1965 3734 44 12 3 0 0 mcstransd [ 1968] 0 1968 12926 1228 27 3 0 0 restorecond [ 1993] 0 1993 12489 153 27 3 0 -1000 sshd [ 2023] 0 2023 3648 39 13 3 0 0 getty [ 2048] 0 2048 3648 43 13 3 0 0 getty [ 2049] 0 2049 3648 43 13 3 0 0 getty [ 2050] 0 2050 3648 44 13 3 0 0 getty [ 2051] 0 2051 3648 44 13 3 0 0 getty [ 2052] 0 2052 3648 43 13 3 0 0 getty [ 2053] 0 2053 3648 42 13 3 0 0 getty [ 2054] 0 2054 17820 196 37 3 0 0 sshd [ 2056] 0 2056 4380 1 4 2 0 0 syz-executor470 [ 2057] 0 2057 4380 11 4 2 0 0 syz-executor470 [ 2058] 0 2058 4380 11 4 2 0 0 syz-executor470 [ 2059] 0 2059 4380 0 5 2 0 1000 syz-executor470 [ 2060] 0 2060 4380 11 4 2 0 0 syz-executor470 [ 2061] 0 2061 4380 11 4 2 0 0 syz-executor470 [ 2062] 0 2062 4380 11 4 2 0 0 syz-executor470 [ 2063] 0 2063 4380 11 4 2 0 0 syz-executor470 [ 2064] 0 2064 4380 11 5 2 0 1000 syz-executor470 [ 2065] 0 2065 4380 11 5 2 0 1000 syz-executor470 [ 2066] 0 2066 4380 11 5 2 0 1000 syz-executor470 [ 2067] 0 2067 4380 11 5 2 0 1000 syz-executor470 [ 2068] 0 2068 4380 11 5 2 0 1000 syz-executor470 Out of memory: Kill process 2064 (syz-executor470) score 999 or sacrifice child Killed process 2064 (syz-executor470) total-vm:17520kB, anon-rss:44kB, file-rss:0kB, shmem-rss:0kB syz-executor470: vmalloc: allocation failure, allocated 1135759360 of 4278198272 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 1 PID: 2059 Comm: syz-executor470 Tainted: G W 4.9.185+ #8 ffff8801ce647980 ffffffff81b5a081 1ffff10039cc8f32 dffffc0000000000 ffffffff82aaa9c0 0000000000000000 0000000000400000 ffff8801ce647aa8 ffffffff81506743 0000000041b58ab3 ffffffff82e3a470 ffffffff81430320 Call Trace: [<00000000ab374fde>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ab374fde>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000139e3d7b>] warn_alloc.cold+0x76/0x93 mm/page_alloc.c:3069 [<000000001fcb1757>] __vmalloc_area_node mm/vmalloc.c:1665 [inline] [<000000001fcb1757>] __vmalloc_node_range+0x3ff/0x610 mm/vmalloc.c:1706 [<000000008b0587d3>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<000000008b0587d3>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<000000008b0587d3>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<00000000a7eb6b84>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<000000009f91eaa7>] do_replace.isra.0+0x111/0x480 net/ipv4/netfilter/arp_tables.c:979 [<000000006a02f900>] do_arpt_set_ctl+0x108/0x150 net/ipv4/netfilter/arp_tables.c:1469 [<00000000ae2ac941>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000ae2ac941>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000d5aac79f>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<00000000d5aac79f>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<0000000067b74e5e>] tcp_setsockopt net/ipv4/tcp.c:2757 [inline] [<0000000067b74e5e>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2751 [<0000000043c879a7>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000ebb266fd>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000ebb266fd>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<000000002fe69541>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000a43f550b>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:3232 inactive_anon:42 isolated_anon:0 active_file:24 inactive_file:20 isolated_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:4248 slab_unreclaimable:56871 mapped:22 shmem:48 pagetables:355 bounce:0 free:393 free_pcp:0 free_cma:0 Node 0 active_anon:12928kB inactive_anon:168kB active_file:96kB inactive_file:80kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:88kB dirty:0kB writeback:0kB shmem:192kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no DMA32 free:28kB min:4696kB low:7712kB high:10728kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3145324kB managed:3020100kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB Normal free:1544kB min:5580kB low:9168kB high:12756kB active_anon:12928kB inactive_anon:168kB active_file:96kB inactive_file:80kB unevictable:0kB writepending:0kB present:4718592kB managed:3589316kB mlocked:0kB slab_reclaimable:16992kB slab_unreclaimable:227484kB kernel_stack:3456kB pagetables:1420kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB DMA32: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB 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 313625 pages reserved syz-executor470: vmalloc: allocation failure, allocated 1239052288 of 4278198272 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 0 PID: 2064 Comm: syz-executor470 Tainted: G W 4.9.185+ #8 ffff8801ce57f980 ffffffff81b5a081 1ffff10039caff32 dffffc0000000000 ffffffff82aaa9c0 0000000000000000 0000000000400000 ffff8801ce57faa8 ffffffff81506743 0000000041b58ab3 ffffffff82e3a470 ffffffff81430320 Call Trace: [<00000000ab374fde>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ab374fde>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000139e3d7b>] warn_alloc.cold+0x76/0x93 mm/page_alloc.c:3069 [<000000001fcb1757>] __vmalloc_area_node mm/vmalloc.c:1665 [inline] [<000000001fcb1757>] __vmalloc_node_range+0x3ff/0x610 mm/vmalloc.c:1706 [<000000008b0587d3>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<000000008b0587d3>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<000000008b0587d3>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<00000000a7eb6b84>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<000000009f91eaa7>] do_replace.isra.0+0x111/0x480 net/ipv4/netfilter/arp_tables.c:979 [<000000006a02f900>] do_arpt_set_ctl+0x108/0x150 net/ipv4/netfilter/arp_tables.c:1469 [<00000000ae2ac941>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000ae2ac941>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000d5aac79f>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<00000000d5aac79f>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<0000000067b74e5e>] tcp_setsockopt net/ipv4/tcp.c:2757 [inline] [<0000000067b74e5e>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2751 [<0000000043c879a7>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000ebb266fd>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000ebb266fd>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<000000002fe69541>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000a43f550b>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:3232 inactive_anon:42 isolated_anon:0 active_file:24 inactive_file:20 isolated_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:4248 slab_unreclaimable:56871 mapped:22 shmem:48 pagetables:355 bounce:0 free:393 free_pcp:0 free_cma:0 Node 0 active_anon:12928kB inactive_anon:168kB active_file:96kB inactive_file:80kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:88kB dirty:0kB writeback:0kB shmem:192kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no DMA32 free:28kB min:4696kB low:7712kB high:10728kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3145324kB managed:3020100kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB Normal free:1544kB min:5580kB low:9168kB high:12756kB active_anon:12928kB inactive_anon:168kB active_file:96kB inactive_file:80kB unevictable:0kB writepending:0kB present:4718592kB managed:3589316kB mlocked:0kB slab_reclaimable:16992kB slab_unreclaimable:227484kB kernel_stack:3456kB pagetables:1420kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB DMA32: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB 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 313625 pages reserved oom_reaper: reaped process 2064 (syz-executor470), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB ODEBUG: Out of memory. ODEBUG disabled lowmemorykiller: Killing 'syz-executor470' (2065) (tgid 2065), adj 1000, to free 44kB on behalf of 'kswapd0' (33) because cache 3072kB is below limit 6144kB for oom_score_adj 0 Free memory is -9516kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:903 in_atomic(): 0, irqs_disabled(): 0, pid: 33, name: kswapd0 INFO: lockdep is turned off. Preemption disabled at:[ 46.599831] [<00000000e2dae7f8>] spin_lock include/linux/spinlock.h:302 [inline] Preemption disabled at:[ 46.599831] [<00000000e2dae7f8>] task_lock include/linux/sched.h:3217 [inline] Preemption disabled at:[ 46.599831] [<00000000e2dae7f8>] get_task_mm+0x20/0xc0 kernel/fork.c:1010 CPU: 0 PID: 33 Comm: kswapd0 Tainted: G W 4.9.185+ #8 ffff8801d84077c0 ffffffff81b5a081 0000000000000000 0000000000000001 ffff8801d8df8000 ffffffff810d0ca0 ffff8801d8df8000 ffff8801d84077f8 ffffffff814002fc ffff8801d8df8000 ffffffff82a39940 0000000000000387 Call Trace: [<00000000ab374fde>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ab374fde>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000519d611c>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000037673e1f>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000001547acdd>] mmput+0x28/0x370 kernel/fork.c:903 [<00000000e1c4510f>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<0000000055cc7393>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000df7b8cdf>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000df7b8cdf>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<000000005b7d16c6>] shrink_slab mm/vmscan.c:466 [inline] [<000000005b7d16c6>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000fbafb252>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<00000000fbafb252>] balance_pgdat mm/vmscan.c:3329 [inline] [<00000000fbafb252>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<00000000d24346ef>] kthread+0x278/0x310 kernel/kthread.c:211 [<0000000093297d95>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 oom_reaper: reaped process 2065 (syz-executor470), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB syz-executor470: vmalloc: allocation failure, allocated 1580830720 of 4278198272 bytes[ 46.858983] syz-executor470 invoked oom-killer: gfp_mask=0x24002c2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN), nodemask=0, order=0, oom_score_adj=1000 CPU: 0 PID: 2068 Comm: syz-executor470 Tainted: G W 4.9.185+ #8 ffff8801c555f6a8 ffffffff81b5a081 ffff8801c555fa00 ffffffff833f11b0 00000000000003e8 ffff8801c555fa18 0000000000000000 ffff8801c555f728 ffffffff8150548b 0000000000000000 00000000000003e8 ffffffff8281c265Call Trace: [<00000000ab374fde>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ab374fde>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000991ca2d6>] dump_header.isra.0+0x142/0x74c mm/oom_kill.c:417 [<00000000d6ea85ac>] oom_kill_process.cold+0xd/0xa74 mm/oom_kill.c:852 [<0000000082e13358>] out_of_memory mm/oom_kill.c:1069 [inline] [<0000000082e13358>] out_of_memory+0x29b/0xea0 mm/oom_kill.c:1009 [<000000008b4d9918>] __alloc_pages_may_oom mm/page_alloc.c:3136 [inline] [<000000008b4d9918>] __alloc_pages_slowpath mm/page_alloc.c:3750 [inline] [<000000008b4d9918>] __alloc_pages_nodemask+0x1730/0x1a80 mm/page_alloc.c:3861 [<00000000a0543a21>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000a0543a21>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000a0543a21>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000a0543a21>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<00000000a0543a21>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<000000008b0587d3>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<000000008b0587d3>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<000000008b0587d3>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<00000000a7eb6b84>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<000000009f91eaa7>] do_replace.isra.0+0x111/0x480 net/ipv4/netfilter/arp_tables.c:979 [<000000006a02f900>] do_arpt_set_ctl+0x108/0x150 net/ipv4/netfilter/arp_tables.c:1469 [<00000000ae2ac941>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000ae2ac941>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000d5aac79f>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<00000000d5aac79f>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<0000000067b74e5e>] tcp_setsockopt net/ipv4/tcp.c:2757 [inline] [<0000000067b74e5e>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2751 [<0000000043c879a7>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000ebb266fd>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000ebb266fd>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<000000002fe69541>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000a43f550b>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:3244 inactive_anon:42 isolated_anon:0 active_file:14 inactive_file:32 isolated_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:4259 slab_unreclaimable:56471 mapped:0 shmem:48 pagetables:355 bounce:0 free:356 free_pcp:19 free_cma:0 Node 0 active_anon:12976kB inactive_anon:168kB active_file:56kB inactive_file:128kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB shmem:192kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? yes DMA32 free:32kB min:4696kB low:7712kB high:10728kB active_anon:44kB inactive_anon:0kB active_file:0kB inactive_file:100kB unevictable:0kB writepending:92kB present:3145324kB managed:3020100kB mlocked:0kB slab_reclaimable:4kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:44kB local_pcp:0kB free_cma:0kB 0 3505 3505Normal free:1392kB min:5580kB low:9168kB high:12756kB active_anon:12932kB inactive_anon:168kB active_file:56kB inactive_file:0kB unevictable:0kB writepending:8kB present:4718592kB managed:3589316kB mlocked:0kB slab_reclaimable:17032kB slab_unreclaimable:225884kB kernel_stack:3456kB pagetables:1420kB bounce:0kB free_pcp:32kB local_pcp:0kB free_cma:0kB 0 0 0DMA32: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB 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 313625 pages reserved [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name [ 470] 0 470 5384 182 16 3 0 -1000 udevd [ 588] 0 588 5377 180 15 3 0 -1000 udevd [ 589] 0 589 5383 181 15 3 0 -1000 udevd [ 1761] 0 1761 2492 573 9 3 0 0 dhclient [ 1892] 0 1892 14264 149 23 3 0 0 rsyslogd [ 1947] 0 1947 4724 52 14 3 0 0 cron [ 1965] 0 1965 3734 44 12 3 0 0 mcstransd [ 1968] 0 1968 12926 1228 27 3 0 0 restorecond [ 1993] 0 1993 12489 153 27 3 0 -1000 sshd [ 2023] 0 2023 3648 39 13 3 0 0 getty [ 2048] 0 2048 3648 43 13 3 0 0 getty [ 2049] 0 2049 3648 43 13 3 0 0 getty [ 2050] 0 2050 3648 44 13 3 0 0 getty [ 2051] 0 2051 3648 44 13 3 0 0 getty [ 2052] 0 2052 3648 43 13 3 0 0 getty [ 2053] 0 2053 3648 42 13 3 0 0 getty [ 2054] 0 2054 17820 196 37 3 0 0 sshd [ 2056] 0 2056 4380 1 4 2 0 0 syz-executor470 [ 2057] 0 2057 4380 11 4 2 0 0 syz-executor470 [ 2058] 0 2058 4380 11 4 2 0 0 syz-executor470 [ 2060] 0 2060 4380 11 4 2 0 0 syz-executor470 [ 2061] 0 2061 4380 11 4 2 0 0 syz-executor470 [ 2062] 0 2062 4380 11 4 2 0 0 syz-executor470 [ 2063] 0 2063 4380 11 4 2 0 0 syz-executor470 [ 2065] 0 2065 4380 0 5 2 0 1000 syz-executor470 [ 2066] 0 2066 4380 11 5 2 0 1000 syz-executor470 [ 2067] 0 2067 4380 11 5 2 0 1000 syz-executor470 [ 2068] 0 2068 4380 11 5 2 0 1000 syz-executor470 [ 2070] 0 2070 4380 11 5 2 0 1000 syz-executor470 [ 2071] 0 2071 4380 11 5 2 0 1000 syz-executor470 Out of memory: Kill process 2066 (syz-executor470) score 999 or sacrifice child Killed process 2066 (syz-executor470) total-vm:17520kB, anon-rss:44kB, file-rss:0kB, shmem-rss:0kB syz-executor470: vmalloc: allocation failure, allocated 1559003136 of 4278198272 bytes** 235 printk messages dropped ** [ 46.886007] [ 2070] 0 2070 4380 11 5 2 0 1000 syz-executor470 [ 2071] 0 2071 4380 11 5 2 0 1000 syz-executor470