syzbot


INFO: rcu detected stall in sys_mprotect (7)

Status: auto-obsoleted due to no activity on 2024/04/15 19:55
Subsystems: mm
[Documentation on labels]
First crash: 335d, last: 107d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_mprotect (6) kernel 3 477d 527d 0/26 auto-obsoleted due to no activity on 2023/04/20 15:51
upstream INFO: rcu detected stall in sys_mprotect (3) kernel 3 1577d 1576d 0/26 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_mprotect (2) kernel 1 1577d 1577d 0/26 closed as invalid on 2020/01/08 05:23
linux-5.15 INFO: rcu detected stall in sys_mprotect 1 6d19h 6d19h 0/3 upstream: reported on 2024/04/26 17:12
upstream INFO: rcu detected stall in sys_mprotect (5) kernel 1 795d 795d 0/26 auto-closed as invalid on 2022/05/29 03:15
upstream INFO: rcu detected stall in sys_mprotect (4) mm 1 860d 860d 0/26 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in sys_mprotect kernel 3 1613d 1613d 0/26 closed as invalid on 2019/12/04 14:04

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P5798/1:b..l
rcu: 	(detected by 1, t=10502 jiffies, g=15993, q=746 ncpus=2)
task:syz-executor.3  state:R  running task     stack:26280 pid:5798  tgid:5798  ppid:5090   flags:0x00000002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5400 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6727
 preempt_schedule_irq+0x52/0x90 kernel/sched/core.c:7047
 irqentry_exit+0x36/0x80 kernel/entry/common.c:348
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:check_kcov_mode kernel/kcov.c:175 [inline]
RIP: 0010:write_comp_data+0x2f/0x80 kernel/kcov.c:236
Code: f8 49 89 f1 65 48 8b 14 25 40 c2 03 00 65 8b 05 af ce 7c 7e a9 00 01 ff 00 74 0f f6 c4 01 74 59 8b 82 fc 15 00 00 85 c0 74 4f <8b> 82 d8 15 00 00 83 f8 03 75 44 48 8b 82 e0 15 00 00 8b 92 dc 15
RSP: 0018:ffffc9000360f838 EFLAGS: 00000246
RAX: 0000000080000000 RBX: 0000000000000000 RCX: ffffffff8a799d18
RDX: ffff888021158000 RSI: 0000000000000006 RDI: 0000000000000007
RBP: ffff88802df96400 R08: 0000000000000007 R09: 0000000000000006
R10: 0000000000000006 R11: ffffffff8ace21e0 R12: 0000000000000000
R13: 0000000000000006 R14: 0000000000000002 R15: ffff88802d6fc400
 mas_parent_type lib/maple_tree.c:465 [inline]
 mas_validate_gaps lib/maple_tree.c:7284 [inline]
 mt_validate+0x30c8/0x4390 lib/maple_tree.c:7505
 validate_mm+0x9c/0x4b0 mm/mmap.c:288
 __split_vma+0xe34/0x1190 mm/mmap.c:2379
 split_vma mm/mmap.c:2405 [inline]
 vma_modify+0x326/0x450 mm/mmap.c:2447
 vma_modify_flags include/linux/mm.h:3283 [inline]
 mprotect_fixup+0x228/0xc90 mm/mprotect.c:635
 do_mprotect_pkey+0x85d/0xd70 mm/mprotect.c:809
 __do_sys_mprotect mm/mprotect.c:830 [inline]
 __se_sys_mprotect mm/mprotect.c:827 [inline]
 __x64_sys_mprotect+0x78/0xb0 mm/mprotect.c:827
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fe8c007ce67
RSP: 002b:00007ffc22c7dfd8 EFLAGS: 00000206 ORIG_RAX: 000000000000000a
RAX: ffffffffffffffda RBX: 00007fe8c0d1b6c0 RCX: 00007fe8c007ce67
RDX: 0000000000000003 RSI: 0000000000020000 RDI: 00007fe8c0cfc000
RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000021000 R11: 0000000000000206 R12: 00007ffc22c7e280
R13: ffffffffffffffc0 R14: 0000000000001000 R15: 0000000000000000
 </TASK>
rcu: rcu_preempt kthread starved for 10525 jiffies! g15993 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
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:28544 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5400 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6727
 __schedule_loop kernel/sched/core.c:6802 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6817
 schedule_timeout+0x137/0x290 kernel/time/timer.c:2183
 rcu_gp_fqs_loop+0x1ec/0xb10 kernel/rcu/tree.c:1631
 rcu_gp_kthread+0x24b/0x380 kernel/rcu/tree.c:1830
 kthread+0x2c6/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5822 Comm: syz-executor.2 Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:trace_hardirqs_on+0x1d/0x40 kernel/trace/trace_preemptirq.c:56
Code: e8 d8 5b 50 00 eb ac 66 0f 1f 44 00 00 f3 0f 1e fa 65 8b 05 c5 aa 75 7e 85 c0 75 0e e8 dc 63 d9 ff 48 8b 3c 24 e9 23 c8 fc 08 <48> 8b 3c 24 e8 da fe ff ff 65 c7 05 9f aa 75 7e 00 00 00 00 e8 ba
RSP: 0018:ffffc90004b4fae0 EFLAGS: 00000002
RAX: 0000000000000001 RBX: 00000000fffffe01 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff8acb4200 RDI: 0000000000000001
RBP: ffffffff813141a9 R08: 0000000000000000 R09: fffffbfff1e7397a
R10: ffffffff8f39cbd7 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88802f21176c R14: 0000000000000001 R15: ffffed1005e42322
FS:  00007efc0f9bd6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efc0f9bcf00 CR3: 000000002994e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 __local_bh_enable_ip+0xa4/0x120 kernel/softirq.c:386
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 fpregs_unlock arch/x86/include/asm/fpu/api.h:80 [inline]
 restore_fpregs_from_user arch/x86/kernel/fpu/signal.c:330 [inline]
 __fpu_restore_sig+0x69e/0x1390 arch/x86/kernel/fpu/signal.c:361
 fpu__restore_sig+0x103/0x180 arch/x86/kernel/fpu/signal.c:496
 restore_sigcontext+0x4c5/0x690 arch/x86/kernel/signal_64.c:95
 __do_sys_rt_sigreturn+0x139/0x230 arch/x86/kernel/signal_64.c:263
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7efc10627800
Code: 5b 5d c3 48 8d 3d 0f 0a 0a 00 e8 ab fa ff ff 48 8d 3d 11 0a 0a 00 e8 9f fa ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 <53> 89 fb 48 83 ec 10 64 8b 04 25 ac ff ff ff 85 c0 74 2a 89 fe 31
RSP: 002b:00007efc0f9bcb38 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 0000000000000002 RCX: 00007efc106d3f2c
RDX: 00007efc0f9bcb40 RSI: 00007efc0f9bcc70 RDI: 000000000000000b
RBP: 00007efc106c947a R08: 0000000000000138 R09: 0000000000000001
R10: 00007ffcf27a7080 R11: 0000000002294e1c R12: 0000000000000000
R13: 000000000000006e R14: 00007efc107ac2c0 R15: 00007ffcf279fab8
 </TASK>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/16 19:51 upstream 052d534373b7 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_mprotect
2023/11/09 23:44 upstream 4bbdb725a36b 56230772 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in sys_mprotect
2023/10/01 23:32 upstream ec8c298121e3 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_mprotect
2023/08/11 03:46 upstream 25aa0bebba72 da3c3ef8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2023/07/24 12:52 upstream 6eaae1980760 06460670 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in sys_mprotect
2023/06/19 16:47 upstream 45a3e24f65e9 d521bc56 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_mprotect
2023/06/06 08:46 upstream f8dba31b0a82 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in sys_mprotect
2023/06/03 04:21 upstream 4ecd704a4c51 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_mprotect
2023/11/07 14:01 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d2f51b3516da 83211397 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_mprotect
* Struck through repros no longer work on HEAD.