syzbot


INFO: rcu detected stall in __perf_sw_event

Status: public: reported C repro on 2019/04/13 00:00
Reported-by: syzbot+bdf025f4455efabda0f0@syzkaller.appspotmail.com
First crash: 2012d, last: 1927d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: rcu detected stall in __perf_sw_event 2 1772d 1838d 0/1 auto-closed as invalid on 2020/01/11 01:03
linux-4.19 INFO: rcu detected stall in __perf_sw_event (2) C error 133 505d 1642d 0/1 upstream: reported C repro on 2020/01/20 09:59
android-414 INFO: rcu detected stall in __perf_sw_event 13 2029d 1925d 0/1 auto-closed as invalid on 2019/06/27 14:55
linux-4.14 INFO: rcu detected stall in __perf_sw_event C 3 509d 1454d 0/1 upstream: reported C repro on 2020/07/27 06:04
upstream INFO: rcu detected stall in __perf_sw_event perf syz done error 99 1170d 1989d 0/27 auto-obsoleted due to no activity on 2023/01/16 15:10

Sample crash report:
INFO: rcu_preempt self-detected stall on CPU
	0-...: (10498 ticks this GP) idle=a87/140000000000001/0 softirq=3743/3743 fqs=5238 
	 (t=10500 jiffies g=854 c=853 q=11)
Task dump for CPU 0:
syz-executor259 R  running task    28408  2445   2161 0x0000000c
 ffff8801db607c40 ffffffff813fc9e1 ffffffff813fc7e0 0000000000000001
 0000000000000000 ffff8801db621000 dffffc0000000000 ffffffff830d59c8
 ffffffff830d5a00 ffff8801db607c60 ffffffff813fceac ffffffff830d5980
Call Trace:
 <IRQ> [  695.475180]  [<000000005bf8f675>] sched_show_task.cold+0x27f/0x327 kernel/sched/core.c:5312
 [<00000000dfca9c66>] dump_cpu_task+0x7a/0x7f kernel/sched/core.c:9050
 [<00000000f3e05166>] rcu_dump_cpu_stacks+0x193/0x1c3 kernel/rcu/tree.c:1303
 [<00000000f8efe9ad>] print_cpu_stall kernel/rcu/tree.c:1446 [inline]
 [<00000000f8efe9ad>] check_cpu_stall kernel/rcu/tree.c:1514 [inline]
 [<00000000f8efe9ad>] __rcu_pending kernel/rcu/tree.c:3495 [inline]
 [<00000000f8efe9ad>] rcu_pending kernel/rcu/tree.c:3559 [inline]
 [<00000000f8efe9ad>] rcu_check_callbacks.cold+0x44a/0xd2f kernel/rcu/tree.c:2888
 [<000000004a523ef5>] update_process_times+0x31/0x70 kernel/time/timer.c:1629
 [<0000000050bf0eb2>] tick_sched_handle.isra.0+0x4a/0xf0 kernel/time/tick-sched.c:151
 [<00000000ea8ad634>] tick_sched_timer+0x7a/0x130 kernel/time/tick-sched.c:1190
 [<00000000a9ef483d>] __run_hrtimer kernel/time/hrtimer.c:1255 [inline]
 [<00000000a9ef483d>] __hrtimer_run_queues+0x313/0xe00 kernel/time/hrtimer.c:1319
 [<0000000030b4301a>] hrtimer_interrupt+0x1b6/0x450 kernel/time/hrtimer.c:1353
 [<0000000096e6ed1a>] local_apic_timer_interrupt+0x76/0xa0 arch/x86/kernel/apic/apic.c:937
 [<000000000ef29d4a>] smp_apic_timer_interrupt+0x79/0xb0 arch/x86/kernel/apic/apic.c:961
 [<00000000f9b433b7>] apic_timer_interrupt+0x9d/0xb0 arch/x86/entry/entry_64.S:648
 <EOI> [  695.592461]  [<000000000e9aa601>] ? memcpy_common kernel/events/internal.h:171 [inline]
 <EOI> [  695.592461]  [<000000000e9aa601>] ? __output_copy kernel/events/internal.h:175 [inline]
 <EOI> [  695.592461]  [<000000000e9aa601>] ? perf_output_read_group kernel/events/core.c:5746 [inline]
 <EOI> [  695.592461]  [<000000000e9aa601>] ? perf_output_read+0x776/0x12e0 kernel/events/core.c:5779
 [<00000000c936b86c>] memcpy+0x38/0x50 mm/kasan/kasan.c:361
 [<000000000e9aa601>] memcpy_common kernel/events/internal.h:171 [inline]
 [<000000000e9aa601>] __output_copy kernel/events/internal.h:175 [inline]
 [<000000000e9aa601>] perf_output_read_group kernel/events/core.c:5746 [inline]
 [<000000000e9aa601>] perf_output_read+0x776/0x12e0 kernel/events/core.c:5779
 [<000000002976b91a>] perf_output_sample+0x1142/0x17e0 kernel/events/core.c:5821
 [<00000000bf87a6c7>] __perf_event_output kernel/events/core.c:6093 [inline]
 [<00000000bf87a6c7>] perf_event_output_forward+0x129/0x240 kernel/events/core.c:6106
 [<000000004d74fafa>] __perf_event_overflow+0x121/0x330 kernel/events/core.c:7206
 [<00000000e4fec4f8>] perf_swevent_overflow+0x17c/0x210 kernel/events/core.c:7282
 [<00000000f8ce4402>] perf_swevent_event+0x1ac/0x280 kernel/events/core.c:7315
 [<00000000d36b2678>] do_perf_sw_event kernel/events/core.c:7423 [inline]
 [<00000000d36b2678>] ___perf_sw_event+0x299/0x4c0 kernel/events/core.c:7454
 [<00000000bc606afc>] __perf_sw_event+0x47/0x90 kernel/events/core.c:7466
 [<0000000003893e6b>] perf_sw_event include/linux/perf_event.h:1045 [inline]
 [<0000000003893e6b>] __do_page_fault+0x6cd/0xa60 arch/x86/mm/fault.c:1447
 [<00000000daba32da>] do_page_fault+0x28/0x30 arch/x86/mm/fault.c:1469
 [<00000000caabc158>] page_fault+0x25/0x30 arch/x86/entry/entry_64.S:951
 [<0000000051e5e008>] pipe_write+0x25a/0xe40 fs/pipe.c:447
 [<000000004d95adaf>] new_sync_write fs/read_write.c:498 [inline]
 [<000000004d95adaf>] __vfs_write+0x3c1/0x560 fs/read_write.c:511
 [<000000005d0f5efa>] vfs_write+0x185/0x520 fs/read_write.c:559
 [<0000000092980a6c>] SYSC_write fs/read_write.c:606 [inline]
 [<0000000092980a6c>] SyS_write+0xdc/0x1c0 fs/read_write.c:598
 [<0000000065c8804c>] do_syscall_64+0x1ad/0x570 arch/x86/entry/common.c:285
 [<000000009cbcc93d>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/10 13:52 https://android.googlesource.com/kernel/common android-4.9 286f971000f1 65b612b7 .config console log report syz C ci-android-49-kasan-gce-root
2019/04/04 23:51 https://android.googlesource.com/kernel/common android-4.9 90e40e0bf6cb e5d1b3ac .config console log report ci-android-49-kasan-gce-root
2019/03/31 02:52 https://android.googlesource.com/kernel/common android-4.9 86a136d920c7 0c624d4d .config console log report ci-android-49-kasan-gce-root
2019/03/27 20:12 https://android.googlesource.com/kernel/common android-4.9 e8bdeec66d86 4e668495 .config console log report ci-android-49-kasan-gce-root
2019/03/17 11:54 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba ba18afea .config console log report ci-android-49-kasan-gce-root
2019/03/17 11:21 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba ba18afea .config console log report ci-android-49-kasan-gce-root
2019/03/07 05:51 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba 18215b8d .config console log report ci-android-49-kasan-gce-root
2019/03/01 18:35 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba 68d9e495 .config console log report ci-android-49-kasan-gce-root
2019/02/27 18:20 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba 083cfd0e .config console log report ci-android-49-kasan-gce-root
2019/02/27 03:44 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba f2468c12 .config console log report ci-android-49-kasan-gce-root
2019/02/26 23:07 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba f2468c12 .config console log report ci-android-49-kasan-gce-root
2019/02/26 12:16 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba a36ecd98 .config console log report ci-android-49-kasan-gce-root
2019/02/21 15:03 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba 3133098b .config console log report ci-android-49-kasan-gce-root
2019/02/19 15:07 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba 4df543c9 .config console log report ci-android-49-kasan-gce-root
2019/02/15 16:20 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba f6f233c0 .config console log report ci-android-49-kasan-gce-root
2019/02/10 12:14 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba b4f792e4 .config console log report ci-android-49-kasan-gce-root
2019/02/08 00:06 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba aa4feb03 .config console log report ci-android-49-kasan-gce-root
2019/02/04 18:25 https://android.googlesource.com/kernel/common android-4.9 5aa04bc73fa2 d672172c .config console log report ci-android-49-kasan-gce-root
2019/02/02 07:10 https://android.googlesource.com/kernel/common android-4.9 f26c1b2bd6fc 564f9a4f .config console log report ci-android-49-kasan-gce-root
2019/01/26 02:52 https://android.googlesource.com/kernel/common android-4.9 046daa57dd62 ebf7a37c .config console log report ci-android-49-kasan-gce-root
2019/01/24 06:54 https://android.googlesource.com/kernel/common android-4.9 f74ba31bd8e8 56558f63 .config console log report ci-android-49-kasan-gce-root
2019/01/21 10:37 https://android.googlesource.com/kernel/common android-4.9 4b1d0d3e4e00 badbbeee .config console log report ci-android-49-kasan-gce-root
2019/01/15 22:21 https://android.googlesource.com/kernel/common android-4.9 91e954862a72 79cb1a7c .config console log report ci-android-49-kasan-gce-root
* Struck through repros no longer work on HEAD.