Free memory is -12592kB above reserved lowmemorykiller: Killing 'syz-executor.3' (21599) (tgid 21599), adj 1000, to free 35976kB on behalf of 'syz-executor.1' (21629) because cache 61068kB is below limit 65536kB for oom_score_adj 12 Free memory is -13096kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:905 in_atomic(): 0, irqs_disabled(): 0, pid: 21629, name: syz-executor.1 2 locks held by syz-executor.1/21629: #0: (shrinker_rwsem){++++..}, at: [<000000008d8b6db9>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<0000000043f9305a>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 Preemption disabled at: [<000000004ed98c3f>] spin_lock include/linux/spinlock.h:302 [inline] [<000000004ed98c3f>] task_lock include/linux/sched.h:3217 [inline] [<000000004ed98c3f>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 0 PID: 21629 Comm: syz-executor.1 Not tainted 4.9.189+ #1 ffff88019e467398 ffffffff81b65c01 0000000000000000 0000000000000001 ffff8801d40917c0 ffffffff810d1010 ffff8801d40917c0 ffff88019e4673d0 ffffffff814018f3 ffff8801d40917c0 ffffffff82a39fc0 0000000000000389 Call Trace: [<000000007f6ca95b>] __dump_stack lib/dump_stack.c:15 [inline] [<000000007f6ca95b>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<000000007416508b>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<000000001fcb05f2>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<0000000088b4fad0>] mmput+0x28/0x370 kernel/fork.c:905 [<00000000bb4938fd>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000bf0f7a19>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<000000007d8e2b51>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000007d8e2b51>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000abfb042c>] shrink_slab mm/vmscan.c:466 [inline] [<00000000abfb042c>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000004da09943>] shrink_zones mm/vmscan.c:2751 [inline] [<000000004da09943>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000004da09943>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000ac45d376>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000ac45d376>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000ac45d376>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000ac45d376>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<00000000e23c7f3a>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000e23c7f3a>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000e23c7f3a>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000e23c7f3a>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<00000000e23c7f3a>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<00000000b99af02a>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<00000000b99af02a>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<00000000b99af02a>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<0000000020cbf48f>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<000000000047b5ab>] do_replace net/ipv4/netfilter/ip_tables.c:1146 [inline] [<000000000047b5ab>] do_ipt_set_ctl+0x231/0x470 net/ipv4/netfilter/ip_tables.c:1693 [<00000000c4d3fe30>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000c4d3fe30>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000694200aa>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<00000000694200aa>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<000000003d7cc7e7>] udp_setsockopt+0x4e/0x90 net/ipv4/udp.c:2114 [<000000000e8097f0>] ipv6_setsockopt+0xa4/0x140 net/ipv6/ipv6_sockglue.c:912 [<00000000ec26ad9c>] tcp_setsockopt net/ipv4/tcp.c:2759 [inline] [<00000000ec26ad9c>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2753 [<00000000eb4fa95b>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000f1207660>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000f1207660>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<00000000342e44e3>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<0000000016d6ad69>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb ================================= [ INFO: inconsistent lock state ] 4.9.189+ #1 Tainted: G W --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. syz-executor.1/21629 [HC0[0]:SC0[0]:HE1:SE1] takes: (&mm->mmap_sem){+++++?}, at: [<00000000a8fec975>] 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: 1497363 hardirqs last enabled at (1497363): [<00000000ab2b60aa>] dump_stack+0x100/0x120 lib/dump_stack.c:56 hardirqs last disabled at (1497362): [<00000000e4ad662e>] dump_stack+0x2c/0x120 lib/dump_stack.c:38 softirqs last enabled at (1496378): [<0000000033a38dbe>] __do_softirq+0x474/0x964 kernel/softirq.c:314 softirqs last disabled at (1496355): [<000000009f33fd3d>] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (1496355): [<000000009f33fd3d>] 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 syz-executor.1/21629: #0: (shrinker_rwsem){++++..}, at: [<000000008d8b6db9>] shrink_slab.part.0+0xb2/0xa20 mm/vmscan.c:472 #1: (rcu_read_lock){......}, at: [<0000000043f9305a>] lowmem_scan+0x242/0xb50 drivers/staging/android/lowmemorykiller.c:272 #2: (lmk_event_lock){+.+.-.}, at: [<000000004b02c818>] spin_lock include/linux/spinlock.h:302 [inline] #2: (lmk_event_lock){+.+.-.}, at: [<000000004b02c818>] handle_lmk_event+0xfb/0x8a0 drivers/staging/android/lowmemorykiller.c:114 stack backtrace: CPU: 0 PID: 21629 Comm: syz-executor.1 Tainted: G W 4.9.189+ #1 ffff88019e4670e0 ffffffff81b65c01 00000000000000f0 ffff8801d40917c0 ffffffff83caf950 ffff8801d4092108 ffffffff84250fc0 ffff88019e467158 ffffffff81408330 0000000000000000 ffffffff00000001 0000000000000001 Call Trace: [<000000007f6ca95b>] __dump_stack lib/dump_stack.c:15 [inline] [<000000007f6ca95b>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<00000000fe7473b3>] print_usage_bug kernel/locking/lockdep.c:2387 [inline] [<00000000fe7473b3>] print_usage_bug.cold+0x452/0x5a2 kernel/locking/lockdep.c:2354 [<00000000cfe56e57>] valid_state kernel/locking/lockdep.c:2400 [inline] [<00000000cfe56e57>] mark_lock_irq kernel/locking/lockdep.c:2602 [inline] [<00000000cfe56e57>] mark_lock+0x6c7/0x12e0 kernel/locking/lockdep.c:3065 [<00000000f180a8da>] mark_irqflags kernel/locking/lockdep.c:2958 [inline] [<00000000f180a8da>] __lock_acquire+0x5be/0x4390 kernel/locking/lockdep.c:3302 [<00000000d877f27e>] lock_acquire+0x133/0x3d0 kernel/locking/lockdep.c:3756 [<00000000db7b3803>] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [<00000000a8fec975>] get_cmdline+0xa3/0x2d0 mm/util.c:641 [<0000000092cf1274>] handle_lmk_event+0x13c/0x8a0 drivers/staging/android/lowmemorykiller.c:128 [<00000000bf0f7a19>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<000000007d8e2b51>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000007d8e2b51>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000abfb042c>] shrink_slab mm/vmscan.c:466 [inline] [<00000000abfb042c>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [<000000004da09943>] shrink_zones mm/vmscan.c:2751 [inline] [<000000004da09943>] do_try_to_free_pages mm/vmscan.c:2793 [inline] [<000000004da09943>] try_to_free_pages+0x397/0xbd0 mm/vmscan.c:3004 [<00000000ac45d376>] __perform_reclaim mm/page_alloc.c:3332 [inline] [<00000000ac45d376>] __alloc_pages_direct_reclaim mm/page_alloc.c:3354 [inline] [<00000000ac45d376>] __alloc_pages_slowpath mm/page_alloc.c:3704 [inline] [<00000000ac45d376>] __alloc_pages_nodemask+0x930/0x1a80 mm/page_alloc.c:3861 [<00000000e23c7f3a>] __alloc_pages include/linux/gfp.h:433 [inline] [<00000000e23c7f3a>] __alloc_pages_node include/linux/gfp.h:446 [inline] [<00000000e23c7f3a>] alloc_pages_node include/linux/gfp.h:460 [inline] [<00000000e23c7f3a>] __vmalloc_area_node mm/vmalloc.c:1648 [inline] [<00000000e23c7f3a>] __vmalloc_node_range+0x25b/0x610 mm/vmalloc.c:1706 [<00000000b99af02a>] __vmalloc_node mm/vmalloc.c:1749 [inline] [<00000000b99af02a>] __vmalloc_node_flags mm/vmalloc.c:1763 [inline] [<00000000b99af02a>] vmalloc+0x5c/0x70 mm/vmalloc.c:1778 [<0000000020cbf48f>] xt_alloc_table_info+0xc8/0x100 net/netfilter/x_tables.c:997 [<000000000047b5ab>] do_replace net/ipv4/netfilter/ip_tables.c:1146 [inline] [<000000000047b5ab>] do_ipt_set_ctl+0x231/0x470 net/ipv4/netfilter/ip_tables.c:1693 [<00000000c4d3fe30>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000c4d3fe30>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000694200aa>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<00000000694200aa>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<000000003d7cc7e7>] udp_setsockopt+0x4e/0x90 net/ipv4/udp.c:2114 [<000000000e8097f0>] ipv6_setsockopt+0xa4/0x140 net/ipv6/ipv6_sockglue.c:912 [<00000000ec26ad9c>] tcp_setsockopt net/ipv4/tcp.c:2759 [inline] [<00000000ec26ad9c>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2753 [<00000000eb4fa95b>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000f1207660>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000f1207660>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<00000000342e44e3>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<0000000016d6ad69>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb lowmemorykiller: Killing 'syz-executor.4' (17129) (tgid 17129), adj 1000, to free 35964kB on behalf of 'kswapd0' (33) because cache 48116kB is below limit 65536kB for oom_score_adj 12 Free memory is -9100kB above reserved lowmemorykiller: Killing 'syz-executor.4' (17170) (tgid 17170), adj 1000, to free 35964kB on behalf of 'kswapd0' (33) because cache 47916kB is below limit 65536kB for oom_score_adj 12 Free memory is -12572kB above reserved lowmemorykiller: Killing 'syz-executor.3' (18786) (tgid 18786), adj 1000, to free 35964kB on behalf of 'syz-executor.1' (21629) because cache 37916kB is below limit 65536kB for oom_score_adj 12 Free memory is -13016kB above reserved lowmemorykiller: Killing 'syz-executor.3' (18791) (tgid 18791), adj 1000, to free 35964kB on behalf of 'syz-executor.1' (21629) because cache 33264kB is below limit 65536kB for oom_score_adj 12 Free memory is -11712kB above reserved lowmemorykiller: Killing 'syz-executor.4' (17794) (tgid 17794), adj 1000, to free 35952kB on behalf of 'kswapd0' (33) because cache 30564kB is below limit 65536kB for oom_score_adj 12 Free memory is -12912kB above reserved lowmemorykiller: Killing 'syz-executor.4' (18306) (tgid 18306), adj 1000, to free 35944kB on behalf of 'kswapd0' (33) because cache 30564kB is below limit 65536kB for oom_score_adj 12 Free memory is -12732kB above reserved lowmemorykiller: Killing 'syz-executor.4' (17776) (tgid 17776), adj 1000, to free 35952kB on behalf of 'syz-executor.1' (21629) because cache 30764kB is below limit 65536kB for oom_score_adj 12 Free memory is -13312kB above reserved lowmemorykiller: Killing 'syz-executor.3' (17147) (tgid 17147), adj 1000, to free 35892kB on behalf of 'syz-executor.1' (21629) because cache 29264kB is below limit 65536kB for oom_score_adj 12 Free memory is -13296kB above reserved lowmemorykiller: Killing 'syz-executor.3' (16345) (tgid 16345), adj 1000, to free 35884kB on behalf of 'kswapd0' (33) because cache 28864kB is below limit 65536kB for oom_score_adj 12 Free memory is -13096kB above reserved lowmemorykiller: Killing 'syz-executor.3' (16497) (tgid 16497), adj 1000, to free 35884kB on behalf of 'syz-executor.1' (21629) because cache 26512kB is below limit 65536kB for oom_score_adj 12 Free memory is -13220kB above reserved lowmemorykiller: Killing 'syz-executor.3' (16557) (tgid 16557), adj 1000, to free 35884kB on behalf of 'syz-executor.1' (21629) because cache 24712kB is below limit 65536kB for oom_score_adj 12 Free memory is -13268kB above reserved lowmemorykiller: Killing 'syz-executor.3' (16648) (tgid 16648), adj 1000, to free 35884kB on behalf of 'syz-executor.1' (21629) because cache 24264kB is below limit 65536kB for oom_score_adj 12 Free memory is -12116kB above reserved lowmemorykiller: Killing 'syz-executor.3' (17471) (tgid 17471), adj 1000, to free 35884kB on behalf of 'syz-executor.1' (21629) because cache 23864kB is below limit 65536kB for oom_score_adj 12 Free memory is -13324kB above reserved lowmemorykiller: Killing 'syz-executor.3' (18227) (tgid 18227), adj 1000, to free 35884kB on behalf of 'syz-executor.1' (21629) because cache 23064kB is below limit 65536kB for oom_score_adj 12 Free memory is -13292kB above reserved lowmemorykiller: Killing 'syz-executor.3' (19993) (tgid 19993), adj 1000, to free 35884kB on behalf of 'kswapd0' (33) because cache 21064kB is below limit 65536kB for oom_score_adj 12 Free memory is -11504kB above reserved lowmemorykiller: Killing 'syz-executor.3' (19021) (tgid 19021), adj 1000, to free 35884kB on behalf of 'syz-executor.1' (21629) because cache 21864kB is below limit 65536kB for oom_score_adj 12 Free memory is -13292kB above reserved lowmemorykiller: Killing 'syz-executor.3' (20190) (tgid 20190), adj 1000, to free 35884kB on behalf of 'syz-executor.1' (21629) because cache 19064kB is below limit 65536kB for oom_score_adj 12 Free memory is -13320kB above reserved lowmemorykiller: Killing 'syz-executor.1' (21176) (tgid 21176), adj 1000, to free 35884kB on behalf of 'syz-executor.1' (21629) because cache 18964kB is below limit 65536kB for oom_score_adj 12 Free memory is -13312kB above reserved lowmemorykiller: Killing 'syz-executor.3' (16549) (tgid 16549), adj 1000, to free 35880kB on behalf of 'syz-executor.1' (21629) because cache 14564kB is below limit 16384kB for oom_score_adj 6 Free memory is -11912kB above reserved lowmemorykiller: Killing 'syz-executor.3' (20899) (tgid 20899), adj 1000, to free 35880kB on behalf of 'kswapd0' (33) because cache 14464kB is below limit 16384kB for oom_score_adj 6 Free memory is -12812kB above reserved [19491] 0 19491 18144 8749 26 4 0 1000 syz-executor.1 [19514] 0 19514 18144 8749 26 4 0 1000 syz-executor.1 [19593] 0 19593 18144 8747 26 4 0 0 syz-executor.0 [19607] 0 19607 18144 8747 26 4 0 0 syz-executor.0 [19627] 0 19627 18144 8747 26 4 0 0 syz-executor.0 [19662] 0 19662 18144 8749 26 4 0 1000 syz-executor.1 [19702] 0 19702 18144 8747 26 4 0 0 syz-executor.0 [19727] 0 19727 18144 8747 26 4 0 0 syz-executor.0 [19739] 0 19739 18144 8749 26 4 0 1000 syz-executor.1 [19762] 0 19762 18144 8747 26 4 0 0 syz-executor.0 [19767] 0 19767 18144 8714 24 3 0 1000 syz-executor.1 [19780] 0 19780 18144 8747 26 4 0 0 syz-executor.0 [19786] 0 19786 18144 8714 24 3 0 1000 syz-executor.1 [19804] 0 19804 18144 8714 24 3 0 1000 syz-executor.1 [19807] 0 19807 18144 8747 26 4 0 0 syz-executor.0 [19830] 0 19830 18144 8713 24 3 0 0 syz-executor.0 [19852] 0 19852 18210 8753 26 4 0 0 syz-executor.4 [20854] 0 20854 18177 8749 26 4 0 0 syz-executor.5 [20974] 0 20974 18177 8749 26 4 0 0 syz-executor.5 [20999] 0 20999 18144 8715 24 3 0 0 syz-executor.4 [21024] 0 21024 18144 8714 25 3 0 0 syz-executor.5 [21028] 0 21028 18144 8715 24 3 0 0 syz-executor.4 [21041] 0 21041 18144 8715 24 3 0 0 syz-executor.4 [21109] 0 21109 18177 8749 26 4 0 0 syz-executor.5 [21124] 0 21124 18177 8720 25 3 0 1000 syz-executor.3 [21139] 0 21139 18144 8749 26 4 0 0 syz-executor.4 [21156] 0 21156 18144 8749 26 4 0 0 syz-executor.4 [21157] 0 21157 18177 8722 25 3 0 1000 syz-executor.3 [21183] 0 21183 18144 8749 26 4 0 0 syz-executor.4 [21199] 0 21199 18144 8749 26 4 0 0 syz-executor.4 [21215] 0 21215 18144 8749 26 4 0 0 syz-executor.4 [21229] 0 21229 18144 8749 26 4 0 0 syz-executor.4 [21234] 0 21234 18210 8751 26 4 0 0 syz-executor.0 [21241] 0 21241 18144 8718 25 3 0 1000 syz-executor.3 [21260] 0 21260 18144 8749 26 4 0 0 syz-executor.4 [21276] 0 21276 18144 8749 26 4 0 0 syz-executor.4 [21283] 0 21283 18144 8749 26 4 0 0 syz-executor.4 [21291] 0 21291 18144 8718 25 3 0 1000 syz-executor.3 [21301] 0 21301 18210 8754 33 4 0 0 syz-executor.5 [21310] 0 21310 18144 8749 26 4 0 0 syz-executor.4 [21326] 0 21326 18144 8749 26 4 0 0 syz-executor.4 [21335] 0 21335 18144 8749 26 4 0 0 syz-executor.4 [21340] 0 21340 18177 8749 26 4 0 0 syz-executor.5 [21357] 0 21357 18144 8749 26 4 0 0 syz-executor.4 [21364] 0 21364 18210 8751 26 4 0 0 syz-executor.5 [21373] 0 21373 18144 8749 26 4 0 0 syz-executor.4 [21375] 0 21375 18210 8751 26 4 0 0 syz-executor.5 [21380] 0 21380 18144 8749 26 4 0 0 syz-executor.4 [21385] 0 21385 18177 8749 26 4 0 0 syz-executor.5 [21393] 0 21393 18144 8749 26 4 0 0 syz-executor.4 [21404] 0 21404 18144 8749 26 4 0 0 syz-executor.4 [21437] 0 21437 18144 8749 26 4 0 0 syz-executor.4 [21450] 0 21450 18144 8749 26 4 0 0 syz-executor.4 [21455] 0 21455 18210 8751 26 4 0 0 syz-executor.5 [21466] 0 21466 18144 8749 26 4 0 0 syz-executor.4 [21475] 0 21475 18144 8749 26 4 0 0 syz-executor.4 [21478] 0 21478 18177 8749 26 4 0 0 syz-executor.5 [21494] 0 21494 18144 8749 26 4 0 0 syz-executor.4 [21508] 0 21508 18177 8749 26 4 0 0 syz-executor.5 [21513] 0 21513 18144 8749 26 4 0 0 syz-executor.4 [21525] 0 21525 18144 8749 26 4 0 0 syz-executor.4 [21533] 0 21533 18210 8752 26 4 0 0 syz-executor.0 [21552] 0 21552 18144 8749 26 4 0 0 syz-executor.4 [21566] 0 21566 18177 8749 26 4 0 0 syz-executor.5 [21567] 0 21567 18144 8749 26 4 0 0 syz-executor.4 [21585] 0 21585 18144 8749 26 4 0 0 syz-executor.4 [21598] 0 21598 18144 8749 26 4 0 0 syz-executor.4 [21607] 0 21607 18177 8749 26 4 0 0 syz-executor.5 [21613] 0 21613 18144 8749 26 4 0 0 syz-executor.4 [21629] 0 21624 18177 3 26 4 0 1000 syz-executor.1 [20764] 0 20764 18144 8749 26 4 0 0 syz-executor.4 [20778] 0 20778 18144 8749 26 4 0 0 syz-executor.4 [20793] 0 20793 18144 8749 26 4 0 0 syz-executor.4 [20796] 0 20796 18177 8749 26 4 0 0 syz-executor.5 [20821] 0 20821 18144 8747 26 4 0 0 syz-executor.5 [20835] 0 20835 18177 8749 26 4 0 0 syz-executor.5 [20854] 0 20854 18177 8749 26 4 0 0 syz-executor.5 [20974] 0 20974 18177 8749 26 4 0 0 syz-executor.5 [20999] 0 20999 18144 8715 24 3 0 0 syz-executor.4 [21024] 0 21024 18144 8714 25 3 0 0 syz-executor.5 [21028] 0 21028 18144 8715 24 3 0 0 syz-executor.4 [21041] 0 21041 18144 8715 24 3 0 0 syz-executor.4 [21109] 0 21109 18177 8749 26 4 0 0 syz-executor.5 [21124] 0 21124 18177 8720 25 3 0 1000 syz-executor.3 [21139] 0 21139 18144 8749 26 4 0 0 syz-executor.4 [21156] 0 21156 18144 8749 26 4 0 0 syz-executor.4 [21157] 0 21157 18177 8722 25 3 0 1000 syz-executor.3 [21183] 0 21183 18144 8749 26 4 0 0 syz-executor.4 [21199] 0 21199 18144 8749 26 4 0 0 syz-executor.4 [21215] 0 21215 18144 8749 26 4 0 0 syz-executor.4 [21229] 0 21229 18144 8749 26 4 0 0 syz-executor.4 [21234] 0 21234 18210 8751 26 4 0 0 syz-executor.0 [21241] 0 21241 18144 8718 25 3 0 1000 syz-executor.3 [21260] 0 21260 18144 8749 26 4 0 0 syz-executor.4 [21276] 0 21276 18144 8749 26 4 0 0 syz-executor.4 [21283] 0 21283 18144 8749 26 4 0 0 syz-executor.4 [21291] 0 21291 18144 8718 25 3 0 1000 syz-executor.3 [21301] 0 21301 18210 8754 33 4 0 0 syz-executor.5 [21310] 0 21310 18144 8749 26 4 0 0 syz-executor.4 [21326] 0 21326 18144 8749 26 4 0 0 syz-executor.4 [21335] 0 21335 18144 8749 26 4 0 0 syz-executor.4 [21340] 0 21340 18177 8749 26 4 0 0 syz-executor.5 [21357] 0 21357 18144 8749 26 4 0 0 syz-executor.4 [21364] 0 21364 18210 8751 26 4 0 0 syz-executor.5 [21373] 0 21373 18144 8749 26 4 0 0 syz-executor.4 [21375] 0 21375 18210 8751 26 4 0 0 syz-executor.5 [21380] 0 21380 18144 8749 26 4 0 0 syz-executor.4 [21385] 0 21385 18177 8749 26 4 0 0 syz-executor.5 [21393] 0 21393 18144 8749 26 4 0 0 syz-executor.4 [21404] 0 21404 18144 8749 26 4 0 0 syz-executor.4 [21437] 0 21437 18144 8749 26 4 0 0 syz-executor.4 [21450] 0 21450 18144 8749 26 4 0 0 syz-executor.4 [21455] 0 21455 18210 8751 26 4 0 0 syz-executor.5 [21466] 0 21466 18144 8749 26 4 0 0 syz-executor.4 [21475] 0 21475 18144 8749 26 4 0 0 syz-executor.4 [21478] 0 21478 18177 8749 26 4 0 0 syz-executor.5 [21494] 0 21494 18144 8749 26 4 0 0 syz-executor.4 [21508] 0 21508 18177 8749 26 4 0 0 syz-executor.5 [21513] 0 21513 18144 8749 26 4 0 0 syz-executor.4 [21525] 0 21525 18144 8749 26 4 0 0 syz-executor.4 [21533] 0 21533 18210 8752 26 4 0 0 syz-executor.0 [21552] 0 21552 18144 8749 26 4 0 0 syz-executor.4 [21566] 0 21566 18177 8749 26 4 0 0 syz-executor.5 [21567] 0 21567 18144 8749 26 4 0 0 syz-executor.4 [21598] 0 21598 18144 8749 26 4 0 0 syz-executor.4 [21607] 0 21607 18177 8749 26 4 0 0 syz-executor.5 [21613] 0 21613 18144 8749 26 4 0 0 syz-executor.4 [21629] 0 21624 18177 3 26 4 0 1000 syz-executor.1 [21626] 0 21626 18144 8749 26 4 0 0 syz-executor.4 [21632] 0 21632 18177 3 26 4 0 1000 syz-executor.1 Out of memory: Kill process 19491 (syz-executor.1) score 1004 or sacrifice child Killed process 19491 (syz-executor.1) total-vm:72576kB, anon-rss:152kB, file-rss:34844kB, shmem-rss:0kB lowmemorykiller: Killing 'syz-executor.1' (19514) (tgid 19514), adj 1000, to free 34996kB on behalf of 'syz-executor.1' (8427) because cache 140kB is below limit 6144kB for oom_score_adj 0 Free memory is -13444kB above reserved BUG: sleeping function called from invalid context at kernel/fork.c:905 in_atomic(): 0, irqs_disabled(): 0, pid: 8427, name: syz-executor.1 INFO: lockdep is turned off. Preemption disabled at: [<000000004ed98c3f>] spin_lock include/linux/spinlock.h:302 [inline] [<000000004ed98c3f>] task_lock include/linux/sched.h:3217 [inline] [<000000004ed98c3f>] get_task_mm+0x20/0xc0 kernel/fork.c:1012 CPU: 1 PID: 8427 Comm: syz-executor.1 Tainted: G W 4.9.189+ #1 ffff8801a233f2d0 ffffffff81b65c01 0000000000000000 0000000000000001 ffff88019e392f80 ffffffff810d1010 ffff88019e392f80 ffff8801a233f308 ffffffff814018f3 ffff88019e392f80 ffffffff82a39fc0 0000000000000389 Call Trace: [<000000007f6ca95b>] __dump_stack lib/dump_stack.c:15 [inline] [<000000007f6ca95b>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [<000000007416508b>] ___might_sleep.cold+0x1c1/0x1fa kernel/sched/core.c:8004 [<000000001fcb05f2>] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7961 [<0000000088b4fad0>] mmput+0x28/0x370 kernel/fork.c:905 [<00000000bb4938fd>] handle_lmk_event+0xea/0x8a0 drivers/staging/android/lowmemorykiller.c:111 [<00000000bf0f7a19>] lowmem_scan+0x695/0xb50 drivers/staging/android/lowmemorykiller.c:345 [<000000007d8e2b51>] do_shrink_slab mm/vmscan.c:399 [inline] [<000000007d8e2b51>] shrink_slab.part.0+0x3cf/0xa20 mm/vmscan.c:502 [<00000000abfb042c>] shrink_slab mm/vmscan.c:466 [inline] [<00000000abfb042c>] shrink_node+0x1ed/0x750 mm/vmscan.c:2604 [21404] 0 21404 18144 8749 26 4 0 0 syz-executor.4 [12125] 0 12125 18144 8748 26 4 0 0 syz-executor.5 [21139] 0 21139 18144 8749 26 4 0 0 syz-executor.4 [21156] 0 21156 18144 8749 26 4 0 0 syz-executor.4 [21157] 0 21157 18177 8722 25 3 0 1000 syz-executor.3 [21183] 0 21183 18144 8749 26 4 0 0 syz-executor.4 [21199] 0 21199 18144 8749 26 4 0 0 syz-executor.4 [21215] 0 21215 18144 8749 26 4 0 0 syz-executor.4 [21229] 0 21229 18144 8749 26 4 0 0 syz-executor.4 [21234] 0 21234 18210 8751 26 4 0 0 syz-executor.0 [21241] 0 21241 18144 8718 25 3 0 1000 syz-executor.3 [21260] 0 21260 18144 8749 26 4 0 0 syz-executor.4 [21276] 0 21276 18144 8749 26 4 0 0 syz-executor.4 [21283] 0 21283 18144 8749 26 4 0 0 syz-executor.4 [21291] 0 21291 18144 8718 25 3 0 1000 syz-executor.3 [21301] 0 21301 18210 8754 33 4 0 0 syz-executor.5 [21310] 0 21310 18144 8749 26 4 0 0 syz-executor.4 [21326] 0 21326 18144 8749 26 4 0 0 syz-executor.4 [21335] 0 21335 18144 8749 26 4 0 0 syz-executor.4 [21340] 0 21340 18177 8749 26 4 0 0 syz-executor.5 [21357] 0 21357 18144 8749 26 4 0 0 syz-executor.4 [21364] 0 21364 18210 8751 26 4 0 0 syz-executor.5 [21373] 0 21373 18144 8749 26 4 0 0 syz-executor.4 [21375] 0 21375 18210 8751 26 4 0 0 syz-executor.5 [21380] 0 21380 18144 8749 26 4 0 0 syz-executor.4 [21385] 0 21385 18177 8749 26 4 0 0 syz-executor.5 [21393] 0 21393 18144 8749 26 4 0 0 syz-executor.4 [21404] 0 21404 18144 8749 26 4 0 0 syz-executor.4 [21437] 0 21437 18144 8749 26 4 0 0 syz-executor.4 [21450] 0 21450 18144 8749 26 4 0 0 syz-executor.4 [21455] 0 21455 18210 8751 26 4 0 0 syz-executor.5 [21466] 0 21466 18144 8749 26 4 0 0 syz-executor.4 [21475] 0 21475 18144 8749 26 4 0 0 syz-executor.4 [21478] 0 21478 18177 8749 26 4 0 0 syz-executor.5 [21494] 0 21494 18144 8749 26 4 0 0 syz-executor.4 [21508] 0 21508 18177 8749 26 4 0 0 syz-executor.5 [21513] 0 21513 18144 8749 26 4 0 0 syz-executor.4 [21525] 0 21525 18144 8749 26 4 0 0 syz-executor.4 [21533] 0 21533 18210 8752 26 4 0 0 syz-executor.0 Call Trace: [<000000007f6ca95b>] __dump_stack lib/dump_stack.c:15 [inline] [<000000007f6ca95b>] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [19852] 0 19852 18210 8753 26 4 0 0 syz-executor.4 [19593] 0 19593 18144 8747 26 4 0 0 syz-executor.0 [19607] 0 19607 18144 8747 26 4 0 0 syz-executor.0 [19627] 0 19627 18144 8747 26 4 0 0 syz-executor.0 [19702] 0 19702 18144 8747 26 4 0 0 syz-executor.0 [19727] 0 19727 18144 8747 26 4 0 0 syz-executor.0 [19762] 0 19762 18144 8747 26 4 0 0 syz-executor.0 [19767] 0 19767 18144 8714 24 3 0 1000 syz-executor.1 [19780] 0 19780 18144 8747 26 4 0 0 syz-executor.0 [19786] 0 19786 18144 8714 24 3 0 1000 syz-executor.1 [20999] 0 20999 18144 8715 24 3 0 0 syz-executor.4 [21024] 0 21024 18144 8714 25 3 0 0 syz-executor.5 [21028] 0 21028 18144 8715 24 3 0 0 syz-executor.4 [21041] 0 21041 18144 8715 24 3 0 0 syz-executor.4 [21109] 0 21109 18177 8749 26 4 0 0 syz-executor.5 [21124] 0 21124 18177 8720 25 3 0 1000 syz-executor.3 [21139] 0 21139 18144 8749 26 4 0 0 syz-executor.4 [21156] 0 21156 18144 8749 26 4 0 0 syz-executor.4 [21183] 0 21183 18144 8749 26 4 0 0 syz-executor.4 [21199] 0 21199 18144 8749 26 4 0 0 syz-executor.4 [21215] 0 21215 18144 8749 26 4 0 0 syz-executor.4 [ 5428] 0 5428 18177 8743 26 4 0 0 syz-executor.5 [ 5432] 0 5432 18177 8743 26 4 0 0 syz-executor.5 [ 5859] 0 5859 18210 8745 26 4 0 0 syz-executor.5 [10933] 0 10933 18144 8742 26 4 0 0 syz-executor.5 [ 8426] 0 8426 18112 16 23 3 0 0 syz-executor.1 [ 8427] 0 8427 18111 8698 24 4 0 0 syz-executor.1 [<00000000c4d3fe30>] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [<00000000c4d3fe30>] nf_setsockopt+0x6d/0xc0 net/netfilter/nf_sockopt.c:114 [<00000000694200aa>] ip_setsockopt net/ipv4/ip_sockglue.c:1247 [inline] [<00000000694200aa>] ip_setsockopt+0x8a/0xa0 net/ipv4/ip_sockglue.c:1232 [<000000003d7cc7e7>] udp_setsockopt+0x4e/0x90 net/ipv4/udp.c:2114 [<000000000e8097f0>] ipv6_setsockopt+0xa4/0x140 net/ipv6/ipv6_sockglue.c:912 [<00000000ec26ad9c>] tcp_setsockopt net/ipv4/tcp.c:2759 [inline] [<00000000ec26ad9c>] tcp_setsockopt+0x8a/0xe0 net/ipv4/tcp.c:2753 [<00000000eb4fa95b>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2710 [<00000000f1207660>] SYSC_setsockopt net/socket.c:1786 [inline] [<00000000f1207660>] SyS_setsockopt+0x159/0x240 net/socket.c:1765 [<00000000342e44e3>] do_syscall_64+0x1ad/0x5c0 arch/x86/entry/common.c:288 [<0000000016d6ad69>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Mem-Info: active_anon:78564 inactive_anon:583 isolated_anon:0 active_file:49 inactive_file:47 isolated_file:0 unevictable:0 dirty:5 writeback:0 unstable:0 slab_reclaimable:6408 slab_unreclaimable:59021 mapped:52265 shmem:3246 pagetables:3757 bounce:0 free:6021 free_pcp:175 free_cma:0 Node 0 active_anon:314256kB inactive_anon:2332kB active_file:196kB inactive_file:188kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:209060kB dirty:20kB writeback:0kB shmem:12984kB writeback_tmp:0kB unstable:0kB pages_scanned:212 all_unreclaimable? no [21404] 0 21404 18144 8743 26 4 0 0 syz-executor.4 [21437] 0 21437 18144 8743 26 4 0 0 syz-executor.4 [21450] 0 21450 18144 8743 26 4 0 0 syz-executor.4 [21455] 0 21455 18210 8745 26 4 0 0 syz-executor.5 [21466] 0 21466 18144 8743 26 4 0 0 syz-executor.4 [21475] 0 21475 18144 8743 26 4 0 0 syz-executor.4 [21478] 0 21478 18177 8743 26 4 0 0 syz-executor.5 [21494] 0 21494 18144 8743 26 4 0 0 syz-executor.4 [21508] 0 21508 18177 8743 26 4 0 0 syz-executor.5 [21513] 0 21513 18144 8743 26 4 0 0 syz-executor.4 [21525] 0 21525 18144 8743 26 4 0 0 syz-executor.4 [21533] 0 21533 18210 8746 26 4 0 0 syz-executor.0 [21552] 0 21552 18144 8743 26 4 0 0 syz-executor.4 [21566] 0 21566 18177 8743 26 4 0 0 syz-executor.5 lowmem_reserve[]: 0 0 0 DMA32: 3*4kB (UM) 4*8kB (UM) 3*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) = 18716kB 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 5365 169 16 3 0 -1000 udevd [ 1759] 0 1759 2492 574 8 3 0 0 dhclient [ 1892] 0 1892 14264 109 23 4 0 0 rsyslogd [ 1945] 0 1945 4724 51 15 3 0 0 cron [ 1965] 0 1965 3735 45 11 3 0 0 mcstransd [ 1967] 0 1967 12926 1231 26 3 0 0 restorecond [ 1993] 0 1993 12489 152 28 3 0 -1000 sshd [ 2023] 0 2023 3648 39 12 3 0 0 getty [ 2033] 0 2033 17820 197 38 3 0 0 sshd [ 2035] 0 2035 115351 69220 187 5 0 0 syz-fuzzer [ 3045] 0 3045 5592 371 16 3 0 -1000 udevd [ 3118] 0 3118 5364 170 15 3 0 -1000 udevd [ 4359] 0 4359 18112 15 23 3 0 0 syz-executor.5 [ 43