syzbot


INFO: rcu detected stall in do_mas_munmap

Status: upstream: reported on 2024/06/08 04:48
Reported-by: syzbot+54c44925f9037b53ba2a@syzkaller.appspotmail.com
First crash: 10d, last: 10d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in do_mas_munmap kernel 3 505d 567d 0/27 auto-obsoleted due to no activity on 2023/04/29 23:21

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P7441/1:b..l
	(detected by 1, t=10502 jiffies, g=37941, q=219 ncpus=2)
task:rm              state:R  running task     stack:23096 pid:7441  ppid:7414   flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:check_kcov_mode kernel/kcov.c:184 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x32/0x60 kernel/kcov.c:207
Code: e4 e1 77 7e 65 8b 15 e5 e1 77 7e f7 c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 1c 16 00 00 00 74 2c 8b 91 f8 15 00 00 <83> fa 02 75 21 48 8b 91 00 16 00 00 48 8b 32 48 8d 7e 01 8b 89 fc
RSP: 0018:ffffc9000336f338 EFLAGS: 00000246
RAX: ffffffff8a820094 RBX: 0000000000000001 RCX: ffff888022d5d940
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000336f530 R08: ffffffff8a820022 R09: ffffffff8a81fcdb
R10: 0000000000000003 R11: ffff888022d5d940 R12: 000000000000000a
R13: 00007fb2ae318fff R14: dffffc0000000000 R15: 0000000000000000
 mas_validate_gaps lib/maple_tree.c:7008 [inline]
 mt_validate+0x3844/0x5ad0 lib/maple_tree.c:7241
 validate_mm_mt+0x165/0x670 mm/mmap.c:295
 validate_mm+0x16e/0x380 mm/mmap.c:332
 remove_mt mm/mmap.c:2311 [inline]
 do_mas_align_munmap+0x131d/0x15f0 mm/mmap.c:2585
 do_mas_munmap+0x246/0x2b0 mm/mmap.c:2640
 mmap_region+0x8e6/0x1fa0 mm/mmap.c:2688
 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:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fb2ae5dab74
RSP: 002b:00007ffe74a030e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007ffe74a03160 RCX: 00007fb2ae5dab74
RDX: 0000000000000001 RSI: 0000000000025000 RDI: 00007fb2ae2eb000
RBP: 00007ffe74a03480 R08: 0000000000000003 R09: 000000000002e000
R10: 0000000000000812 R11: 0000000000000246 R12: 00007fb2ae5be570
R13: 00007ffe74a03508 R14: 000000000002d9c6 R15: 0000000000000000
 </TASK>
rcu: rcu_preempt kthread starved for 10536 jiffies! g37941 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:25528 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:1965
 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 PID: 7450 Comm: syz-executor.3 Not tainted 6.1.92-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: c1 bc f5 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 fe 3b d5 f6 48 89 df e8 66 79 d6 f6 e8 31 04 fc f6 fb bf 01 00 00 00 <e8> 56 08 c9 f6 65 8b 05 c7 23 6d 75 85 c0 74 02 5b c3 e8 f4 48 6b
RSP: 0018:ffffc9000353fb30 EFLAGS: 00000286
RAX: 0bf54b6c64b6db00 RBX: ffff88801af05340 RCX: ffffffff91c94103
RDX: dffffc0000000000 RSI: ffffffff8aec01c0 RDI: 0000000000000001
RBP: ffffc9000353fc70 R08: dffffc0000000000 R09: ffffed10035e0a69
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110035e0afb
R13: 000000001c000004 R14: 0000000000000021 R15: ffff88801af057d8
FS:  00007f45477306c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000063e80 CR3: 0000000056ddd000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 spin_unlock_irq include/linux/spinlock.h:401 [inline]
 get_signal+0x154b/0x17d0 kernel/signal.c:2865
 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f4546a7cf69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4547730178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f4546bb41f8 RCX: 00007f4546a7cf69
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f4546bb41f8
RBP: 00007f4546bb41f0 R08: 00007f45477306c0 R09: 00007f45477306c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f4546bb41fc
R13: 000000000000006e R14: 00007ffe226c8270 R15: 00007ffe226c8358
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/08 04:48 linux-6.1.y 88690811da69 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in do_mas_munmap
* Struck through repros no longer work on HEAD.