lowmemorykiller: Killing 'syz-executor.4' (17207) (tgid 17207), adj 1000, to free 40808kB on behalf of 'kswapd0' (33) because cache 61928kB is below limit 65536kB for oom_score_adj 12 Free memory is -5948kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:905 in_atomic(): 0, irqs_disabled(): 0, pid: 33, name: kswapd0 2 locks held by kswapd0/33: #0: (shrinker_rwsem){++++..}, at: [<00000000a2de325d>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<00000000dc1a6d21>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 Preemption disabled at: [<000000000682eec2>] spin_lock include/linux/spinlock.h:302 [inline] [<000000000682eec2>] task_lock include/linux/sched.h:3217 [inline] [<000000000682eec2>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 0 PID: 33 Comm: kswapd0 Not tainted 4.9.189+ #1 ffff8801d84077c0 ffffffff81b65c01 0000000000000000 0000000000000001 ffff8801d95917c0 ffffffff810d1010 ffff8801d95917c0 ffff8801d84077f8 ffffffff814018f3 ffff8801d95917c0 ffffffff82a39fc0 0000000000000389 Call Trace: [<00000000ee5289d5>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ee5289d5>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<0000000093a1fdf9>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000088dc567b>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000002ecbd19d>] mmput+0x28/0x370 kernel/fork.c:905 [<00000000ae9ac08f>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000ae0e4352>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<000000000681a0b0>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000000681a0b0>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000b93bcf1e>] shrink_slab mm/vmscan.c:466 [inline] [<00000000b93bcf1e>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000e7ccfeb2>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<00000000e7ccfeb2>] balance_pgdat mm/vmscan.c:3329 [inline] [<00000000e7ccfeb2>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<00000000a773f42f>] kthread+0x278/0x310 kernel/kthread.c:211 [<0000000044294a14>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 ================================= [ INFO: inconsistent lock state ] 4.9.189+ #1 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: [<00000000dc93070f>] 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] pte_alloc_one+0x23/0x110 arch/x86/mm/pgtable.c:29 __pte_alloc+0x26/0x1f0 mm/memory.c:570 move_page_tables+0xb4d/0xd60 mm/mremap.c:232 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: 26167 hardirqs last enabled at (26167): [<000000002f416784>] dump_stack+0x100/0x120 lib/dump_stack.c:56 hardirqs last disabled at (26166): [<0000000018eb3258>] dump_stack+0x2c/0x120 lib/dump_stack.c:38 softirqs last enabled at (21326): [<000000006f969a6d>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (21303): [<0000000040f03af4>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (21303): [<0000000040f03af4>] 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: [<00000000a2de325d>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<00000000dc1a6d21>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 #2: (lmk_event_lock){+.+.-.}, at: [<00000000d0a82cdc>] spin_lock include/linux/spinlock.h:302 [inline] #2: (lmk_event_lock){+.+.-.}, at: [<00000000d0a82cdc>] handle_lmk_event+0xfb/0x8a0 drivers/staging/android/lowmemorykiller.c:114 stack backtrace: CPU: 0 PID: 33 Comm: kswapd0 Tainted: G W 4.9.189+ #1 ffff8801d8407500 ffffffff81b65c01 00000000000000f0 ffff8801d95917c0 ffffffff83cafb00 ffff8801d9592108 ffffffff84250fc0 ffff8801d8407578 ffffffff81408330 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<00000000ee5289d5>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ee5289d5>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000393de811>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<00000000393de811>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<00000000b54b4d36>] valid_state kernel/locking/lockdep.c:2400 [inline] [<00000000b54b4d36>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<00000000b54b4d36>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<000000004f46e2b8>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<000000004f46e2b8>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<0000000007cecd80>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<00000000e9736997>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<00000000dc93070f>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<00000000968f8f4b>] handle_lmk_event+0x13c/0x8a0 drivers/staging/android/lowmemorykiller.c:128 [<00000000ae0e4352>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<000000000681a0b0>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000000681a0b0>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000b93bcf1e>] shrink_slab mm/vmscan.c:466 [inline] [<00000000b93bcf1e>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000e7ccfeb2>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<00000000e7ccfeb2>] balance_pgdat mm/vmscan.c:3329 [inline] [<00000000e7ccfeb2>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<00000000a773f42f>] kthread+0x278/0x310 kernel/kthread.c:211 [<0000000044294a14>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 lowmemorykiller: Killing 'syz-executor.0' (10665) (tgid 10665), adj 1000, to free 35980kB on behalf of 'kswapd0' (33) because cache 61928kB is below limit 65536kB for oom_score_adj 12 Free memory is -5948kB above reserved lowmemorykiller: Killing 'syz-executor.0' (10665) (tgid 10665), adj 1000, to free 35980kB on behalf of 'syz-executor.3' (19296) because cache 60628kB is below limit 65536kB for oom_score_adj 12 Free memory is -13200kB above reserved lowmemorykiller: Killing 'syz-executor.0' (12590) (tgid 12590), adj 1000, to free 35976kB on behalf of 'syz-executor.3' (19296) because cache 56028kB is below limit 65536kB for oom_score_adj 12 Free memory is -13004kB above reserved lowmemorykiller: Killing 'syz-executor.1' (12692) (tgid 12692), adj 1000, to free 35976kB on behalf of 'syz-executor.3' (19296) because cache 54928kB is below limit 65536kB for oom_score_adj 12 Free memory is -13112kB above reserved lowmemorykiller: Killing 'syz-executor.0' (17888) (tgid 17888), adj 1000, to free 35972kB on behalf of 'syz-executor.3' (19296) because cache 51528kB is below limit 65536kB for oom_score_adj 12 Free memory is -12764kB above reserved lowmemorykiller: Killing 'syz-executor.2' (9846) (tgid 9846), adj 1000, to free 35964kB on behalf of 'syz-executor.3' (19296) because cache 51128kB is below limit 65536kB for oom_score_adj 12 Free memory is -13160kB above reserved lowmemorykiller: Killing 'syz-executor.1' (10770) (tgid 10770), adj 1000, to free 35960kB on behalf of 'syz-executor.3' (19296) because cache 47928kB is below limit 65536kB for oom_score_adj 12 Free memory is -10360kB above reserved lowmemorykiller: Killing 'syz-executor.1' (10814) (tgid 10814), adj 1000, to free 35960kB on behalf of 'syz-executor.3' (19296) because cache 46228kB is below limit 65536kB for oom_score_adj 12 Free memory is -13020kB above reserved lowmemorykiller: Killing 'syz-executor.2' (9818) (tgid 9818), adj 1000, to free 35956kB on behalf of 'syz-executor.3' (19296) because cache 45528kB is below limit 65536kB for oom_score_adj 12 Free memory is -13104kB above reserved lowmemorykiller: Killing 'syz-executor.3' (14543) (tgid 14543), adj 1000, to free 35956kB on behalf of 'syz-executor.3' (19296) because cache 45280kB is below limit 65536kB for oom_score_adj 12 Free memory is -13172kB above reserved lowmemorykiller: Killing 'syz-executor.3' (15376) (tgid 15376), adj 1000, to free 35956kB on behalf of 'syz-executor.3' (19296) because cache 44980kB is below limit 65536kB for oom_score_adj 12 Free memory is -13296kB above reserved lowmemorykiller: Killing 'syz-executor.1' (9261) (tgid 9261), adj 1000, to free 35952kB on behalf of 'syz-executor.3' (19296) because cache 44680kB is below limit 65536kB for oom_score_adj 12 Free memory is -13108kB above reserved lowmemorykiller: Killing 'syz-executor.0' (10350) (tgid 10350), adj 1000, to free 35952kB on behalf of 'syz-executor.3' (19296) because cache 44380kB is below limit 65536kB for oom_score_adj 12 Free memory is -13216kB above reserved lowmemorykiller: Killing 'syz-executor.3' (15553) (tgid 15553), adj 1000, to free 35952kB on behalf of 'syz-executor.3' (19296) because cache 44180kB is below limit 65536kB for oom_score_adj 12 Free memory is -13116kB above reserved lowmemorykiller: Killing 'syz-executor.3' (15699) (tgid 15699), adj 1000, to free 35952kB on behalf of 'syz-executor.3' (19296) because cache 43780kB is below limit 65536kB for oom_score_adj 12 Free memory is -12984kB above reserved lowmemorykiller: Killing 'syz-executor.3' (19247) (tgid 19246), adj 1000, to free 35952kB on behalf of 'syz-executor.3' (19296) because cache 43380kB is below limit 65536kB for oom_score_adj 12 Free memory is -13132kB above reserved lowmemorykiller: Killing 'syz-executor.0' (10446) (tgid 10446), adj 1000, to free 34980kB on behalf of 'syz-executor.3' (9496) because cache 208kB is below limit 6144kB for oom_score_adj 0 Free memory is -13352kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:905 in_atomic(): 0, irqs_disabled(): 0, pid: 9496, name: syz-executor.3 INFO: lockdep is turned off. Preemption disabled at: [<000000000682eec2>] spin_lock include/linux/spinlock.h:302 [inline] [<000000000682eec2>] task_lock include/linux/sched.h:3217 [inline] [<000000000682eec2>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 0 PID: 9496 Comm: syz-executor.3 Tainted: G W 4.9.189+ #1 ffff8801a90373b8 ffffffff81b65c01 0000000000000000 0000000000000001 ffff8801ce128000 ffffffff810d1010 ffff8801ce128000 ffff8801a90373f0 ffffffff814018f3 ffff8801ce128000 ffffffff82a39fc0 0000000000000389 Call Trace: [<00000000ee5289d5>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ee5289d5>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<0000000093a1fdf9>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000088dc567b>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000002ecbd19d>] mmput+0x28/0x370 kernel/fork.c:905 [<00000000ae9ac08f>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000ae0e4352>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<000000000681a0b0>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000000681a0b0>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000b93bcf1e>] shrink_slab mm/vmscan.c:466 [inline] [<00000000b93bcf1e>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000270578c7>] shrink_zones mm/vmscan.c:2751 [inline] [<00000000270578c7>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<00000000270578c7>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000b0e47ed6>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000b0e47ed6>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000b0e47ed6>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000b0e47ed6>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<0000000097e95dfa>] __alloc_pages include/linux/gfp.h:433 [inline] [<0000000097e95dfa>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<0000000097e95dfa>] alloc_pages_node include/linux/gfp.h:460 [inline] [<0000000097e95dfa>] wp_page_copy+0x15a/0x1470 mm/memory.c:2169 [<000000001a7f0c0a>] do_wp_page+0x2a6/0x20a0 mm/memory.c:2439 [<000000001ae0b709>] handle_pte_fault mm/memory.c:3562 [inline] [<000000001ae0b709>] __handle_mm_fault mm/memory.c:3634 [inline] [<000000001ae0b709>] handle_mm_fault+0xeff/0x2420 mm/memory.c:3671 [<00000000e009733e>] __do_page_fault+0x3f0/0xa60 arch/x86/mm/fault.c:1404 [<000000006483bfce>] do_page_fault+0x28/0x30 arch/x86/mm/fault.c:1467 [<00000000a9cd773f>] page_fault+0x25/0x30 arch/x86/entry/entry_64.S:956 lowmemorykiller: Killing 'syz-executor.0' (10838) (tgid 10838), adj 1000, to free 34980kB on behalf of 'syz-fuzzer' (2046) because cache 328kB is below limit 6144kB for oom_score_adj 0 Free memory is -13428kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:905 in_atomic(): 0, irqs_disabled(): 0, pid: 2046, name: syz-fuzzer INFO: lockdep is turned off. Preemption disabled at: [<000000000682eec2>] spin_lock include/linux/spinlock.h:302 [inline] [<000000000682eec2>] task_lock include/linux/sched.h:3217 [inline] [<000000000682eec2>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 1 PID: 2046 Comm: syz-fuzzer Tainted: G W 4.9.189+ #1 ffff8801ce90f2d0 ffffffff81b65c01 0000000000000000 0000000000000001 ffff8801d1efc740 ffffffff810d1010 ffff8801d1efc740 ffff8801ce90f308 ffffffff814018f3 ffff8801d1efc740 ffffffff82a39fc0 0000000000000389 Call Trace: [<00000000ee5289d5>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ee5289d5>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<0000000093a1fdf9>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000088dc567b>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000002ecbd19d>] mmput+0x28/0x370 kernel/fork.c:905 [<00000000ae9ac08f>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000ae0e4352>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<000000000681a0b0>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000000681a0b0>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000b93bcf1e>] shrink_slab mm/vmscan.c:466 [inline] [<00000000b93bcf1e>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000270578c7>] shrink_zones mm/vmscan.c:2751 [inline] [<00000000270578c7>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<00000000270578c7>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000b0e47ed6>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000b0e47ed6>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000b0e47ed6>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000b0e47ed6>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<000000003d1c687e>] __alloc_pages include/linux/gfp.h:433 [inline] [<000000003d1c687e>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<000000003d1c687e>] alloc_pages_node include/linux/gfp.h:460 [inline] [<000000003d1c687e>] __page_cache_alloc include/linux/pagemap.h:208 [inline] [<000000003d1c687e>] __do_page_cache_readahead+0x21d/0x880 mm/readahead.c:183 [<00000000d2d40012>] ra_submit mm/internal.h:61 [inline] [<00000000d2d40012>] do_sync_mmap_readahead mm/filemap.c:2239 [inline] [<00000000d2d40012>] filemap_fault+0xd7f/0x1360 mm/filemap.c:2328 [<000000008caa2aee>] ext4_filemap_fault+0x72/0xa0 fs/ext4/inode.c:5854 [<0000000049431e23>] __do_fault+0x2a8/0x6c0 mm/memory.c:2855 [<00000000713d9f19>] do_read_fault mm/memory.c:3202 [inline] [<00000000713d9f19>] do_fault mm/memory.c:3338 [inline] [<00000000713d9f19>] handle_pte_fault mm/memory.c:3547 [inline] [<00000000713d9f19>] __handle_mm_fault mm/memory.c:3634 [inline] [<00000000713d9f19>] handle_mm_fault+0x11bc/0x2420 mm/memory.c:3671 [<00000000e009733e>] __do_page_fault+0x3f0/0xa60 arch/x86/mm/fault.c:1404 [<000000006483bfce>] do_page_fault+0x28/0x30 arch/x86/mm/fault.c:1467 [<00000000a9cd773f>] page_fault+0x25/0x30 arch/x86/entry/entry_64.S:956 lowmemorykiller: Killing 'syz-executor.0' (10838) (tgid 10838), adj 1000, to free 34980kB on behalf of 'kswapd0' (33) because cache 328kB is below limit 6144kB for oom_score_adj 0 Free memory is -13428kB above reserved lowmemorykiller: Killing 'syz-executor.0' (13573) (tgid 13573), adj 1000, to free 34980kB on behalf of 'syz-executor.0' (13154) because cache 172kB is below limit 6144kB for oom_score_adj 0 Free memory is -13296kB above reserved lowmemorykiller: Killing 'syz-executor.0' (13154) (tgid 13154), adj 1000, to free 34980kB on behalf of 'syz-executor.0' (12971) because cache 172kB is below limit 6144kB for oom_score_adj 0 Free memory is -13296kB above reserved lowmemorykiller: Killing 'syz-executor.0' (12971) (tgid 12971), adj 1000, to free 34980kB on behalf of 'syz-executor.3' (9496) because cache 172kB is below limit 6144kB for oom_score_adj 0 Free memory is -13296kB above reserved lowmemorykiller: Killing 'syz-executor.3' (19247) (tgid 19246), adj 1000, to free 34980kB on behalf of 'syz-fuzzer' (2046) because cache 360kB is below limit 6144kB for oom_score_adj 0 Free memory is -13332kB above reserved lowmemorykiller: Killing 'syz-executor.3' (19247) (tgid 19246), adj 1000, to free 34980kB on behalf of 'syz-fuzzer' (2066) because cache 212kB 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:905 in_atomic(): 0, irqs_disabled(): 0, pid: 2046, name: syz-fuzzer INFO: lockdep is turned off. Preemption disabled at: [<000000000682eec2>] spin_lock include/linux/spinlock.h:302 [inline] [<000000000682eec2>] task_lock include/linux/sched.h:3217 [inline] [<000000000682eec2>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 1 PID: 2046 Comm: syz-fuzzer Tainted: G W 4.9.189+ #1 ffff8801ce90f2d0 ffffffff81b65c01 0000000000000000 0000000000000001 ffff8801d1efc740 ffffffff810d1010 ffff8801d1efc740 ffff8801ce90f308 ffffffff814018f3 ffff8801d1efc740 ffffffff82a39fc0 0000000000000389 Call Trace: [<00000000ee5289d5>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ee5289d5>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<0000000093a1fdf9>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000088dc567b>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000002ecbd19d>] mmput+0x28/0x370 kernel/fork.c:905 [<00000000ae9ac08f>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000ae0e4352>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<000000000681a0b0>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000000681a0b0>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000b93bcf1e>] shrink_slab mm/vmscan.c:466 [inline] [<00000000b93bcf1e>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000270578c7>] shrink_zones mm/vmscan.c:2751 [inline] [<00000000270578c7>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<00000000270578c7>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000b0e47ed6>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000b0e47ed6>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000b0e47ed6>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000b0e47ed6>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<000000003d1c687e>] __alloc_pages include/linux/gfp.h:433 [inline] [<000000003d1c687e>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<000000003d1c687e>] alloc_pages_node include/linux/gfp.h:460 [inline] [<000000003d1c687e>] __page_cache_alloc include/linux/pagemap.h:208 [inline] [<000000003d1c687e>] __do_page_cache_readahead+0x21d/0x880 mm/readahead.c:183 [<00000000d2d40012>] ra_submit mm/internal.h:61 [inline] [<00000000d2d40012>] do_sync_mmap_readahead mm/filemap.c:2239 [inline] [<00000000d2d40012>] filemap_fault+0xd7f/0x1360 mm/filemap.c:2328 [<000000008caa2aee>] ext4_filemap_fault+0x72/0xa0 fs/ext4/inode.c:5854 [<0000000049431e23>] __do_fault+0x2a8/0x6c0 mm/memory.c:2855 [<00000000713d9f19>] do_read_fault mm/memory.c:3202 [inline] [<00000000713d9f19>] do_fault mm/memory.c:3338 [inline] [<00000000713d9f19>] handle_pte_fault mm/memory.c:3547 [inline] [<00000000713d9f19>] __handle_mm_fault mm/memory.c:3634 [inline] [<00000000713d9f19>] handle_mm_fault+0x11bc/0x2420 mm/memory.c:3671 [<00000000e009733e>] __do_page_fault+0x3f0/0xa60 arch/x86/mm/fault.c:1404 [<000000006483bfce>] do_page_fault+0x28/0x30 arch/x86/mm/fault.c:1467 [<00000000a9cd773f>] page_fault+0x25/0x30 arch/x86/entry/entry_64.S:956 lowmemorykiller: Killing 'syz-executor.3' (19247) (tgid 19246), adj 1000, to free 34980kB on behalf of 'syz-fuzzer' (2066) because cache 180kB is below limit 6144kB for oom_score_adj 0 Free memory is -13220kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:905 in_atomic(): 0, irqs_disabled(): 0, pid: 2066, name: syz-fuzzer INFO: lockdep is turned off. Preemption disabled at: [<000000000682eec2>] spin_lock include/linux/spinlock.h:302 [inline] [<000000000682eec2>] task_lock include/linux/sched.h:3217 [inline] [<000000000682eec2>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 1 PID: 2066 Comm: syz-fuzzer Tainted: G W 4.9.189+ #1 ffff8801d417f2d0 ffffffff81b65c01 0000000000000000 0000000000000001 ffff8801c99a17c0 ffffffff810d1010 ffff8801c99a17c0 ffff8801d417f308 ffffffff814018f3 ffff8801c99a17c0 ffffffff82a39fc0 0000000000000389 Call Trace: [<00000000ee5289d5>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000ee5289d5>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<0000000093a1fdf9>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000088dc567b>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<000000002ecbd19d>] mmput+0x28/0x370 kernel/fork.c:905 [<00000000ae9ac08f>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000ae0e4352>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<000000000681a0b0>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000000681a0b0>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000b93bcf1e>] shrink_slab mm/vmscan.c:466 [inline] [<00000000b93bcf1e>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<00000000270578c7>] shrink_zones mm/vmscan.c:2751 [inline] [<00000000270578c7>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<00000000270578c7>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000b0e47ed6>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000b0e47ed6>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000b0e47ed6>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000b0e47ed6>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<000000003d1c687e>] __alloc_pages include/linux/gfp.h:433 [inline] [<000000003d1c687e>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<000000003d1c687e>] alloc_pages_node include/linux/gfp.h:460 [inline] [<000000003d1c687e>] __page_cache_alloc include/linux/pagemap.h:208 [inline] [<000000003d1c687e>] __do_page_cache_readahead+0x21d/0x880 mm/readahead.c:183 [<00000000d2d40012>] ra_submit mm/internal.h:61 [inline] [<00000000d2d40012>] do_sync_mmap_readahead mm/filemap.c:2239 [inline] [<00000000d2d40012>] filemap_fault+0xd7f/0x1360 mm/filemap.c:2328 [<000000008caa2aee>] ext4_filemap_fault+0x72/0xa0 fs/ext4/inode.c:5854 [<0000000049431e23>] __do_fault+0x2a8/0x6c0 mm/memory.c:2855 [<00000000713d9f19>] do_read_fault mm/memory.c:3202 [inline] [<00000000713d9f19>] do_fault mm/memory.c:3338 [inline] [<00000000713d9f19>] handle_pte_fault mm/memory.c:3547 [inline] [<00000000713d9f19>] __handle_mm_fault mm/memory.c:3634 [inline] [<00000000713d9f19>] handle_mm_fault+0x11bc/0x2420 mm/memory.c:3671 [<00000000e009733e>] __do_page_fault+0x3f0/0xa60 arch/x86/mm/fault.c:1404 [<000000006483bfce>] do_page_fault+0x28/0x30 arch/x86/mm/fault.c:1467 [<00000000a9cd773f>] page_fault+0x25/0x30 arch/x86/entry/entry_64.S:956 lowmemorykiller: Killing 'syz-executor.3' (19247) (tgid 19246), adj 1000, to free 34980kB on behalf of 'syz-executor.3' (9496) because cache 220kB is below limit 6144kB for oom_score_adj 0 Free memory is -13420kB above reserved lowmemorykiller: Killing 'syz-executor.3' (19247) (tgid 19246), adj 1000, to free 34980kB on behalf of 'syz-executor.3' (19296) because cache 220kB is below limit 6144kB for oom_score_adj 0 Free memory is -13420kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:905 in_atomic(): 0, irqs_disabled(): 0, pid: 9496, name: syz-executor.3 INFO: lockdep is turned off. Preemption disabled at: [<000000000682eec2>] spin_lock include/linux/spinlock.h:302 [inline] [<000000000682eec2>] task_lock include/linux/sched.h:3217 [inline] [<000000000682eec2>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 0 PID: 9496 Comm: syz-executor.3 Tainted: G W 4.9.189+ #1 ffff8801a90372d0 ffffffff81b65c01 0000000000000000 0000000000000001 ffff8801ce128000 ffffffff810d1010 ffff8801ce128000 ffff8801a9037308 ffffffff814018f3 ffff8801ce128000 ffffffff82a39fc0 0000000000000389