kmem_cache_node           51KB         51KB
kmem_cache                78KB         78KB
oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=syz1,mems_allowed=0,global_oom,task_memcg=/syz1,task=syz-executor.1,pid=5296,uid=0
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:577
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5296, name: syz-executor.1
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
3 locks held by syz-executor.1/5296:
 #0: ffff888041690130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1668 [inline]
 #0: ffff888041690130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_setsockopt+0x156/0x3cb0 net/packet/af_packet.c:3763
 #1: ffffffff852793e8 (oom_lock){+.+.}-{3:3}, at: __alloc_pages_may_oom mm/page_alloc.c:4281 [inline]
 #1: ffffffff852793e8 (oom_lock){+.+.}-{3:3}, at: __alloc_pages_slowpath.constprop.0+0xcc9/0x1f10 mm/page_alloc.c:5063
 #2: ffff8880330858e0 (&p->alloc_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline]
 #2: ffff8880330858e0 (&p->alloc_lock){+.+.}-{2:2}, at: task_lock include/linux/sched/task.h:170 [inline]
 #2: ffff8880330858e0 (&p->alloc_lock){+.+.}-{2:2}, at: find_lock_task_mm+0xe3/0x2b0 mm/oom_kill.c:144
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 PID: 5296 Comm: syz-executor.1 Not tainted 5.17.0-rc1-next-20220124 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x8b/0xb3 lib/dump_stack.c:106
 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9576
 __mutex_lock_common kernel/locking/mutex.c:577 [inline]
 __mutex_lock+0x9e/0x1480 kernel/locking/mutex.c:733
 futex_cleanup_begin kernel/futex/core.c:1058 [inline]
 futex_exit_release+0x2d/0x220 kernel/futex/core.c:1110
 __oom_kill_process+0x373/0xf90 mm/oom_kill.c:893
 oom_kill_process+0xd7/0x5c0 mm/oom_kill.c:1003
 out_of_memory+0x11e7/0x14b0 mm/oom_kill.c:1114
 __alloc_pages_may_oom mm/page_alloc.c:4332 [inline]
 __alloc_pages_slowpath.constprop.0+0x1972/0x1f10 mm/page_alloc.c:5063
 __alloc_pages+0x403/0x4e0 mm/page_alloc.c:5394
 alloc_pages+0x1a0/0x2f0 mm/mempolicy.c:2271
 vm_area_alloc_pages mm/vmalloc.c:2902 [inline]
 __vmalloc_area_node mm/vmalloc.c:2965 [inline]
 __vmalloc_node_range+0xc40/0x10b0 mm/vmalloc.c:3110
 __vmalloc_node+0xb5/0x100 mm/vmalloc.c:3160
 alloc_one_pg_vec_page net/packet/af_packet.c:4293 [inline]
 alloc_pg_vec net/packet/af_packet.c:4318 [inline]
 packet_set_ring+0xb60/0x1b20 net/packet/af_packet.c:4403
 packet_setsockopt+0x1b4f/0x3cb0 net/packet/af_packet.c:3780
 __sys_setsockopt+0x180/0x2a0 net/socket.c:2180
 __do_sys_setsockopt net/socket.c:2191 [inline]
 __se_sys_setsockopt net/socket.c:2188 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2188
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f3fbcc62b19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3fba1d8188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f3fbcd75f60 RCX: 00007f3fbcc62b19
RDX: 000000000000000d RSI: 0000000000000107 RDI: 0000000000000003
RBP: 00007f3fbccbcf6d R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020000100 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe1a66f45f R14: 00007f3fba1d8300 R15: 0000000000022000
 </TASK>

=============================
[ BUG: Invalid wait context ]
5.17.0-rc1-next-20220124 #1 Tainted: G        W        
-----------------------------
syz-executor.1/5296 is trying to lock:
ffff8880330862f0 (&tsk->futex_exit_mutex){+.+.}-{3:3}, at: futex_cleanup_begin kernel/futex/core.c:1058 [inline]
ffff8880330862f0 (&tsk->futex_exit_mutex){+.+.}-{3:3}, at: futex_exit_release+0x2d/0x220 kernel/futex/core.c:1110
other info that might help us debug this:
context-{4:4}
3 locks held by syz-executor.1/5296:
 #0: ffff888041690130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1668 [inline]
 #0: ffff888041690130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_setsockopt+0x156/0x3cb0 net/packet/af_packet.c:3763
 #1: ffffffff852793e8 (oom_lock){+.+.}-{3:3}, at: __alloc_pages_may_oom mm/page_alloc.c:4281 [inline]
 #1: ffffffff852793e8 (oom_lock){+.+.}-{3:3}, at: __alloc_pages_slowpath.constprop.0+0xcc9/0x1f10 mm/page_alloc.c:5063
 #2: ffff8880330858e0 (&p->alloc_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline]
 #2: ffff8880330858e0 (&p->alloc_lock){+.+.}-{2:2}, at: task_lock include/linux/sched/task.h:170 [inline]
 #2: ffff8880330858e0 (&p->alloc_lock){+.+.}-{2:2}, at: find_lock_task_mm+0xe3/0x2b0 mm/oom_kill.c:144
stack backtrace:
CPU: 1 PID: 5296 Comm: syz-executor.1 Tainted: G        W         5.17.0-rc1-next-20220124 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x8b/0xb3 lib/dump_stack.c:106
 print_lock_invalid_wait_context kernel/locking/lockdep.c:4678 [inline]
 check_wait_context kernel/locking/lockdep.c:4739 [inline]
 __lock_acquire.cold+0xc8/0x3b4 kernel/locking/lockdep.c:4977
 lock_acquire kernel/locking/lockdep.c:5639 [inline]
 lock_acquire+0x1a2/0x4d0 kernel/locking/lockdep.c:5604
 __mutex_lock_common kernel/locking/mutex.c:600 [inline]
 __mutex_lock+0x136/0x1480 kernel/locking/mutex.c:733
 futex_cleanup_begin kernel/futex/core.c:1058 [inline]
 futex_exit_release+0x2d/0x220 kernel/futex/core.c:1110
 __oom_kill_process+0x373/0xf90 mm/oom_kill.c:893
 oom_kill_process+0xd7/0x5c0 mm/oom_kill.c:1003
 out_of_memory+0x11e7/0x14b0 mm/oom_kill.c:1114
 __alloc_pages_may_oom mm/page_alloc.c:4332 [inline]
 __alloc_pages_slowpath.constprop.0+0x1972/0x1f10 mm/page_alloc.c:5063
 __alloc_pages+0x403/0x4e0 mm/page_alloc.c:5394
 alloc_pages+0x1a0/0x2f0 mm/mempolicy.c:2271
 vm_area_alloc_pages mm/vmalloc.c:2902 [inline]
 __vmalloc_area_node mm/vmalloc.c:2965 [inline]
 __vmalloc_node_range+0xc40/0x10b0 mm/vmalloc.c:3110
 __vmalloc_node+0xb5/0x100 mm/vmalloc.c:3160
 alloc_one_pg_vec_page net/packet/af_packet.c:4293 [inline]
 alloc_pg_vec net/packet/af_packet.c:4318 [inline]
 packet_set_ring+0xb60/0x1b20 net/packet/af_packet.c:4403
 packet_setsockopt+0x1b4f/0x3cb0 net/packet/af_packet.c:3780
 __sys_setsockopt+0x180/0x2a0 net/socket.c:2180
 __do_sys_setsockopt net/socket.c:2191 [inline]
 __se_sys_setsockopt net/socket.c:2188 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2188
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f3fbcc62b19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3fba1d8188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f3fbcd75f60 RCX: 00007f3fbcc62b19
RDX: 000000000000000d RSI: 0000000000000107 RDI: 0000000000000003
RBP: 00007f3fbccbcf6d R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020000100 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe1a66f45f R14: 00007f3fba1d8300 R15: 0000000000022000
 </TASK>
Out of memory (oom_kill_allocating_task): Killed process 5296 (syz-executor.1) total-vm:93544kB, anon-rss:432kB, file-rss:35384kB, shmem-rss:0kB, UID:0 pgtables:140kB oom_score_adj:1000
warn_alloc: 1 callbacks suppressed
syz-executor.4: vmalloc error: size 608743424, page order 0, failed to allocate pages, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=syz4,mems_allowed=0
CPU: 0 PID: 5298 Comm: syz-executor.4 Tainted: G        W         5.17.0-rc1-next-20220124 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x8b/0xb3 lib/dump_stack.c:106
 warn_alloc.cold+0x95/0x18a mm/page_alloc.c:4238
 __vmalloc_area_node mm/vmalloc.c:2982 [inline]
 __vmalloc_node_range+0xe7a/0x10b0 mm/vmalloc.c:3110
 __vmalloc_node+0xb5/0x100 mm/vmalloc.c:3160
 alloc_one_pg_vec_page net/packet/af_packet.c:4293 [inline]
 alloc_pg_vec net/packet/af_packet.c:4318 [inline]
 packet_set_ring+0xb60/0x1b20 net/packet/af_packet.c:4403
 packet_setsockopt+0x1b4f/0x3cb0 net/packet/af_packet.c:3780
 __sys_setsockopt+0x180/0x2a0 net/socket.c:2180
 __do_sys_setsockopt net/socket.c:2191 [inline]
 __se_sys_setsockopt net/socket.c:2188 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2188
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f11ea087b19
Code: Unable to access opcode bytes at RIP 0x7f11ea087aef.
RSP: 002b:00007f11e75fd188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f11ea19af60 RCX: 00007f11ea087b19
RDX: 000000000000000d RSI: 0000000000000107 RDI: 0000000000000003
RBP: 00007f11ea0e1f6d R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020000100 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff0d7d794f R14: 00007f11e75fd300 R15: 0000000000022000
 </TASK>
Mem-Info:
active_anon:754 inactive_anon:40313 isolated_anon:0
 active_file:209 inactive_file:242 isolated_file:18
 unevictable:0 dirty:0 writeback:0
 slab_reclaimable:7001 slab_unreclaimable:59881
 mapped:69799 shmem:117 pagetables:1050 bounce:0
 kernel_misc_reclaimable:0
 free:3703 free_pcp:209 free_cma:0
Node 0 active_anon:3016kB inactive_anon:161252kB active_file:920kB inactive_file:868kB unevictable:0kB isolated(anon):0kB isolated(file):72kB mapped:279196kB dirty:0kB writeback:0kB shmem:468kB writeback_tmp:0kB kernel_stack:3904kB pagetables:4200kB all_unreclaimable? no
Node 0 DMA free:6512kB boost:0kB min:44kB low:56kB high:68kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
lowmem_reserve[]: 0 1617 1617 1617
Node 0 DMA32 free:8300kB boost:0kB min:5120kB low:6776kB high:8432kB reserved_highatomic:2048KB active_anon:3016kB inactive_anon:161252kB active_file:1376kB inactive_file:760kB unevictable:0kB writepending:0kB present:2080640kB managed:1660796kB mlocked:0kB bounce:0kB free_pcp:836kB local_pcp:816kB free_cma:0kB
lowmem_reserve[]: 0 0 0 0
Node 0 
oom_reaper: reaped process 5298 (syz-executor.4), now anon-rss:0kB, file-rss:34836kB, shmem-rss:0kB
DMA: 2*4kB (UE) 1*8kB (E) 2*16kB (UE) 2*32kB (UE) 2*64kB (UE) 1*128kB (E) 2*256kB (UE) 1*512kB (E) 1*1024kB (E) 2*2048kB (ME) 0*4096kB = 6512kB
oom_reaper: reaped process 5296 (syz-executor.1), now anon-rss:0kB, file-rss:34836kB, shmem-rss:0kB
Node 0 DMA32: 601*4kB (UME) 237*8kB (UME) 53*16kB (UME) 22*32kB (UME) 2*64kB (U) 3*128kB (UM) 1*256kB (M) 0*512kB 0*1024kB 1*2048kB (H) 0*4096kB = 8668kB
Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
574 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
524158 pages RAM
0 pages HighMem/MovableOnly
105119 pages reserved