syzbot


INFO: rcu detected stall in sys_mprotect

Status: auto-obsoleted due to no activity on 2024/11/16 09:36
Reported-by: syzbot+5abe6470e48cf6572688@syzkaller.appspotmail.com
First crash: 211d, last: 135d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_mprotect (6) kernel 3 709d 759d 0/28 auto-obsoleted due to no activity on 2023/04/20 15:51
upstream INFO: rcu detected stall in sys_mprotect (3) kernel 3 1809d 1809d 0/28 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_mprotect (2) kernel 1 1809d 1809d 0/28 closed as invalid on 2020/01/08 05:23
upstream INFO: rcu detected stall in sys_mprotect (8) mm 50 6d15h 71d 0/28 upstream: reported on 2024/10/11 07:05
linux-5.15 INFO: rcu detected stall in sys_mprotect 1 238d 238d 0/3 auto-obsoleted due to no activity on 2024/08/04 17:12
upstream INFO: rcu detected stall in sys_mprotect (5) kernel 1 1027d 1027d 0/28 auto-closed as invalid on 2022/05/29 03:15
upstream INFO: rcu detected stall in sys_mprotect (4) mm 1 1092d 1092d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in sys_mprotect kernel 3 1845d 1845d 0/28 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in sys_mprotect (7) mm 9 339d 567d 0/28 auto-obsoleted due to no activity on 2024/04/15 19:55
android-5-15 BUG: soft lockup in sys_mprotect 1 206d 206d 0/2 auto-obsoleted due to no activity on 2024/08/27 08:23

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P10360/1:b..l P10355/1:b..l
	(detected by 1, t=10502 jiffies, g=57893, q=341 ncpus=2)
task:modprobe        state:R  running task     stack:23880 pid:10355 ppid:4595   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 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:lock_is_held_type+0x0/0x180 kernel/locking/lockdep.c:5690
Code: 00 75 d6 48 c7 c7 00 01 0c 8b 48 c7 c6 40 01 0c 8b e8 e4 73 ad f6 0f 0b eb bf e8 ab fd ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 <55> 41 57 41 56 41 55 41 54 53 48 83 ec 10 65 48 8b 04 25 28 00 00
RSP: 0018:ffffc9000344f538 EFLAGS: 00000246
RAX: 1ffff1100fa30e10 RBX: 0000000000000300 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff88807d1871d8
RBP: ffffc9000344f730 R08: ffffffff8a9c2b1e R09: ffffffff8a9c2c0b
R10: 0000000000000003 R11: ffff88801ee93b80 R12: 1ffff92000689ec7
R13: ffffc9000344f638 R14: ffff88807d1871d8 R15: 0000000000000000
 mt_slot lib/maple_tree.c:814 [inline]
 mas_slot lib/maple_tree.c:847 [inline]
 mt_validate_nulls lib/maple_tree.c:7187 [inline]
 mt_validate+0x507c/0x5ad0 lib/maple_tree.c:7243
 validate_mm_mt+0x165/0x670 mm/mmap.c:295
 validate_mm+0x16e/0x380 mm/mmap.c:332
 __vma_adjust+0x1d41/0x1f40 mm/mmap.c:871
 __split_vma+0x36e/0x530
 mprotect_fixup+0x753/0x840 mm/mprotect.c:623
 do_mprotect_pkey+0x8b6/0xbe0 mm/mprotect.c:792
 __do_sys_mprotect mm/mprotect.c:819 [inline]
 __se_sys_mprotect mm/mprotect.c:816 [inline]
 __x64_sys_mprotect+0x7c/0x90 mm/mprotect.c:816
 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:0x7efdf39efbb7
RSP: 002b:00007ffe9b9908b8 EFLAGS: 00000206 ORIG_RAX: 000000000000000a
RAX: ffffffffffffffda RBX: 00007efdf39d3570 RCX: 00007efdf39efbb7
RDX: 0000000000000001 RSI: 0000000000001000 RDI: 00007efdf3725000
RBP: 00007ffe9b9909d0 R08: 00007ffe9b990848 R09: 00007efdf39d25c0
R10: 00007efdf36d2928 R11: 0000000000000206 R12: 00007efdf39d3570
R13: 00007efdf39f7eda R14: 00007efdf3725fb0 R15: 00007efdf3725e58
 </TASK>
task:modprobe        state:R  running task     stack:23880 pid:10360 ppid:3748   flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 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:__sanitizer_cov_trace_const_cmp4+0x7c/0x80 kernel/kcov.c:306
Code: 8d 42 28 4c 39 c8 77 22 89 f8 89 f6 49 ff c2 4c 89 11 48 c7 44 0a 08 05 00 00 00 48 89 44 0a 10 48 89 74 0a 18 4c 89 44 0a 20 <c3> 0f 1f 00 4c 8b 04 24 65 48 8b 0d b4 ca 77 7e 65 8b 05 b5 ca 77
RSP: 0018:ffffc900030ef788 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888021719dc0
RDX: ffff888021719dc0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8880229b16c0 R08: ffffffff81f3ad1a R09: fffff5200061df76
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880229b16c2
R13: ffffffff8d1d5520 R14: 0000000000000081 R15: dffffc0000000000
 devcgroup_inode_permission include/linux/device_cgroup.h:21 [inline]
 inode_permission+0xea/0x450 fs/namei.c:532
 may_lookup fs/namei.c:1716 [inline]
 link_path_walk+0x283/0xee0 fs/namei.c:2267
 path_openat+0x23d/0x2e60 fs/namei.c:3781
 do_filp_open+0x230/0x480 fs/namei.c:3812
 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_openat fs/open.c:1350 [inline]
 __se_sys_openat fs/open.c:1345 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1345
 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:0x7f72b1f48a46
RSP: 002b:00007ffe3314e5c8 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007ffe3314e828 RCX: 00007f72b1f48a46
RDX: 0000000000080000 RSI: 00007ffe3314e640 RDI: 00000000ffffff9c
RBP: 00007ffe3314e630 R08: 0000000000080000 R09: 00007ffe3314e640
R10: 0000000000000000 R11: 0000000000000287 R12: 00007ffe3314e640
R13: 0000000000000008 R14: 00007ffe3314e80f R15: 00000000ffffffff
 </TASK>
rcu: rcu_preempt kthread starved for 10073 jiffies! g57893 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:26752 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 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:295
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
NMI backtrace for cpu 0 skipped: idling at acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline]
NMI backtrace for cpu 0 skipped: idling at acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:567

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/08 09:35 linux-6.1.y 48d525b0e463 de12cf65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_mprotect
2024/07/28 02:38 linux-6.1.y c1cec4dad96b 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_mprotect
2024/07/19 02:41 linux-6.1.y 9b3f9a5b12dc ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_mprotect
2024/07/12 21:14 linux-6.1.y 266ee8e06d5b eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_mprotect
2024/06/13 02:27 linux-6.1.y ae9f2a70d69e 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_mprotect
2024/06/11 10:43 linux-6.1.y 88690811da69 b7d9eb04 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_mprotect
2024/05/24 04:54 linux-6.1.y 4078fa637fcd 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: rcu detected stall in sys_mprotect
* Struck through repros no longer work on HEAD.