lowmemorykiller: Killing 'syz-executor.4' (11583) (tgid 11583), adj 1000, to free 36048kB on behalf of 'kswapd0' (33) because cache 62040kB is below limit 65536kB for oom_score_adj 12 Free memory is -9196kB 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: [<00000000fd68f382>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<000000008feb1b96>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 Preemption disabled at: [<0000000031ef90c3>] spin_lock include/linux/spinlock.h:302 [inline] [<0000000031ef90c3>] task_lock include/linux/sched.h:3217 [inline] [<0000000031ef90c3>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 1 PID: 33 Comm: kswapd0 Not tainted 4.9.189+ #22 ffff8801d84077c0 ffffffff81b65c01 0000000000000000 0000000000000001 ffff8801d8df8000 ffffffff810d1010 ffff8801d8df8000 ffff8801d84077f8 ffffffff814018f3 ffff8801d8df8000 ffffffff82a39fc0 0000000000000389 Call Trace: [<00000000eae3d6b7>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000eae3d6b7>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000133bec45>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000046c7da8d>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<00000000aeccbfe4>] mmput+0x28/0x370 kernel/fork.c:905 [<00000000faf7f926>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<0000000012092b2d>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000547c72b1>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000547c72b1>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000347b7657>] shrink_slab mm/vmscan.c:466 [inline] [<00000000347b7657>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000002215d2c2>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<000000002215d2c2>] balance_pgdat mm/vmscan.c:3329 [inline] [<000000002215d2c2>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<000000008cfd11bd>] kthread+0x278/0x310 kernel/kthread.c:211 [<000000007ea584eb>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 ================================= [ INFO: inconsistent lock state ] 4.9.189+ #22 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: [<000000000c59289d>] get_cmdline+0xa3/0x2d0 mm/util.c:641 mark_held_locks+0xb1/0x100 kernel/locking/lockdep.c:2660 __lockdep_trace_alloc kernel/locking/lockdep.c:2882 [inline] lockdep_trace_alloc+0x18c/0x2b0 kernel/locking/lockdep.c:2897 __alloc_pages_nodemask+0x143/0x1a80 mm/page_alloc.c:3803 __alloc_pages include/linux/gfp.h:433 [inline] __alloc_pages_node include/linux/gfp.h:446 [inline] alloc_pages_node include/linux/gfp.h:460 [inline] pmd_alloc_one arch/x86/include/asm/pgalloc.h:88 [inline] __pmd_alloc+0x4a/0x330 mm/memory.c:3742 pmd_alloc include/linux/mm.h:1625 [inline] alloc_new_pmd mm/mremap.c:64 [inline] move_page_tables+0xadb/0xd60 mm/mremap.c:212 shift_arg_pages+0x1ae/0x470 fs/exec.c:642 setup_arg_pages+0x60d/0x7c0 fs/exec.c:754 load_elf_binary+0xa84/0x4a90 fs/binfmt_elf.c:860 search_binary_handler fs/exec.c:1621 [inline] search_binary_handler+0x14f/0x700 fs/exec.c:1599 exec_binprm fs/exec.c:1663 [inline] do_execveat_common.isra.0+0xf81/0x1db0 fs/exec.c:1785 do_execve+0x3a/0x50 fs/exec.c:1829 run_init_process+0x33/0x37 init/main.c:904 try_to_run_init_process+0x18/0x48 init/main.c:913 kernel_init+0xf2/0x163 init/main.c:984 ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 irq event stamp: 1209859 hardirqs last enabled at (1209859): [<00000000a3970371>] dump_stack+0x100/0x120 lib/dump_stack.c:56 hardirqs last disabled at (1209858): [<0000000074a6bbd4>] dump_stack+0x2c/0x120 lib/dump_stack.c:38 softirqs last enabled at (1203798): [<000000001b3e0af9>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (1203787): [<000000000e32b766>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (1203787): [<000000000e32b766>] 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: [<00000000fd68f382>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<000000008feb1b96>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 #2: (lmk_event_lock){+.+.-.}, at: [<00000000be294962>] spin_lock include/linux/spinlock.h:302 [inline] #2: (lmk_event_lock){+.+.-.}, at: [<00000000be294962>] handle_lmk_event+0xfb/0x8a0 drivers/staging/android/lowmemorykiller.c:114 stack backtrace: CPU: 1 PID: 33 Comm: kswapd0 Tainted: G W 4.9.189+ #22 ffff8801d8407500 ffffffff81b65c01 00000000000000f0 ffff8801d8df8000 ffffffff83caf7a0 ffff8801d8df8948 ffffffff84250fc0 ffff8801d8407578 ffffffff81408330 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<00000000eae3d6b7>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000eae3d6b7>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<0000000025a1c60f>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<0000000025a1c60f>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<00000000e336f87c>] valid_state kernel/locking/lockdep.c:2400 [inline] [<00000000e336f87c>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<00000000e336f87c>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<0000000045dadcd5>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<0000000045dadcd5>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<00000000ed132f66>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<000000009d0315b4>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<000000000c59289d>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<00000000b5fe6d06>] handle_lmk_event+0x13c/0x8a0 drivers/staging/android/lowmemorykiller.c:128 [<0000000012092b2d>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000547c72b1>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000547c72b1>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000347b7657>] shrink_slab mm/vmscan.c:466 [inline] [<00000000347b7657>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000002215d2c2>] kswapd_shrink_node mm/vmscan.c:3209 [inline] [<000000002215d2c2>] balance_pgdat mm/vmscan.c:3329 [inline] [<000000002215d2c2>] kswapd+0x7f8/0x13b0 mm/vmscan.c:3523 [<000000008cfd11bd>] kthread+0x278/0x310 kernel/kthread.c:211 [<000000007ea584eb>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:375 netlink: 8 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.4'. lowmemorykiller: Killing 'syz-executor.4' (11506) (tgid 11506), adj 1000, to free 36044kB on behalf of 'blkid' (25462) because cache 61632kB is below limit 65536kB for oom_score_adj 12 Free memory is -7080kB above reserved lowmemorykiller: Killing 'syz-executor.4' (11518) (tgid 11518), adj 1000, to free 36044kB on behalf of 'blkid' (25462) because cache 61632kB is below limit 65536kB for oom_score_adj 12 Free memory is -7080kB above reserved lowmemorykiller: Killing 'syz-executor.4' (11544) (tgid 11544), adj 1000, to free 36044kB on behalf of 'blkid' (25462) because cache 61632kB is below limit 65536kB for oom_score_adj 12 Free memory is -6268kB above reserved lowmemorykiller: Killing 'syz-executor.4' (11426) (tgid 11426), adj 1000, to free 36008kB on behalf of 'kswapd0' (33) because cache 62272kB is below limit 65536kB for oom_score_adj 12 Free memory is -9912kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25760) (tgid 25760), adj 1000, to free 36000kB on behalf of 'blkid' (25462) because cache 62072kB is below limit 65536kB for oom_score_adj 12 Free memory is -13260kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25823) (tgid 25823), adj 1000, to free 35980kB on behalf of 'modprobe' (27167) because cache 61872kB is below limit 65536kB for oom_score_adj 12 Free memory is -13160kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:905 in_atomic(): 0, irqs_disabled(): 0, pid: 27167, name: modprobe INFO: lockdep is turned off. Preemption disabled at: [<0000000031ef90c3>] spin_lock include/linux/spinlock.h:302 [inline] [<0000000031ef90c3>] task_lock include/linux/sched.h:3217 [inline] [<0000000031ef90c3>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 1 PID: 27167 Comm: modprobe Tainted: G W 4.9.189+ #22 ffff8801bc58f088 ffffffff81b65c01 0000000000000000 0000000000000001 ffff880196990000 ffffffff810d1010 ffff880196990000 ffff8801bc58f0c0 ffffffff814018f3 ffff880196990000 ffffffff82a39fc0 0000000000000389 Call Trace: [<00000000eae3d6b7>] __dump_stack lib/dump_stack.c:15 [inline] [<00000000eae3d6b7>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000133bec45>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<0000000046c7da8d>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<00000000aeccbfe4>] mmput+0x28/0x370 kernel/fork.c:905 [<00000000faf7f926>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<0000000012092b2d>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<00000000547c72b1>] do_shrink_slab mm/vmscan.c:399 [inline] [<00000000547c72b1>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000347b7657>] shrink_slab mm/vmscan.c:466 [inline] [<00000000347b7657>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000003f738f54>] shrink_zones mm/vmscan.c:2751 [inline] [<000000003f738f54>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000003f738f54>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000dd74aecb>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000dd74aecb>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000dd74aecb>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000dd74aecb>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<00000000a09677a2>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000a09677a2>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000a09677a2>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000a09677a2>] alloc_zeroed_user_highpage_movable include/linux/highmem.h:183 [inline] [<00000000a09677a2>] do_anonymous_page mm/memory.c:2761 [inline] [<00000000a09677a2>] handle_pte_fault mm/memory.c:3545 [inline] [<00000000a09677a2>] __handle_mm_fault mm/memory.c:3634 [inline] [<00000000a09677a2>] handle_mm_fault+0x12e1/0x2420 mm/memory.c:3671 [<0000000067b22148>] __do_page_fault+0x3f0/0xa60 arch/x86/mm/fault.c:1404 [<0000000048133a95>] do_page_fault+0x28/0x30 arch/x86/mm/fault.c:1467 [<00000000b009d5fd>] page_fault+0x25/0x30 arch/x86/entry/entry_64.S:956 [<0000000068bc6280>] do_generic_file_read mm/filemap.c:1954 [inline] [<0000000068bc6280>] generic_file_read_iter+0x828/0x1ab0 mm/filemap.c:2122 [<0000000023c1c50b>] new_sync_read fs/read_write.c:441 [inline] [<0000000023c1c50b>] __vfs_read+0x3be/0x550 fs/read_write.c:453 [<00000000261d0bc2>] vfs_read+0x137/0x380 fs/read_write.c:474 [<00000000180e43f8>] SYSC_read fs/read_write.c:591 [inline] [<00000000180e43f8>] SyS_read+0x121/0x270 fs/read_write.c:584 [<0000000074e8493b>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<000000005be5aaf3>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor.3' (25773) (tgid 25773), adj 1000, to free 36000kB on behalf of 'blkid' (25462) because cache 62072kB is below limit 65536kB for oom_score_adj 12 Free memory is -13260kB above reserved lowmemorykiller: Killing 'syz-executor.1' (11540) (tgid 11540), adj 1000, to free 35952kB on behalf of 'syz-fuzzer' (2041) because cache 61572kB is below limit 65536kB for oom_score_adj 12 Free memory is -12988kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25855) (tgid 25855), adj 1000, to free 35980kB on behalf of 'modprobe' (27167) because cache 61872kB is below limit 65536kB for oom_score_adj 12 Free memory is -13164kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25855) (tgid 25855), adj 1000, to free 35980kB on behalf of 'blkid' (25462) because cache 61772kB is below limit 65536kB for oom_score_adj 12 Free memory is -13288kB above reserved lowmemorykiller: Killing 'syz-executor.1' (11581) (tgid 11581), adj 1000, to free 35952kB on behalf of 'blkid' (25462) because cache 61620kB is below limit 65536kB for oom_score_adj 12 Free memory is -12388kB above reserved lowmemorykiller: Killing 'syz-executor.1' (11605) (tgid 11605), adj 1000, to free 35952kB on behalf of 'blkid' (25462) because cache 61220kB is below limit 65536kB for oom_score_adj 12 Free memory is -13372kB above reserved lowmemorykiller: Killing 'syz-executor.3' (26972) (tgid 26972), adj 1000, to free 35948kB on behalf of 'blkid' (25462) because cache 60420kB is below limit 65536kB for oom_score_adj 12 Free memory is -13324kB above reserved lowmemorykiller: Killing 'syz-executor.3' (24661) (tgid 24661), adj 1000, to free 35936kB on behalf of 'blkid' (25462) because cache 60220kB is below limit 65536kB for oom_score_adj 12 Free memory is -13224kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25805) (tgid 25805), adj 1000, to free 34984kB on behalf of 'syz-fuzzer' (2041) because cache 59320kB is below limit 65536kB for oom_score_adj 12 Free memory is -13308kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25320) (tgid 25320), adj 1000, to free 34988kB on behalf of 'blkid' (25462) because cache 59520kB is below limit 65536kB for oom_score_adj 12 Free memory is -13308kB above reserved lowmemorykiller: Killing 'syz-executor.1' (11605) (tgid 11605), adj 1000, to free 35952kB on behalf of 'modprobe' (27167) because cache 61120kB is below limit 65536kB for oom_score_adj 12 Free memory is -13372kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25771) (tgid 25771), adj 1000, to free 34976kB on behalf of 'modprobe' (27167) because cache 59220kB is below limit 65536kB for oom_score_adj 12 Free memory is -12608kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25847) (tgid 25847), adj 1000, to free 34984kB on behalf of 'syz-fuzzer' (2041) because cache 59320kB is below limit 65536kB for oom_score_adj 12 Free memory is -13308kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25774) (tgid 25774), adj 1000, to free 34976kB on behalf of 'syz-fuzzer' (2041) because cache 59220kB is below limit 65536kB for oom_score_adj 12 Free memory is -12496kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25867) (tgid 25867), adj 1000, to free 34984kB on behalf of 'blkid' (25462) because cache 59220kB is below limit 65536kB for oom_score_adj 12 Free memory is -12608kB above reserved lowmemorykiller: Killing 'syz-executor.2' (9864) (tgid 9864), adj 1000, to free 34976kB on behalf of 'blkid' (25462) because cache 59368kB is below limit 65536kB for oom_score_adj 12 Free memory is -11496kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25337) (tgid 25337), adj 1000, to free 34972kB on behalf of 'syz-fuzzer' (2041) because cache 59168kB is below limit 65536kB for oom_score_adj 12 Free memory is -13312kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25390) (tgid 25390), adj 1000, to free 34972kB on behalf of 'syz-fuzzer' (2041) because cache 59168kB is below limit 65536kB for oom_score_adj 12 Free memory is -13312kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25263) (tgid 25263), adj 1000, to free 34972kB on behalf of 'blkid' (25462) because cache 59368kB is below limit 65536kB for oom_score_adj 12 Free memory is -13312kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25424) (tgid 25424), adj 1000, to free 34972kB on behalf of 'blkid' (25462) because cache 59068kB is below limit 65536kB for oom_score_adj 12 Free memory is -12216kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25450) (tgid 25450), adj 1000, to free 34972kB on behalf of 'blkid' (25462) because cache 58816kB is below limit 65536kB for oom_score_adj 12 Free memory is -13352kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25482) (tgid 25482), adj 1000, to free 34972kB on behalf of 'blkid' (25462) because cache 58716kB is below limit 65536kB for oom_score_adj 12 Free memory is -13352kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25543) (tgid 25543), adj 1000, to free 34972kB on behalf of 'blkid' (25462) because cache 58716kB is below limit 65536kB for oom_score_adj 12 Free memory is -13052kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25938) (tgid 25938), adj 1000, to free 34972kB on behalf of 'blkid' (25462) because cache 58616kB is below limit 65536kB for oom_score_adj 12 Free memory is -13152kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25947) (tgid 25947), adj 1000, to free 34972kB on behalf of 'blkid' (25462) because cache 58516kB is below limit 65536kB for oom_score_adj 12 Free memory is -13152kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25960) (tgid 25960), adj 1000, to free 34972kB on behalf of 'blkid' (25462) because cache 58516kB is below limit 65536kB for oom_score_adj 12 Free memory is -12748kB above reserved lowmemorykiller: Killing 'syz-executor.3' (25968) (tgid 25968), adj 1000, to free 34972kB on behalf of 'blkid' (25462) because cache 58416kB is below limit 65536kB for oom_score_adj 12 Free memory is -13336kB above reserved lowmemorykiller: Killing 'syz-executor.2' (9863) (tgid 9863), adj 1000, to free 34968kB on behalf of 'blkid' (25462) because cache 58316kB is below limit 65536kB for oom_score_adj 12 Free memory is -13136kB above reserved lowmemorykiller: Killing 'syz-executor.2' (9887) (tgid 9887), adj 1000, to free 34968kB on behalf of 'blkid' (25462) because cache 58612kB is below limit 65536kB for oom_score_adj 12 Free memory is -12936kB above reserved lowmemorykiller: Killing 'syz-executor.2' (9901) (tgid 9901), adj 1000, to free 34968kB on behalf of 'syz-fuzzer' (2041) because cache 58384kB is below limit 65536kB for oom_score_adj 12 Free memory is -13132kB above reserved lowmemorykiller: Killing 'syz-executor.2' (9924) (tgid 9924), adj 1000, to free 34968kB on behalf of 'syz-fuzzer' (2041) because cache 58384kB is below limit 65536kB for oom_score_adj 12 Free memory is -13132kB above reserved lowmemorykiller: Killing 'syz-executor.2' (9901) (tgid 9901), adj 1000, to free 34968kB on behalf of 'blkid' (25462) because cache 58484kB is below limit 65536kB for oom_score_adj 12 Free memory is -13232kB above reserved netlink: 8 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.4'. ip6_tunnel: Ë xmit: Local address not yet configured!