lowmemorykiller: Killing 'syz-executor626' (2072) (tgid 2072), adj 1000, to free 48kB on behalf of 'kswapd0' (33) because cache 36248kB is below limit 65536kB for oom_score_adj 12 Free memory is -13220kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:903 in_atomic(): 0, irqs_disabled(): 0, pid: 33, name: kswapd0 2 locks held by kswapd0/33: #0: (shrinker_rwsem){++++..}, at: [<0000000053386479>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<00000000f2fb31af>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 Preemption disabled at:[ 58.139838] [<0000000035493d85>] spin_lock include/linux/spinlock.h:302 [inline] Preemption disabled at:[ 58.139838] [<0000000035493d85>] task_lock include/linux/sched.h:3217 [inline] Preemption disabled at:[ 58.139838] [<0000000035493d85>] get_task_mm+0x20/0xc0 kernel/fork.c:1010 CPU: 0 PID: 33 Comm: kswapd0 Not tainted 4.9.183+ #4 ffff8801d8def7c0 ffffffff81b580a1 0000000000000000 0000000000000001 ffff8801d992c740 ffffffff810d0ca0 ffff8801d992c740 ffff8801d8def7f8 ffffffff8140040c ffff8801d992c740 ffffffff82a39900 0000000000000387 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000900c0c57>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000014ea8c1e>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000005631e90f>] mmput+0x28/0x370 kernel/fork.c:903 [<000000009def10b0>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000e3177d84>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000a6fbb298>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000a6fbb298>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000009ba80a1>] shrink_slab mm/vmscan.c:466 [inline] [<0000000009ba80a1>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000edf7ab80>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<00000000edf7ab80>] balance_pgdat mm/vmscan.c:3329 [inline] [<00000000edf7ab80>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<0000000085f32561>] kthread+0x278/0x310 kernel/kthread.c:211 [<00000000c8cec592>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 oom_reaper: reaped process 2072 (syz-executor626), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB ================================= [ INFO: inconsistent lock state ] 4.9.183+ #4 Tainted: G W --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. kswapd0/33 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<000000000b499f9c>] 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: 4469 hardirqs last enabled at (4469): [<00000000775ff167>] restore_regs_and_iret+0x0/0x1d hardirqs last disabled at (4468): [<0000000049248ecf>] preempt_schedule_irq+0x6a/0xa0 kernel/sched/core.c:3705 softirqs last enabled at (4464): [<000000007dc5b7da>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (4451): [<00000000a3993993>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (4451): [<00000000a3993993>] 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 *** 3 locks held by kswapd0/33: #0: (shrinker_rwsem){++++..}, at: [<0000000053386479>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<00000000f2fb31af>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 #2: (lmk_event_lock){+.+.-.}, at: [<000000000b6ae89b>] spin_lock include/linux/spinlock.h:302 [inline] #2: (lmk_event_lock){+.+.-.}, at: [<000000000b6ae89b>] handle_lmk_event+0xfb/0x8a0 drivers/staging/android/lowmemorykiller.c:114 stack backtrace: CPU: 0 PID: 33 Comm: kswapd0 Tainted: G W 4.9.183+ #4 ffff8801d8def500 ffffffff81b580a1 00000000000000f0 ffff8801d992c740 ffffffff83cad5b0 ffff8801d992d088 ffffffff8424eec0 ffff8801d8def578 ffffffff81406e49 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<0000000009bfbdfb>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<0000000009bfbdfb>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<0000000017305443>] valid_state kernel/locking/lockdep.c:2400 [inline] [<0000000017305443>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<0000000017305443>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<00000000a7a9458c>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<00000000a7a9458c>] __lock_acquire+0x5c3/0x4350 kernel/locking/lockdep.c:3302 [<00000000fabba114>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<000000005a945145>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<000000000b499f9c>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<00000000a4493057>] handle_lmk_event+0x13c/0x8a0 drivers/staging/android/lowmemorykiller.c:128 [<00000000e3177d84>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000a6fbb298>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000a6fbb298>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000009ba80a1>] shrink_slab mm/vmscan.c:466 [inline] [<0000000009ba80a1>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000edf7ab80>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<00000000edf7ab80>] balance_pgdat mm/vmscan.c:3329 [inline] [<00000000edf7ab80>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<0000000085f32561>] kthread+0x278/0x310 kernel/kthread.c:211 [<00000000c8cec592>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 syz-executor626: vmalloc: allocation failure, allocated 1208324096 of 4294975488 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 0 PID: 2072 Comm: syz-executor626 Tainted: G W 4.9.183+ #4 ffff8801cdcefa08 ffffffff81b580a1 1ffff10039b9df43 dffffc0000000000 ffffffff82aaa940 0000000000000000 0000000000400000 ffff8801cdcefb30 ffffffff81506893 0000000041b58ab3 ffffffff82e3a0f8 ffffffff81430460 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000d9333dc6>] warn_alloc.cold+0x76/0x93 mm/page_alloc.c:3069 [<00000000af5b9233>] __vmalloc_area_node mm/vmalloc.c:1665 [inline] [<00000000af5b9233>] __vmalloc_node_range+0x3ff/0x610 mm/vmalloc.c:1706 [<000000007db1fc4d>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<000000007db1fc4d>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<000000007db1fc4d>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<000000004445d8b2>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<00000000c2508467>] do_replace net/ipv6/netfilter/ip6_tables.c:1175 [inline] [<00000000c2508467>] do_ip6t_set_ctl+0x231/0x480 net/ipv6/netfilter/ip6_tables.c:1712 [<000000000574e3c8>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<000000000574e3c8>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000fa30172b>] ipv6_setsockopt net/ipv6/ipv6_sockglue.c:922 [inline] [<00000000fa30172b>] ipv6_setsockopt+0x10b/0x140 net/ipv6/ipv6_sockglue.c:906 [<00000000a59d3d96>] tcp_setsockopt net/ipv4/tcp.c:2757 [inline] [<00000000a59d3d96>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2751 [<00000000d36a6213>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<000000008ea7b4b4>] SYSC_setsockopt net/socket.c:1786 [inline] [<000000008ea7b4b4>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<00000000e3277c32>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000d08ac2f7>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:3232 inactive_anon:41 isolated_anon:0 active_file:5 inactive_file:26 isolated_file:0 unevictable:0 dirty:4 writeback:0 unstable:0 slab_reclaimable:4257 slab_unreclaimable:56668 mapped:15 shmem:48 pagetables:355 bounce:0 free:0 free_pcp:0 free_cma:0 Node 0 active_anon:12928kB inactive_anon:164kB active_file:20kB inactive_file:104kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:60kB dirty:16kB writeback:0kB shmem:192kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no DMA32 free:8kB 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:0kB min:5580kB low:9168kB high:12756kB active_anon:12928kB inactive_anon:164kB active_file:20kB inactive_file:104kB unevictable:0kB writepending:8kB present:4718592kB managed:3589316kB mlocked:0kB slab_reclaimable:17028kB slab_unreclaimable:226672kB 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 lowmemorykiller: Killing 'syz-executor626' (2074) (tgid 2074), adj 1000, to free 48kB on behalf of 'syz-executor626' (2077) because cache 164kB is below limit 6144kB for oom_score_adj 0 Free memory is -31968kB above reserved lowmemorykiller: Killing 'syz-executor626' (2074) (tgid 2074), adj 1000, to free 48kB on behalf of 'syz-executor626' (2074) because cache 164kB is below limit 6144kB for oom_score_adj 0 Free memory is -31968kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:903 in_atomic(): 0, irqs_disabled(): 0, pid: 2077, name: syz-executor626 INFO: lockdep is turned off. Preemption disabled at: [<0000000035493d85>] spin_lock include/linux/spinlock.h:302 [inline] [<0000000035493d85>] task_lock include/linux/sched.h:3217 [inline] [<0000000035493d85>] get_task_mm+0x20/0xc0 kernel/fork.c:1010 CPU: 1 PID: 2077 Comm: syz-executor626 Tainted: G W 4.9.183+ #4 ffff8801ce7af408 ffffffff81b580a1 0000000000000000 0000000000000001 ffff8801cfd2af80 ffffffff810d0ca0 ffff8801cfd2af80 ffff8801ce7af440 ffffffff8140040c ffff8801cfd2af80 ffffffff82a39900 0000000000000387 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000900c0c57>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000014ea8c1e>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000005631e90f>] mmput+0x28/0x370 kernel/fork.c:903 [<000000009def10b0>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000e3177d84>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000a6fbb298>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000a6fbb298>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000009ba80a1>] shrink_slab mm/vmscan.c:466 [inline] [<0000000009ba80a1>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000009cc11bca>] shrink_zones mm/vmscan.c:2751 [inline] [<000000009cc11bca>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000009cc11bca>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000faa995c5>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000faa995c5>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000faa995c5>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000faa995c5>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<000000000b11dbd8>] __alloc_pages include/linux/gfp.h:433 [inline] [<000000000b11dbd8>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<000000000b11dbd8>] alloc_pages_node include/linux/gfp.h:460 [inline] [<000000000b11dbd8>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<000000000b11dbd8>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<000000007db1fc4d>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<000000007db1fc4d>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<000000007db1fc4d>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<000000004445d8b2>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<00000000c2508467>] do_replace net/ipv6/netfilter/ip6_tables.c:1175 [inline] [<00000000c2508467>] do_ip6t_set_ctl+0x231/0x480 net/ipv6/netfilter/ip6_tables.c:1712 [<000000000574e3c8>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<000000000574e3c8>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000fa30172b>] ipv6_setsockopt net/ipv6/ipv6_sockglue.c:922 [inline] [<00000000fa30172b>] ipv6_setsockopt+0x10b/0x140 net/ipv6/ipv6_sockglue.c:906 [<00000000a59d3d96>] tcp_setsockopt net/ipv4/tcp.c:2757 [inline] [<00000000a59d3d96>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2751 [<00000000d36a6213>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<000000008ea7b4b4>] SYSC_setsockopt net/socket.c:1786 [inline] [<000000008ea7b4b4>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<00000000e3277c32>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000d08ac2f7>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor626' (2074) (tgid 2074), adj 1000, to free 48kB on behalf of 'syz-executor626' (2079) because cache 132kB is below limit 6144kB for oom_score_adj 0 Free memory is -13324kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:903 in_atomic(): 0, irqs_disabled(): 0, pid: 2079, name: syz-executor626 INFO: lockdep is turned off. Preemption disabled at: [<0000000035493d85>] spin_lock include/linux/spinlock.h:302 [inline] [<0000000035493d85>] task_lock include/linux/sched.h:3217 [inline] [<0000000035493d85>] get_task_mm+0x20/0xc0 kernel/fork.c:1010 CPU: 0 PID: 2079 Comm: syz-executor626 Tainted: G W 4.9.183+ #4 ffff8801ceb47408 ffffffff81b580a1 0000000000000000 0000000000000001 ffff8801cdc54740 ffffffff810d0ca0 ffff8801cdc54740 ffff8801ceb47440 ffffffff8140040c ffff8801cdc54740 ffffffff82a39900 0000000000000387 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000900c0c57>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000014ea8c1e>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000005631e90f>] mmput+0x28/0x370 kernel/fork.c:903 [<000000009def10b0>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000e3177d84>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000a6fbb298>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000a6fbb298>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000009ba80a1>] shrink_slab mm/vmscan.c:466 [inline] [<0000000009ba80a1>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000009cc11bca>] shrink_zones mm/vmscan.c:2751 [inline] [<000000009cc11bca>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000009cc11bca>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000faa995c5>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000faa995c5>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000faa995c5>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000faa995c5>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<000000000b11dbd8>] __alloc_pages include/linux/gfp.h:433 [inline] [<000000000b11dbd8>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<000000000b11dbd8>] alloc_pages_node include/linux/gfp.h:460 [inline] [<000000000b11dbd8>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<000000000b11dbd8>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<000000007db1fc4d>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<000000007db1fc4d>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<000000007db1fc4d>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<000000004445d8b2>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<00000000c2508467>] do_replace net/ipv6/netfilter/ip6_tables.c:1175 [inline] [<00000000c2508467>] do_ip6t_set_ctl+0x231/0x480 net/ipv6/netfilter/ip6_tables.c:1712 [<000000000574e3c8>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<000000000574e3c8>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000fa30172b>] ipv6_setsockopt net/ipv6/ipv6_sockglue.c:922 [inline] [<00000000fa30172b>] ipv6_setsockopt+0x10b/0x140 net/ipv6/ipv6_sockglue.c:906 [<00000000a59d3d96>] tcp_setsockopt net/ipv4/tcp.c:2757 [inline] [<00000000a59d3d96>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2751 [<00000000d36a6213>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<000000008ea7b4b4>] SYSC_setsockopt net/socket.c:1786 [inline] [<000000008ea7b4b4>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<00000000e3277c32>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000d08ac2f7>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor626' (2074) (tgid 2074), adj 1000, to free 48kB on behalf of 'syz-executor626' (2074) because cache 132kB is below limit 6144kB for oom_score_adj 0 Free memory is -13416kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:903 in_atomic(): 0, irqs_disabled(): 0, pid: 2074, name: syz-executor626 INFO: lockdep is turned off. Preemption disabled at: [<0000000035493d85>] spin_lock include/linux/spinlock.h:302 [inline] [<0000000035493d85>] task_lock include/linux/sched.h:3217 [inline] [<0000000035493d85>] get_task_mm+0x20/0xc0 kernel/fork.c:1010 CPU: 1 PID: 2074 Comm: syz-executor626 Tainted: G W 4.9.183+ #4 ffff8801cdc8f408 ffffffff81b580a1 0000000000000000 0000000000000001 ffff8801cfd297c0 ffffffff810d0ca0 ffff8801cfd297c0 ffff8801cdc8f440 ffffffff8140040c ffff8801cfd297c0 ffffffff82a39900 0000000000000387 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000900c0c57>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000014ea8c1e>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000005631e90f>] mmput+0x28/0x370 kernel/fork.c:903 [<000000009def10b0>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000e3177d84>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000a6fbb298>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000a6fbb298>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000009ba80a1>] shrink_slab mm/vmscan.c:466 [inline] [<0000000009ba80a1>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000009cc11bca>] shrink_zones mm/vmscan.c:2751 [inline] [<000000009cc11bca>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000009cc11bca>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000faa995c5>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000faa995c5>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000faa995c5>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000faa995c5>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<000000000b11dbd8>] __alloc_pages include/linux/gfp.h:433 [inline] [<000000000b11dbd8>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<000000000b11dbd8>] alloc_pages_node include/linux/gfp.h:460 [inline] [<000000000b11dbd8>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<000000000b11dbd8>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<000000007db1fc4d>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<000000007db1fc4d>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<000000007db1fc4d>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<000000004445d8b2>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<00000000c2508467>] do_replace net/ipv6/netfilter/ip6_tables.c:1175 [inline] [<00000000c2508467>] do_ip6t_set_ctl+0x231/0x480 net/ipv6/netfilter/ip6_tables.c:1712 [<000000000574e3c8>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<000000000574e3c8>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000fa30172b>] ipv6_setsockopt net/ipv6/ipv6_sockglue.c:922 [inline] [<00000000fa30172b>] ipv6_setsockopt+0x10b/0x140 net/ipv6/ipv6_sockglue.c:906 [<00000000a59d3d96>] tcp_setsockopt net/ipv4/tcp.c:2757 [inline] [<00000000a59d3d96>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2751 [<00000000d36a6213>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<000000008ea7b4b4>] SYSC_setsockopt net/socket.c:1786 [inline] [<000000008ea7b4b4>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<00000000e3277c32>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000d08ac2f7>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor626' (2074) (tgid 2074), adj 1000, to free 48kB on behalf of 'getty' (2065) because cache 132kB is below limit 6144kB for oom_score_adj 0 Free memory is -13416kB above reserved lowmemorykiller: Killing 'syz-executor626' (2074) (tgid 2074), adj 1000, to free 48kB on behalf of 'getty' (2064) because cache 132kB is below limit 6144kB for oom_score_adj 0 Free memory is -13416kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:903 in_atomic(): 0, irqs_disabled(): 0, pid: 2065, name: getty INFO: lockdep is turned off. Preemption disabled at: [<0000000035493d85>] spin_lock include/linux/spinlock.h:302 [inline] [<0000000035493d85>] task_lock include/linux/sched.h:3217 [inline] [<0000000035493d85>] get_task_mm+0x20/0xc0 kernel/fork.c:1010 CPU: 0 PID: 2065 Comm: getty Tainted: G W 4.9.183+ #4 ffff8801d6b4f3c8 ffffffff81b580a1 0000000000000000 0000000000000001 ffff8801cfce8000 ffffffff810d0ca0 ffff8801cfce8000 ffff8801d6b4f400 ffffffff8140040c ffff8801cfce8000 ffffffff82a39900 0000000000000387 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000900c0c57>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000014ea8c1e>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000005631e90f>] mmput+0x28/0x370 kernel/fork.c:903 [<000000009def10b0>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000e3177d84>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000a6fbb298>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000a6fbb298>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000009ba80a1>] shrink_slab mm/vmscan.c:466 [inline] [<0000000009ba80a1>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000009cc11bca>] shrink_zones mm/vmscan.c:2751 [inline] [<000000009cc11bca>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000009cc11bca>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000faa995c5>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000faa995c5>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000faa995c5>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000faa995c5>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<000000003281f610>] __alloc_pages include/linux/gfp.h:433 [inline] [<000000003281f610>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<000000003281f610>] alloc_pages_node include/linux/gfp.h:460 [inline] [<000000003281f610>] __page_cache_alloc include/linux/pagemap.h:208 [inline] [<000000003281f610>] pagecache_get_page+0x248/0x740 mm/filemap.c:1367 [<0000000096e779eb>] filemap_fault+0xb1f/0x1360 mm/filemap.c:2331 [<00000000335bb6a5>] ext4_filemap_fault+0x72/0xa0 fs/ext4/inode.c:5854 [<000000002a47bc98>] __do_fault+0x2a8/0x6c0 mm/memory.c:2855 [<00000000bd3228fb>] do_read_fault mm/memory.c:3202 [inline] [<00000000bd3228fb>] do_fault mm/memory.c:3338 [inline] [<00000000bd3228fb>] handle_pte_fault mm/memory.c:3547 [inline] [<00000000bd3228fb>] __handle_mm_fault mm/memory.c:3634 [inline] [<00000000bd3228fb>] handle_mm_fault+0x11bc/0x2420 mm/memory.c:3671 [<00000000b1bb598a>] __do_page_fault+0x3f0/0xa60 arch/x86/mm/fault.c:1404 [<0000000084d10c09>] do_page_fault+0x28/0x30 arch/x86/mm/fault.c:1467 [<00000000aef0bdee>] page_fault+0x25/0x30 arch/x86/entry/entry_64.S:953 lowmemorykiller: Killing 'syz-executor626' (2074) (tgid 2074), adj 1000, to free 48kB on behalf of 'syz-executor626' (2069) because cache 132kB is below limit 6144kB for oom_score_adj 0 Free memory is -13416kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:903 in_atomic(): 0, irqs_disabled(): 0, pid: 2069, name: syz-executor626 INFO: lockdep is turned off. Preemption disabled at: [<0000000035493d85>] spin_lock include/linux/spinlock.h:302 [inline] [<0000000035493d85>] task_lock include/linux/sched.h:3217 [inline] [<0000000035493d85>] get_task_mm+0x20/0xc0 kernel/fork.c:1010 CPU: 1 PID: 2069 Comm: syz-executor626 Tainted: G W 4.9.183+ #4 ffff8801d17a7320 ffffffff81b580a1 0000000000000000 0000000000000001 ffff8801cf3f8000 ffffffff810d0ca0 ffff8801cf3f8000 ffff8801d17a7358 ffffffff8140040c ffff8801cf3f8000 ffffffff82a39900 0000000000000387 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000900c0c57>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000014ea8c1e>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000005631e90f>] mmput+0x28/0x370 kernel/fork.c:903 [<000000009def10b0>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000e3177d84>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000a6fbb298>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000a6fbb298>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000009ba80a1>] shrink_slab mm/vmscan.c:466 [inline] [<0000000009ba80a1>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000009cc11bca>] shrink_zones mm/vmscan.c:2751 [inline] [<000000009cc11bca>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000009cc11bca>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000faa995c5>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000faa995c5>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000faa995c5>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000faa995c5>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<000000008c66a755>] __alloc_pages include/linux/gfp.h:433 [inline] [<000000008c66a755>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<000000008c66a755>] alloc_slab_page mm/slub.c:1408 [inline] [<000000008c66a755>] allocate_slab mm/slub.c:1557 [inline] [<000000008c66a755>] new_slab+0x33b/0x3e0 mm/slub.c:1635 [<0000000051483227>] new_slab_objects mm/slub.c:2419 [inline] [<0000000051483227>] ___slab_alloc.constprop.0+0x361/0x470 mm/slub.c:2576 [<000000007f8bf564>] __slab_alloc.isra.0.constprop.0+0x50/0xa0 mm/slub.c:2618 [<00000000024065d0>] slab_alloc_node mm/slub.c:2681 [inline] [<00000000024065d0>] slab_alloc mm/slub.c:2723 [inline] [<00000000024065d0>] kmem_cache_alloc+0x212/0x2b0 mm/slub.c:2728 [<0000000079b69d2f>] kmem_cache_alloc_node include/linux/slab.h:364 [inline] [<0000000079b69d2f>] alloc_task_struct_node kernel/fork.c:144 [inline] [<0000000079b69d2f>] dup_task_struct kernel/fork.c:488 [inline] [<0000000079b69d2f>] copy_process.part.0+0x164b/0x63f0 kernel/fork.c:1534 [<00000000a7cdc7e1>] copy_process kernel/fork.c:1505 [inline] [<00000000a7cdc7e1>] _do_fork+0x1b8/0xd40 kernel/fork.c:1985 [<00000000fea4bad0>] SYSC_clone kernel/fork.c:2097 [inline] [<00000000fea4bad0>] SyS_clone+0x37/0x50 kernel/fork.c:2091 [<00000000e3277c32>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000d08ac2f7>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb oom_reaper: reaped process 2074 (syz-executor626), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB getty invoked oom-killer: gfp_mask=0x24200ca(GFP_HIGHUSER_MOVABLE), nodemask=0, order=0, oom_score_adj=0 syz-executor626: vmalloc: allocation failure, allocated 1373949952 of 4294975488 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 0 PID: 2074 Comm: syz-executor626 Tainted: G W 4.9.183+ #4 ffff8801cdc8fa08 ffffffff81b580a1 1ffff10039b91f43 dffffc0000000000 ffffffff82aaa940 0000000000000000 0000000000400000 ffff8801cdc8fb30 ffffffff81506893 0000000041b58ab3 ffffffff82e3a0f8 ffffffff81430460 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000d9333dc6>] warn_alloc.cold+0x76/0x93 mm/page_alloc.c:3069 [<00000000af5b9233>] __vmalloc_area_node mm/vmalloc.c:1665 [inline] [<00000000af5b9233>] __vmalloc_node_range+0x3ff/0x610 mm/vmalloc.c:1706 [<000000007db1fc4d>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<000000007db1fc4d>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<000000007db1fc4d>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<000000004445d8b2>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<00000000c2508467>] do_replace net/ipv6/netfilter/ip6_tables.c:1175 [inline] [<00000000c2508467>] do_ip6t_set_ctl+0x231/0x480 net/ipv6/netfilter/ip6_tables.c:1712 [<000000000574e3c8>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<000000000574e3c8>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000fa30172b>] ipv6_setsockopt net/ipv6/ipv6_sockglue.c:922 [inline] [<00000000fa30172b>] ipv6_setsockopt+0x10b/0x140 net/ipv6/ipv6_sockglue.c:906 [<00000000a59d3d96>] tcp_setsockopt net/ipv4/tcp.c:2757 [inline] [<00000000a59d3d96>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2751 [<00000000d36a6213>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<000000008ea7b4b4>] SYSC_setsockopt net/socket.c:1786 [inline] [<000000008ea7b4b4>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<00000000e3277c32>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<00000000d08ac2f7>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:3224 inactive_anon:41 isolated_anon:0 active_file:28 inactive_file:36 isolated_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:4257 slab_unreclaimable:56442 mapped:7 shmem:48 pagetables:350 bounce:0 free:44 free_pcp:32 free_cma:0 Node 0 active_anon:12896kB inactive_anon:164kB active_file:112kB inactive_file:144kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:28kB dirty:0kB writeback:0kB shmem:192kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? yes DMA32 free:16kB 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:104kB local_pcp:0kB free_cma:0kB Normal free:160kB min:5580kB low:9168kB high:12756kB active_anon:12896kB inactive_anon:164kB active_file:112kB inactive_file:144kB unevictable:0kB writepending:0kB present:4718592kB managed:3589316kB mlocked:0kB slab_reclaimable:17028kB slab_unreclaimable:225768kB kernel_stack:3424kB pagetables:1400kB bounce:0kB free_pcp:24kB 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 lowmemorykiller: Killing 'syz-executor626' (2077) (tgid 2077), adj 1000, to free 48kB on behalf of 'rsyslogd' (1902) because cache 280kB is below limit 6144kB for oom_score_adj 0 Free memory is -37328kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:903 in_atomic(): 0, irqs_disabled(): 0, pid: 1902, name: rsyslogd INFO: lockdep is turned off. Preemption disabled at: [<0000000035493d85>] spin_lock include/linux/spinlock.h:302 [inline] [<0000000035493d85>] task_lock include/linux/sched.h:3217 [inline] [<0000000035493d85>] get_task_mm+0x20/0xc0 kernel/fork.c:1010 CPU: 1 PID: 1902 Comm: rsyslogd Tainted: G W 4.9.183+ #4 ffff8801d5dff3c8 ffffffff81b580a1 0000000000000000 0000000000000001 ffff8801d45a17c0 ffffffff810d0ca0 ffff8801d45a17c0 ffff8801d5dff400 ffffffff8140040c ffff8801d45a17c0 ffffffff82a39900 0000000000000387 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000900c0c57>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000014ea8c1e>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000005631e90f>] mmput+0x28/0x370 kernel/fork.c:903 [<000000009def10b0>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000e3177d84>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000a6fbb298>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000a6fbb298>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000009ba80a1>] shrink_slab mm/vmscan.c:466 [inline] [<0000000009ba80a1>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000009cc11bca>] shrink_zones mm/vmscan.c:2751 [inline] [<000000009cc11bca>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000009cc11bca>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000faa995c5>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000faa995c5>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000faa995c5>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000faa995c5>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<000000003281f610>] __alloc_pages include/linux/gfp.h:433 [inline] [<000000003281f610>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<000000003281f610>] alloc_pages_node include/linux/gfp.h:460 [inline] [<000000003281f610>] __page_cache_alloc include/linux/pagemap.h:208 [inline] [<000000003281f610>] pagecache_get_page+0x248/0x740 mm/filemap.c:1367 [<0000000096e779eb>] filemap_fault+0xb1f/0x1360 mm/filemap.c:2331 [<00000000335bb6a5>] ext4_filemap_fault+0x72/0xa0 fs/ext4/inode.c:5854 [<000000002a47bc98>] __do_fault+0x2a8/0x6c0 mm/memory.c:2855 [<00000000bd3228fb>] do_read_fault mm/memory.c:3202 [inline] [<00000000bd3228fb>] do_fault mm/memory.c:3338 [inline] [<00000000bd3228fb>] handle_pte_fault mm/memory.c:3547 [inline] [<00000000bd3228fb>] __handle_mm_fault mm/memory.c:3634 [inline] [<00000000bd3228fb>] handle_mm_fault+0x11bc/0x2420 mm/memory.c:3671 [<00000000b1bb598a>] __do_page_fault+0x3f0/0xa60 arch/x86/mm/fault.c:1404 [<0000000084d10c09>] do_page_fault+0x28/0x30 arch/x86/mm/fault.c:1467 [<00000000aef0bdee>] page_fault+0x25/0x30 arch/x86/entry/entry_64.S:953 CPU: 0 PID: 2063 Comm: getty Tainted: G W 4.9.183+ #4 ffff8801cf74f6f0 ffffffff81b580a1 ffff8801cf74fa48 ffffffff833f0b30 0000000000000000 ffff8801cf74fa60 0000000000000000 ffff8801cf74f770 ffffffff815055db 0000000000000000 0000000000000000 ffffffff8281a275 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<0000000053a9a77d>] dump_header.isra.0+0x142/0x74c mm/oom_kill.c:417 [<00000000580e6ac5>] oom_kill_process.cold+0xd/0xa74 mm/oom_kill.c:852 [<000000000458e42a>] out_of_memory mm/oom_kill.c:1069 [inline] [<000000000458e42a>] out_of_memory+0x29b/0xeb0 mm/oom_kill.c:1009 [<00000000f53017fb>] __alloc_pages_may_oom mm/page_alloc.c:3136 [inline] [<00000000f53017fb>] __alloc_pages_slowpath mm/page_alloc.c:3750 [inline] [<00000000f53017fb>] __alloc_pages_nodemask+0x1730/0x1a80 mm/page_alloc.c:3861 [<000000003281f610>] __alloc_pages include/linux/gfp.h:433 [inline] [<000000003281f610>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<000000003281f610>] alloc_pages_node include/linux/gfp.h:460 [inline] [<000000003281f610>] __page_cache_alloc include/linux/pagemap.h:208 [inline] [<000000003281f610>] pagecache_get_page+0x248/0x740 mm/filemap.c:1367 [<0000000096e779eb>] filemap_fault+0xb1f/0x1360 mm/filemap.c:2331 [<00000000335bb6a5>] ext4_filemap_fault+0x72/0xa0 fs/ext4/inode.c:5854 [<000000002a47bc98>] __do_fault+0x2a8/0x6c0 mm/memory.c:2855 [<00000000bd3228fb>] do_read_fault mm/memory.c:3202 [inline] [<00000000bd3228fb>] do_fault mm/memory.c:3338 [inline] [<00000000bd3228fb>] handle_pte_fault mm/memory.c:3547 [inline] [<00000000bd3228fb>] __handle_mm_fault mm/memory.c:3634 [inline] [<00000000bd3228fb>] handle_mm_fault+0x11bc/0x2420 mm/memory.c:3671 [<00000000b1bb598a>] __do_page_fault+0x3f0/0xa60 arch/x86/mm/fault.c:1404 [<0000000084d10c09>] do_page_fault+0x28/0x30 arch/x86/mm/fault.c:1467 [<00000000aef0bdee>] page_fault+0x25/0x30 arch/x86/entry/entry_64.S:953 Mem-Info: active_anon:3063 inactive_anon:41 isolated_anon:0 active_file:60 inactive_file:63 isolated_file:0 unevictable:0 dirty:1 writeback:0 unstable:0 slab_reclaimable:4265 slab_unreclaimable:56069 mapped:56 shmem:48 pagetables:292 bounce:0 free:6084 free_pcp:0 free_cma:0 Node 0 active_anon:12276kB inactive_anon:164kB active_file:356kB inactive_file:328kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:244kB dirty:4kB writeback:8kB shmem:192kB writeback_tmp:0kB unstable:0kB pages_scanned:6747 all_unreclaimable? no DMA32 free:18680kB min:4696kB low:7712kB high:10728kB active_anon:56kB inactive_anon:0kB active_file:72kB inactive_file:0kB unevictable:0kB writepending:0kB present:3145324kB managed:3020100kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:180kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:120kB local_pcp:0kB free_cma:0kB lowmemorykiller: Killing 'syz-executor626' (2077) (tgid 2077), adj 1000, to free 48kB on behalf of 'syz-executor626' (2083) because cache 436kB is below limit 6144kB for oom_score_adj 0 Free memory is -13368kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:903 in_atomic(): 0, irqs_disabled(): 0, pid: 2083, name: syz-executor626 INFO: lockdep is turned off. Preemption disabled at: [<0000000035493d85>] spin_lock include/linux/spinlock.h:302 [inline] [<0000000035493d85>] task_lock include/linux/sched.h:3217 [inline] [<0000000035493d85>] get_task_mm+0x20/0xc0 kernel/fork.c:1010 CPU: 1 PID: 2083 Comm: syz-executor626 Tainted: G W 4.9.183+ #4 ffff8801c386f2d0 ffffffff81b580a1 0000000000000000 0000000000000001 ffff8801c38c8000 ffffffff810d0ca0 ffff8801c38c8000 ffff8801c386f308 ffffffff8140040c ffff8801c38c8000 ffffffff82a39900 0000000000000387 Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000900c0c57>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000014ea8c1e>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000005631e90f>] mmput+0x28/0x370 kernel/fork.c:903 [<000000009def10b0>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000e3177d84>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000a6fbb298>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000a6fbb298>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<0000000009ba80a1>] shrink_slab mm/vmscan.c:466 [inline] [<0000000009ba80a1>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000009cc11bca>] shrink_zones mm/vmscan.c:2751 [inline] [<000000009cc11bca>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000009cc11bca>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000faa995c5>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000faa995c5>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000faa995c5>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000faa995c5>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<00000000650519cd>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000650519cd>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000650519cd>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000650519cd>] __page_cache_alloc include/linux/pagemap.h:208 [inline] [<00000000650519cd>] __do_page_cache_readahead+0x21d/0x880 mm/readahead.c:183 [<000000002559888a>] ra_submit mm/internal.h:61 [inline] [<000000002559888a>] do_sync_mmap_readahead mm/filemap.c:2239 [inline] [<000000002559888a>] filemap_fault+0xd7f/0x1360 mm/filemap.c:2328 [<00000000335bb6a5>] ext4_filemap_fault+0x72/0xa0 fs/ext4/inode.c:5854 [<000000002a47bc98>] __do_fault+0x2a8/0x6c0 mm/memory.c:2855 [<00000000bd3228fb>] do_read_fault mm/memory.c:3202 [inline] [<00000000bd3228fb>] do_fault mm/memory.c:3338 [inline] [<00000000bd3228fb>] handle_pte_fault mm/memory.c:3547 [inline] [<00000000bd3228fb>] __handle_mm_fault mm/memory.c:3634 [inline] [<00000000bd3228fb>] handle_mm_fault+0x11bc/0x2420 mm/memory.c:3671 [<00000000b1bb598a>] __do_page_fault+0x3f0/0xa60 arch/x86/mm/fault.c:1404 [<0000000084d10c09>] do_page_fault+0x28/0x30 arch/x86/mm/fault.c:1467 [<00000000aef0bdee>] page_fault+0x25/0x30 arch/x86/entry/entry_64.S:953 lowmem_reserve[]: 0 3505 3505 Normal free:5484kB min:5580kB low:9168kB high:12756kB active_anon:12220kB inactive_anon:164kB active_file:0kB inactive_file:120kB unevictable:0kB writepending:4kB present:4718592kB managed:3589316kB mlocked:0kB slab_reclaimable:17076kB slab_unreclaimable:224044kB kernel_stack:3296kB pagetables:1168kB bounce:0kB free_pcp:120kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 0 0 DMA32: 1*4kB (U) 1*8kB (M) 11*16kB (M) 5*32kB (UM) 8*64kB (UM) 3*128kB (UM) 4*256kB (UM) 6*512kB (UM) 7*1024kB (UM) 3*2048kB (U) 0*4096kB = 18652kB Normal: 423*4kB (UMH) 134*8kB (UMH) 38*16kB (MH) 32*32kB (UMH) 13*64kB (UMH) 2*128kB (H) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 5484kB 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 177 16 3 0 -1000 udevd [ 588] 0 588 5377 177 15 3 0 -1000 udevd [ 589] 0 589 5382 178 15 3 0 -1000 udevd [ 1765] 0 1765 2492 573 9 3 0 0 dhclient [ 1898] 0 1898 14264 152 24 3 0 0 rsyslogd [ 1953] 0 1953 4724 50 15 3 0 0 cron [ 1971] 0 1971 3734 44 11 3 0 0 mcstransd [ 1973] 0 1973 12926 1227 27 3 0 0 restorecond [ 1999] 0 1999 12489 152 27 3 0 -1000 sshd [ 2029] 0 2029 3648 41 13 3 0 0 getty [ 2063] 0 2063 3648 42 13 3 0 0 getty [ 2066] 0 2066 17820 197 39 3 0 0 sshd [ 2068] 0 2068 4381 1 4 2 0 0 syz-executor626 [ 2069] 0 2069 4381 12 4 2 0 0 syz-executor626 [ 2070] 0 2070 4380 13 4 2 0 0 syz-executor626 [ 2071] 0 2071 4380 13 4 2 0 0 syz-executor626 [ 2073] 0 2073 4380 13 4 2 0 0 syz-executor626 [ 2075] 0 2075 4380 13 4 2 0 0 syz-executor626 [ 2076] 0 2076 4380 13 4 2 0 0 syz-executor626 [ 2077] 0 2077 4381 12 5 2 0 1000 syz-executor626 [ 2078] 0 2078 4381 12 5 2 0 1000 syz-executor626 [ 2079] 0 2079 4381 12 5 2 0 1000 syz-executor626 [ 2080] 0 2080 4381 12 5 2 0 1000 syz-executor626 [ 2082] 0 2082 4381 12 5 2 0 1000 syz-executor626 [ 2083] 0 2083 4380 13 4 2 0 0 syz-executor626 Out of memory: Kill process 2077 (syz-executor626) score 999 or sacrifice child Killed process 2077 (syz-executor626) total-vm:17524kB, anon-rss:48kB, file-rss:0kB, shmem-rss:0kB syz-executor626: [ 65.988498] syz-executor626: vmalloc: allocation failure, allocated 1503842304 of 4294975488 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 0 PID: 2079 Comm: syz-executor626 Tainted: G W 4.9.183+ #4 ffff8801ceb47a08 ffffffff81b580a1 1ffff10039d68f43 dffffc0000000000 ffffffff82aaa940 0000000000000000 0000000000400000 ffff8801ceb47b30 ffffffff81506893 0000000041b58ab3 ffffffff82e3a0f8 ffffffff81430460Call Trace: [<00000000403610bb>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000403610bb>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000d9333dc6>] warn_alloc.cold+0x76/0x93 mm/page_alloc.c:3069 [<00000000af5b9233>] __vmalloc_area_node mm/vmalloc.c:1665 [inline] [<00000000af5b9233>] __vmalloc_node_range+0x3ff/0x610 mm/vmalloc.c:1706 [<000000007db1fc4d>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<000000007db1fc4d>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<000000007db1fc4d>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<000000004445d8b2>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<00000000c2508467>] do_replace net/ipv6/netfilter/ip6_tables.c:1175 [inline] [<00000000c2508467>] do_ip6t_set_ctl+0x231/0x480 net/ipv6/netfilter/ip6_tables.c:1712 [<000000000574e3c8>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<000000000574e3c8>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114