[v6.1] INFO: rcu detected stall in vma_expand

1 view
Skip to first unread message

syzbot

unread,
Dec 6, 2023, 3:47:25 PM12/6/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c6114c845984 Linux 6.1.65
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=161fc27ae80000
kernel config: https://syzkaller.appspot.com/x/.config?x=61e0c4a5fbb36a13
dashboard link: https://syzkaller.appspot.com/bug?extid=684ed24a7dd347106b13
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/f761cbc53791/disk-c6114c84.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/d6a6e4496af6/vmlinux-c6114c84.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f4794a58f735/bzImage-c6114c84.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+684ed2...@syzkaller.appspotmail.com

rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 0-...!: (1 GPs behind) idle=43a4/1/0x4000000000000000 softirq=73148/73149 fqs=2
(detected by 1, t=10502 jiffies, g=108749, q=129 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 21792 Comm: syz-executor.3 Not tainted 6.1.65-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:mark_lock+0x10d/0x340 kernel/locking/lockdep.c:4647
Code: 42 80 3c 28 00 74 08 48 89 df e8 9e 36 77 00 41 bc 01 00 00 00 44 85 33 74 53 44 89 e0 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f <5d> c3 e8 7c 9e c9 02 85 c0 74 be 48 c7 c0 e8 71 73 8e 48 c1 e8 03
RSP: 0018:ffffc90000007910 EFLAGS: 00000086
RAX: 0000000000000001 RBX: ffffffff90188798 RCX: ffffffff816ab8da
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9048e220
RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff2091c45
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88808772e418
R13: ffff88808772d940 R14: ffff88808772e4b8 R15: 1ffff11010ee5c97
FS: 000055555697d480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000440 CR3: 000000007b0b8000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<IRQ>
mark_usage kernel/locking/lockdep.c:4520 [inline]
__lock_acquire+0xb40/0x1f80 kernel/locking/lockdep.c:5003
lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
debug_object_activate+0x16a/0x890 lib/debugobjects.c:706
debug_hrtimer_activate kernel/time/hrtimer.c:420 [inline]
debug_activate kernel/time/hrtimer.c:475 [inline]
enqueue_hrtimer+0x30/0x390 kernel/time/hrtimer.c:1084
__run_hrtimer kernel/time/hrtimer.c:1702 [inline]
__hrtimer_run_queues+0x728/0xe50 kernel/time/hrtimer.c:1749
hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
__sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:stack_trace_consume_entry+0x1/0x270 kernel/stacktrace.c:83
Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 7b ff ff ff 48 89 df e8 30 a2 69 00 e9 6e ff ff ff e8 c6 5a 11 09 66 0f 1f 44 00 00 55 <41> 57 41 56 41 55 41 54 53 48 83 ec 18 48 89 fb 48 ba 00 00 00 00
RSP: 0018:ffffc9000509f0f0 EFLAGS: 00000282
RAX: ffffffff81d044d5 RBX: ffffc9000509f100 RCX: ffffffff8fb08000
RDX: ffffffff8fc5fe01 RSI: ffffffff81d044d5 RDI: ffffc9000509f1e0
RBP: ffffc9000509f190 R08: ffffc9000509fc70 R09: ffffc9000509f150
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88808772d940
R13: ffffffff81784da0 R14: ffffc9000509f1e0 R15: 0000000000000000
arch_stack_walk+0x101/0x140 arch/x86/kernel/stacktrace.c:27
stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516
____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236
kasan_slab_free include/linux/kasan.h:177 [inline]
slab_free_hook mm/slub.c:1724 [inline]
slab_free_freelist_hook mm/slub.c:1750 [inline]
slab_free mm/slub.c:3661 [inline]
kmem_cache_free+0x292/0x510 mm/slub.c:3683
mas_destroy+0x1c65/0x2310 lib/maple_tree.c:5862
mas_store_prealloc+0x34d/0x460 lib/maple_tree.c:5789
vma_expand+0x541/0x8f0 mm/mmap.c:570
mmap_region+0xc3f/0x1fa0 mm/mmap.c:2730
do_mmap+0x8c5/0xf60 mm/mmap.c:1425
vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:520
ksys_mmap_pgoff+0x4f5/0x6d0 mm/mmap.c:1471
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f53dec7cb23
Code: f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 41 89 ca 41 f7 c1 ff 0f 00 00 75 14 b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 25 c3 0f 1f 40 00 48 c7 c0 b0 ff ff ff 64 c7
RSP: 002b:00007fff76f83b98 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000400000 RCX: 00007f53dec7cb23
RDX: 0000000000000003 RSI: 00000000003c0000 RDI: 0000001b2e160000
RBP: 0000001b2e160000 R08: 0000000000000004 R09: 0000000000040000
R10: 0000000000000011 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001
</TASK>
rcu: rcu_preempt kthread starved for 10490 jiffies! g108749 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt state:R running task stack:26680 pid:16 ppid:2 flags:0x00004000
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5245 [inline]
__schedule+0x142d/0x4550 kernel/sched/core.c:6558
schedule+0xbf/0x180 kernel/sched/core.c:6634
schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935
rcu_gp_fqs_loop+0x2d2/0x1120 kernel/rcu/tree.c:1674
rcu_gp_kthread+0xa3/0x3a0 kernel/rcu/tree.c:1873
kthread+0x28d/0x320 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
</TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 PID: 16551 Comm: kworker/u4:31 Not tainted 6.1.65-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:424 [inline]
RIP: 0010:smp_call_function_many_cond+0x1fb0/0x3460 kernel/smp.c:998
Code: 2f 44 89 ee 83 e6 01 31 ff e8 ec 42 0b 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 0a e8 77 3f 0b 00 e9 1b ff ff ff f3 90 <42> 0f b6 04 2b 84 c0 75 14 41 f7 07 01 00 00 00 0f 84 fe fe ff ff
RSP: 0018:ffffc900155e75a0 EFLAGS: 00000293
RAX: ffffffff817f532b RBX: 1ffff1101730841d RCX: ffff8880875a1dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900155e7980 R08: ffffffff817f52f4 R09: fffffbfff2091c45
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000800000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880b98420e8
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f529d4c56be CR3: 000000000ce8e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
</IRQ>
<TASK>
on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1166
on_each_cpu include/linux/smp.h:71 [inline]
text_poke_sync arch/x86/kernel/alternative.c:1329 [inline]
text_poke_bp_batch+0x2bb/0x940 arch/x86/kernel/alternative.c:1529
text_poke_flush arch/x86/kernel/alternative.c:1720 [inline]
text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1727
arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
static_key_enable_cpuslocked+0x12e/0x250 kernel/jump_label.c:177
static_key_enable+0x16/0x20 kernel/jump_label.c:190
toggle_allocation_gate+0xbf/0x480 mm/kfence/core.c:804
process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
kthread+0x28d/0x320 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Mar 15, 2024, 4:47:12 PMMar 15
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages