syzbot


BUG: sleeping function called from invalid context in __vmalloc_node_range

Status: closed as dup on 2022/06/20 11:24
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+b577bc624afda52c78de@syzkaller.appspotmail.com
Fix commit: 4b23a68f9536 mm/page_alloc: protect PCP lists with a spinlock
First crash: 895d, last: 895d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
BUG: sleeping function called from invalid context in relay_open_buf block trace 3 894d 892d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] BUG: sleeping function called from invalid context in __vmalloc_node_range 2 (3) 2022/06/20 11:24

Sample crash report:
BUG: sleeping function called from invalid context at mm/vmalloc.c:2980
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 30561, name: syz-executor.0
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
no locks held by syz-executor.0/30561.
Preemption disabled at:
[<ffffffff81bc76f5>] rmqueue_pcplist mm/page_alloc.c:3813 [inline]
[<ffffffff81bc76f5>] rmqueue mm/page_alloc.c:3858 [inline]
[<ffffffff81bc76f5>] get_page_from_freelist+0x455/0x3a20 mm/page_alloc.c:4293
CPU: 1 PID: 30561 Comm: syz-executor.0 Not tainted 5.19.0-rc2-next-20220614-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9823
 vm_area_alloc_pages mm/vmalloc.c:2980 [inline]
 __vmalloc_area_node mm/vmalloc.c:3025 [inline]
 __vmalloc_node_range+0x6a1/0x13b0 mm/vmalloc.c:3195
 alloc_thread_stack_node kernel/fork.c:311 [inline]
 dup_task_struct kernel/fork.c:971 [inline]
 copy_process+0x1568/0x7080 kernel/fork.c:2065
 kernel_clone+0xe7/0xab0 kernel/fork.c:2649
 __do_sys_clone+0xba/0x100 kernel/fork.c:2783
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fe727a8a531
Code: 48 85 ff 74 3d 48 85 f6 74 38 48 83 ee 10 48 89 4e 08 48 89 3e 48 89 d7 4c 89 c2 4d 89 c8 4c 8b 54 24 08 b8 38 00 00 00 0f 05 <48> 85 c0 7c 13 74 01 c3 31 ed 58 5f ff d0 48 89 c7 b8 3c 00 00 00
RSP: 002b:00007ffee47acde8 EFLAGS: 00000206 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007fe728cb3700 RCX: 00007fe727a8a531
RDX: 00007fe728cb39d0 RSI: 00007fe728cb32f0 RDI: 00000000003d0f00
RBP: 00007ffee47ad030 R08: 00007fe728cb3700 R09: 00007fe728cb3700
R10: 00007fe728cb39d0 R11: 0000000000000206 R12: 00007ffee47ace9e
R13: 00007ffee47ace9f R14: 00007fe728cb3300 R15: 0000000000022000
 </TASK>
BUG: scheduling while atomic: syz-executor.0/30561/0x00000002
no locks held by syz-executor.0/30561.
Modules linked in:
Preemption disabled at:
[<ffffffff81bc76f5>] rmqueue_pcplist mm/page_alloc.c:3813 [inline]
[<ffffffff81bc76f5>] rmqueue mm/page_alloc.c:3858 [inline]
[<ffffffff81bc76f5>] get_page_from_freelist+0x455/0x3a20 mm/page_alloc.c:4293

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/14 22:10 linux-next 35d872b9ea5b 127d1faf .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __vmalloc_node_range
* Struck through repros no longer work on HEAD.