syzbot


INFO: rcu detected stall in sys_mprotect (8)

Status: upstream: reported on 2024/10/11 07:05
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+6f7c31cf5ae4944ad6f0@syzkaller.appspotmail.com
First crash: 188d, last: 3d02h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] INFO: rcu detected stall in sys_mprotect (8) 0 (1) 2024/10/11 07:05
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 678d 729d 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 1778d 1778d 0/28 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_mprotect (2) kernel 1 1779d 1779d 0/28 closed as invalid on 2020/01/08 05:23
linux-5.15 INFO: rcu detected stall in sys_mprotect 1 208d 208d 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 997d 997d 0/28 auto-closed as invalid on 2022/05/29 03:15
upstream INFO: rcu detected stall in sys_mprotect (4) mm 1 1062d 1062d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in sys_mprotect kernel 3 1814d 1815d 0/28 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in sys_mprotect (7) mm 9 309d 537d 0/28 auto-obsoleted due to no activity on 2024/04/15 19:55
linux-6.1 INFO: rcu detected stall in sys_mprotect 7 104d 181d 0/3 auto-obsoleted due to no activity on 2024/11/16 09:36
android-5-15 BUG: soft lockup in sys_mprotect 1 175d 175d 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): P11599/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=37713, q=285 ncpus=2)
task:syz.8.1371      state:R  running task     stack:25920 pid:11599 tgid:11599 ppid:10921  flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5328 [inline]
 __schedule+0x184f/0x4c30 kernel/sched/core.c:6693
 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7015
 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:unwind_done arch/x86/include/asm/unwind.h:50 [inline]
RIP: 0010:unwind_get_return_address+0x22/0x90 arch/x86/kernel/unwind_orc.c:366
Code: 90 90 90 90 90 90 90 90 f3 0f 1e fa 41 57 41 56 53 48 89 fb 49 be 00 00 00 00 00 fc ff df 48 89 f8 48 c1 e8 03 42 0f b6 04 30 <84> c0 75 4b 83 3b 00 74 3a 48 83 c3 48 49 89 df 49 c1 ef 03 43 80
RSP: 0018:ffffc900049fefe0 EFLAGS: 00000216
RAX: 0000000000000000 RBX: ffffc900049ff000 RCX: 0000000080000000
RDX: dffffc0000000000 RSI: ffffc900049f8000 RDI: ffffc900049ff000
RBP: ffffc900049ff090 R08: ffffc900049ff8d0 R09: ffffc900049ff050
R10: dffffc0000000000 R11: fffff5200093fe0c R12: ffff88805daa5a00
R13: ffffffff81809270 R14: dffffc0000000000 R15: 0000000000000000
 arch_stack_walk+0xfd/0x150 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
 save_stack+0xfb/0x1f0 mm/page_owner.c:156
 __reset_page_owner+0x76/0x430 mm/page_owner.c:297
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1112 [inline]
 free_unref_page+0xcfb/0xf20 mm/page_alloc.c:2642
 discard_slab mm/slub.c:2677 [inline]
 __put_partials+0xeb/0x130 mm/slub.c:3145
 put_cpu_partial+0x17c/0x250 mm/slub.c:3220
 __slab_free+0x2ea/0x3d0 mm/slub.c:4449
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329
 kasan_slab_alloc include/linux/kasan.h:247 [inline]
 slab_post_alloc_hook mm/slub.c:4085 [inline]
 slab_alloc_node mm/slub.c:4134 [inline]
 kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4141
 mt_alloc_one lib/maple_tree.c:162 [inline]
 mas_alloc_nodes+0x26c/0x840 lib/maple_tree.c:1241
 mas_node_count_gfp lib/maple_tree.c:1321 [inline]
 mas_preallocate+0x554/0x8c0 lib/maple_tree.c:5546
 vma_iter_prealloc mm/vma.h:438 [inline]
 __split_vma+0x302/0xc50 mm/vma.c:396
 split_vma mm/vma.c:459 [inline]
 vma_modify+0x141c/0x1a80 mm/vma.c:1429
 vma_modify_flags+0x3a5/0x430 mm/vma.c:1455
 mprotect_fixup+0x45a/0xaa0 mm/mprotect.c:664
 do_mprotect_pkey+0x8d7/0xd70 mm/mprotect.c:838
 __do_sys_mprotect mm/mprotect.c:859 [inline]
 __se_sys_mprotect mm/mprotect.c:856 [inline]
 __x64_sys_mprotect+0x80/0x90 mm/mprotect.c:856
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f21aff7e7d7
RSP: 002b:00007ffdc1c436f8 EFLAGS: 00000206 ORIG_RAX: 000000000000000a
RAX: ffffffffffffffda RBX: 00007f21b0e0d6c0 RCX: 00007f21aff7e7d7
RDX: 0000000000000003 RSI: 0000000000020000 RDI: 00007f21b0dee000
RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000021000 R11: 0000000000000206 R12: 00007ffdc1c43850
R13: ffffffffffffffc0 R14: 0000000000001000 R15: 0000000000000000
 </TASK>
rcu: rcu_preempt kthread starved for 9544 jiffies! g37713 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:24336 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5328 [inline]
 __schedule+0x184f/0x4c30 kernel/sched/core.c:6693
 __schedule_loop kernel/sched/core.c:6770 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6785
 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615
 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247
 kthread+0x2f2/0x390 kernel/kthread.c:389
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 5854 Comm: kworker/1:3 Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
Workqueue: events_power_efficient neigh_periodic_work
RIP: 0010:kcov_remote_stop_softirq include/linux/kcov.h:97 [inline]
RIP: 0010:__usb_hcd_giveback_urb+0x435/0x6e0 drivers/usb/core/hcd.c:1651
Code: 00 48 89 f8 48 c1 e8 03 42 80 3c 30 00 74 05 e8 51 5d c6 fa 4d 8b 9d b0 00 00 00 4c 89 ef e8 e2 24 99 04 65 8b 1d 83 90 cb 78 <89> de 81 e6 00 01 00 00 31 ff e8 fc 96 5c fa 81 e3 00 01 00 00 75
RSP: 0018:ffffc90000a188a0 EFLAGS: 00000082
RAX: ffffffff86ce173a RBX: 0000000080000100 RCX: 0000000000040000
RDX: ffffc900022c2000 RSI: 0000000000000023 RDI: 0000000000000024
RBP: ffffc90000a18970 R08: ffffffff86ce16d9 R09: 1ffff11005122000
R10: dffffc0000000000 R11: ffffed1005122001 R12: 0000000000000009
R13: ffff8880633fcd00 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2dd06ff8 CR3: 000000000e734000 CR4: 0000000000350ef0
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 dummy_timer+0x856/0x4620 drivers/usb/gadget/udc/dummy_hcd.c:1993
 __run_hrtimer kernel/time/hrtimer.c:1691 [inline]
 __hrtimer_run_queues+0x59d/0xd50 kernel/time/hrtimer.c:1755
 hrtimer_run_softirq+0x19a/0x2c0 kernel/time/hrtimer.c:1772
 handle_softirqs+0x2c7/0x980 kernel/softirq.c:554
 __do_softirq kernel/softirq.c:588 [inline]
 invoke_softirq kernel/softirq.c:428 [inline]
 __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:neigh_periodic_work+0xb50/0xd50 net/core/neighbour.c:1021
Code: ff ff 48 8b 5c 24 40 48 89 df e8 eb 9d 38 02 48 c7 c7 a0 23 0e 8d be fc 03 00 00 31 d2 e8 b8 2e cc f7 2e 2e 2e 31 c0 48 89 df <e8> 5b 9b 38 02 e8 36 d9 2e 02 89 c3 31 ff 89 c6 e8 ab 38 fc f7 85
RSP: 0018:ffffc9000318fb30 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffffff8fde8180 RCX: ffff8880349d3c00
RDX: dffffc0000000000 RSI: ffff8880349d3c00 RDI: ffffffff8fde8180
RBP: 1ffff11004e582db R08: ffffffff942cd8bf R09: 1ffffffff2859b17
R10: dffffc0000000000 R11: fffffbfff2859b18 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff888062390ad8 R15: ffff8880272c16d8
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa65/0x1850 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f2/0x390 kernel/kthread.c:389
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (43):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/13 07:59 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2024/11/09 11:23 upstream 50643bbc9eb6 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2024/10/29 19:42 upstream e42b1a9a2557 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2024/10/07 22:25 upstream 8cf0b93919e1 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in sys_mprotect
2024/09/25 00:27 upstream 97d8894b6f4c 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in sys_mprotect
2024/09/23 15:18 upstream de5cb0dcb74c 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in sys_mprotect
2024/09/04 12:32 upstream 88fac17500f4 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_mprotect
2024/08/28 15:39 upstream 86987d84b968 940f38c1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2024/08/28 00:16 upstream 3ec3f5fc4a91 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_mprotect
2024/08/11 00:58 upstream 5189dafa4cf9 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2024/07/29 22:39 upstream dc1c8034e31b 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2024/07/25 00:19 upstream 786c8248dbd3 b24754ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in sys_mprotect
2024/07/17 16:37 upstream 51835949dda3 03114f55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_mprotect
2024/07/16 22:23 upstream 408323581b72 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_mprotect
2024/07/08 07:30 upstream 256abd8e550c bc4ebbb5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2024/07/01 11:43 upstream 22a40d14b572 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_mprotect
2024/06/30 21:10 upstream 3ffea9a7a6f7 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_mprotect
2024/06/24 15:15 upstream f2661062f16b edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_mprotect
2024/06/20 22:27 upstream 2ccbdf43d5e7 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2024/06/19 20:18 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_mprotect
2024/06/09 09:48 upstream 061d1af7b030 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2024/06/06 13:30 upstream 2df0193e62cf 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2024/05/28 07:25 upstream 2bfcfd584ff5 f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_mprotect
2024/05/19 19:54 upstream 61307b7be41a c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_mprotect
2024/10/25 01:27 upstream c2ee9f594da8 9fc8fe02 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: rcu detected stall in sys_mprotect
2024/09/20 06:11 upstream 2004cef11ea0 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: rcu detected stall in sys_mprotect
2024/07/25 11:38 upstream c33ffdb70cc6 b24754ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: rcu detected stall in sys_mprotect
2024/06/02 12:50 upstream 89be4025b0db 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: rcu detected stall in sys_mprotect
2024/11/15 22:59 net ea301aec8bb7 f6ede3a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_mprotect
2024/11/10 18:14 net 252e01e68241 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_mprotect
2024/10/15 10:12 net 25c12b459db8 14943bb8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_mprotect
2024/10/15 10:05 net 25c12b459db8 14943bb8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_mprotect
2024/11/18 04:46 net-next 38f83a57aa8e cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in sys_mprotect
2024/10/23 07:03 net-next 6d858708d465 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in sys_mprotect
2024/10/05 15:27 net-next d521db38f339 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in sys_mprotect
2024/10/19 06:28 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 07b887f8236e cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_mprotect
2024/10/15 19:13 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 64f3b5a6bc49 7eb57b4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_mprotect
2024/10/07 06:57 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 4a9fe2a8ac53 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_mprotect
2024/10/06 22:46 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 4a9fe2a8ac53 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_mprotect
2024/10/06 05:52 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 4a9fe2a8ac53 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_mprotect
2024/10/05 06:53 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 4a9fe2a8ac53 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_mprotect
2024/06/28 05:27 linux-next 642a16ca7994 b62c7d46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_mprotect
2024/05/16 08:03 linux-next dbd9e2e056d8 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_mprotect
* Struck through repros no longer work on HEAD.