syzbot


INFO: rcu detected stall in __perf_sw_event

Status: upstream: reported syz repro on 2019/02/07 15:07
Reported-by: syzbot+a41ac89a0712acde0e84@syzkaller.appspotmail.com
First crash: 1441d, last: 507d

Cause bisection: introduced by (bisect log) :
commit cf85d89562f39cc7ae73de54639f1915a9195b7a
Author: Finn Thain <fthain@telegraphics.com.au>
Date: Fri May 25 07:34:36 2018 +0000

  m68k/mac: Enable PDMA for PowerBook 500 series

Crash: INFO: rcu detected stall in __perf_sw_event (log)
Repro: syz .config

Fix bisection: failed (bisect log)
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: rcu detected stall in __perf_sw_event 2 1109d 1175d 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 111 13d 980d 0/1 upstream: reported C repro on 2020/01/20 09:59
android-414 INFO: rcu detected stall in __perf_sw_event 13 1366d 1262d 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 12d 791d 0/1 upstream: reported C repro on 2020/07/27 06:04
android-49 INFO: rcu detected stall in __perf_sw_event C 23 1264d 1262d 0/3 public: reported C repro on 2019/04/13 00:00
android-54 BUG: soft lockup in __perf_sw_event (2) C 4 220d 430d 0/2 upstream: reported C repro on 2021/07/22 23:36
linux-4.14 BUG: soft lockup in __perf_sw_event C error 7 65d 509d 0/1 upstream: reported C repro on 2021/05/04 21:59
Patch testing requests:
Created Duration User Patch Repo Result
2022/09/22 11:29 17m upstream OK log
2022/09/22 08:29 17m upstream OK log

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (1 GPs behind) idle=4fe/1/0x4000000000000000 softirq=17251/17252 fqs=5231 
	(t=10500 jiffies g=31289 q=1421)
NMI backtrace for cpu 0
CPU: 0 PID: 10079 Comm: syz-executor.5 Not tainted 5.8.0-rc7-next-20200731-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x18f/0x20d lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1b3/0x223 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:165 [inline]
 rcu_dump_cpu_stacks+0x194/0x1cf kernel/rcu/tree_stall.h:318
 print_cpu_stall kernel/rcu/tree_stall.h:551 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:625 [inline]
 rcu_pending kernel/rcu/tree.c:3626 [inline]
 rcu_sched_clock_irq.cold+0x5b3/0xcbd kernel/rcu/tree.c:2509
 update_process_times+0x25/0xa0 kernel/time/timer.c:1710
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:176
 tick_sched_timer+0x1d1/0x2a0 kernel/time/tick-sched.c:1328
 __run_hrtimer kernel/time/hrtimer.c:1520 [inline]
 __hrtimer_run_queues+0x1d5/0xfc0 kernel/time/hrtimer.c:1584
 hrtimer_interrupt+0x32a/0x930 kernel/time/hrtimer.c:1646
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1079 [inline]
 __sysvec_apic_timer_interrupt+0x142/0x5e0 arch/x86/kernel/apic/apic.c:1096
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 sysvec_apic_timer_interrupt+0xb2/0xf0 arch/x86/kernel/apic/apic.c:1090
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
RIP: 0010:__output_copy kernel/events/internal.h:178 [inline]
RIP: 0010:perf_output_read_group kernel/events/core.c:6715 [inline]
RIP: 0010:perf_output_read+0xcff/0x1260 kernel/events/core.c:6748
Code: e5 ff 4c 89 a4 24 40 01 00 00 4c 8b 74 24 30 48 8b 6c 24 48 4c 8b 64 24 28 49 c1 ee 03 4b 8d 04 2e 48 89 04 24 e8 b1 d4 e5 ff <48> 8b 44 24 08 80 38 00 0f 85 50 02 00 00 48 8b 04 24 49 89 ef 48
RSP: 0018:ffffc900043d6f98 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffffc900043d72e0 RCX: ffffffff818e6ab0
RDX: ffff88809e458580 RSI: ffffffff818e6b5f RDI: ffff8880979312e0
RBP: 0000000000000010 R08: 0000000000000000 R09: ffff8880979310bf
R10: 0000000000000000 R11: 0000000000000001 R12: ffffc900043d70d0
R13: dffffc0000000000 R14: 1ffff9200087ae61 R15: ffff888097931000
 perf_output_sample+0x102c/0x1c60 kernel/events/core.c:6795
 __perf_event_output kernel/events/core.c:7176 [inline]
 perf_event_output_forward+0x12f/0x270 kernel/events/core.c:7190
 __perf_event_overflow+0x13c/0x370 kernel/events/core.c:8845
 perf_swevent_overflow kernel/events/core.c:8921 [inline]
 perf_swevent_event+0x347/0x550 kernel/events/core.c:8949
 do_perf_sw_event kernel/events/core.c:9062 [inline]
 ___perf_sw_event+0x304/0x550 kernel/events/core.c:9093
 __perf_sw_event+0x58/0x120 kernel/events/core.c:9105
 perf_sw_event include/linux/perf_event.h:1159 [inline]
 mm_account_fault mm/memory.c:4425 [inline]
 handle_mm_fault+0x1219/0x45e0 mm/memory.c:4476
 do_user_addr_fault+0x598/0xbf0 arch/x86/mm/fault.c:1294
 handle_page_fault arch/x86/mm/fault.c:1351 [inline]
 exc_page_fault+0xa8/0x160 arch/x86/mm/fault.c:1404
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:538
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x30 arch/x86/lib/copy_user_64.S:205
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 1f 00 c3 0f 1f 80 00 00 00 00 0f 1f 00 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 1f 00 c3 66 2e 0f 1f 84 00 00 00 00 00 89 d1 f3 a4
RSP: 0018:ffffc900043d79c0 EFLAGS: 00010206
RAX: 0000000000000001 RBX: 0000000000008000 RCX: 0000000000001fcb
RDX: 0000000000008000 RSI: 0000000020f0b000 RDI: ffff88807b2fe035
RBP: ffff88807b2f8000 R08: 0000000000000001 R09: ffff88807b2fffff
R10: ffffed100f65ffff R11: 0000000000000000 R12: 0000000020f04fcb
R13: 0000000020f0cfcb R14: 00007ffffffff000 R15: 0000000000000000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_from_user arch/x86/include/asm/uaccess_64.h:68 [inline]
 copyin+0x107/0x140 lib/iov_iter.c:153
 _copy_from_iter_full+0x1ff/0x890 lib/iov_iter.c:791
 copy_from_iter_full include/linux/uio.h:155 [inline]
 skb_do_copy_data_nocache+0x145/0x2c0 include/net/sock.h:2038
 skb_copy_to_page_nocache include/net/sock.h:2064 [inline]
 tcp_sendmsg_locked+0x112c/0x2d00 net/ipv4/tcp.c:1343
 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1441
 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:817
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:671
 __sys_sendto+0x21c/0x320 net/socket.c:1994
 __do_sys_sendto net/socket.c:2006 [inline]
 __se_sys_sendto net/socket.c:2002 [inline]
 __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2002
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45cc79
Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fac7391fc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 000000000002c340 RCX: 000000000045cc79
RDX: ffffffffffffffef RSI: 0000000020d7cfcb RDI: 0000000000000006
RBP: 000000000078bf58 R08: 0000000000000000 R09: 0000000000000053
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c
R13: 00007ffe1b30b14f R14: 00007fac739209c0 R15: 000000000078bf0c

Crashes (99):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2020/08/02 06:00 linux-next 01830e6c042e d895b3be .config log report syz
ci-upstream-kasan-gce-smack-root 2019/04/10 13:28 upstream 0ee7fb36f988 65b612b7 .config log report syz
ci-upstream-kasan-gce-smack-root 2019/02/07 15:03 upstream b0314565da2b aa4feb03 .config log report syz
ci-upstream-kasan-gce-selinux-root 2021/05/06 13:58 upstream d2b6f8a17919 06c27ff5 .config log report info INFO: rcu detected stall in __perf_sw_event
ci-upstream-kasan-gce-selinux-root 2021/04/29 19:32 upstream d2b6f8a17919 77e2b668 .config log report info INFO: rcu detected stall in __perf_sw_event
ci-upstream-kasan-gce-smack-root 2021/04/22 09:16 upstream 16fc44d6387e 33c28d03 .config log report info INFO: rcu detected stall in __perf_sw_event
ci-upstream-kasan-gce-selinux-root 2021/04/10 11:43 upstream d4961772226d bfeda1b1 .config log report info INFO: rcu detected stall in __perf_sw_event
ci-upstream-kasan-gce-selinux-root 2021/03/22 12:45 upstream 0d02ec6b3136 bea32f74 .config log report info INFO: rcu detected stall in __perf_sw_event
ci-upstream-kasan-gce-selinux-root 2021/03/07 19:24 upstream a38fd8748464 75506d9c .config log report info INFO: rcu detected stall in __perf_sw_event
ci-upstream-kasan-gce-selinux-root 2021/02/24 05:35 upstream c03c21ba6f4e fcc6d71b .config log report info INFO: rcu detected stall in __perf_sw_event
ci-upstream-linux-next-kasan-gce-root 2021/02/09 19:19 linux-next aa2b88209686 2bd9619f .config log report info INFO: rcu detected stall in __perf_sw_event
ci-upstream-linux-next-kasan-gce-root 2021/02/03 23:14 linux-next 58b6c0e507b7 624dad51 .config log report info INFO: rcu detected stall in __perf_sw_event
ci-upstream-linux-next-kasan-gce-root 2021/01/18 02:23 linux-next b3a3cbdec55b fd103621 .config log report info INFO: rcu detected stall in __perf_sw_event
ci-upstream-kasan-gce-selinux-root 2021/01/09 10:59 upstream 996e435fd401 a6c52263 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/12/16 23:18 upstream 5e60366d56c6 04201c06 .config log report info
ci-upstream-kasan-gce-smack-root 2020/12/01 21:40 upstream b65054597872 07bfe8a5 .config log report info
ci-upstream-kasan-gce-root 2020/10/28 18:26 upstream ed8780e3f2ec f24824d3 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/10/26 11:10 upstream 3650b228f83a a7aac492 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/10/25 21:53 upstream 672f88712615 a1839e81 .config log report info
ci-upstream-kasan-gce-root 2020/10/23 21:41 upstream 0adc313c4f20 2bb6666c .config log report info
ci-upstream-kasan-gce-selinux-root 2020/10/14 08:04 upstream 029f56db6ac2 fc7735a2 .config log report info
ci-upstream-kasan-gce-root 2020/10/12 14:04 upstream bbf5c979011a 4a77ae0b .config log report info
ci-upstream-kasan-gce-root 2020/10/06 04:34 upstream 7575fdda569b 1880b4a9 .config log report info
ci-upstream-kasan-gce-root 2020/10/05 18:54 upstream 549738f15da0 1880b4a9 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/30 13:27 upstream 02de58b24d2e 8516f6d3 .config log report info
ci-upstream-kasan-gce-root 2020/09/24 15:29 upstream c9c9e6a49f89 54289b08 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/08/22 21:30 upstream c3d8f220d012 1da71ab0 .config log report
ci-upstream-kasan-gce-selinux-root 2020/08/22 17:13 upstream f873db9acd3c 6436ce4b .config log report
ci-upstream-kasan-gce-smack-root 2020/08/17 16:51 upstream 2cc3c4b3c2e9 424dd8e7 .config log report
ci-upstream-kasan-gce-selinux-root 2020/08/15 23:14 upstream c9c9735c46f5 424dd8e7 .config log report
ci-upstream-kasan-gce-selinux-root 2020/06/14 01:02 upstream 7ae77150d94d dbce178a .config log report
ci-upstream-kasan-gce-root 2020/05/18 02:09 upstream b9bbe6ed63b2 37bccd4e .config log report
ci-upstream-kasan-gce-root 2020/04/28 14:02 upstream 51184ae37e05 e3ecea2e .config log report
ci-upstream-kasan-gce-selinux-root 2020/04/09 18:19 upstream 5d30bcacd91a a8c6a3f8 .config log report
ci-upstream-kasan-gce-root 2020/03/11 23:46 upstream f35111a94654 e7caca8e .config log report
ci-upstream-kasan-gce-root 2020/03/09 19:29 upstream 2c523b344dfa 35f53e45 .config log report
ci-upstream-kasan-gce-root 2020/02/25 11:36 upstream f8788d86ab28 59b57593 .config log report
ci-upstream-kasan-gce-root 2020/02/19 05:11 upstream 0a44cac81050 135c18aa .config log report
ci-upstream-kasan-gce-selinux-root 2020/02/16 11:19 upstream db70e26e33ee cf914200 .config log report
ci-upstream-kasan-gce-selinux-root 2020/02/13 13:20 upstream f2850dd5ee01 84f4fc8a .config log report
ci-upstream-kasan-gce-root 2020/01/31 14:48 upstream ccaaaf6fe5a5 5ed23f9a .config log report
ci-upstream-kasan-gce-root 2020/01/15 16:54 upstream 95e20af9fb9c 069a5a44 .config log report
ci-upstream-kasan-gce-selinux-root 2018/10/16 00:35 upstream f0a7d1883d9f 8cd30605 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/12/29 19:21 linux-next d7a03a44a5e9 80910769 .config log report info
ci-upstream-linux-next-kasan-gce-root 2020/12/12 15:38 linux-next 14240d4c5b25 bca53db9 .config log report info
ci-upstream-linux-next-kasan-gce-root 2020/10/19 09:33 linux-next b2926c108f9f ff4a3345 .config log report info
ci-upstream-linux-next-kasan-gce-root 2020/10/02 03:57 linux-next d39294091fee 9602ddf4 .config log report info
ci-upstream-linux-next-kasan-gce-root 2020/08/27 00:24 linux-next f37be72473a0 318430cb .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/24 13:19 linux-next d8be0e12a522 67b599d1 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/21 05:56 linux-next 494d311a82bb 1d75fe45 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/19 20:33 linux-next 8eb858df0a5f 94b45706 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/10 10:15 linux-next f80535b9aa10 70301872 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/07/18 23:20 linux-next 4c43049f19a2 9c812472 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/05/20 00:37 linux-next ac935d227366 67fa1f59 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/05/19 12:12 linux-next ac935d227366 6d882fd2 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/22 17:03 linux-next 770fbb32d34e 78267cec .config log report
ci-upstream-linux-next-kasan-gce-root 2020/02/24 18:14 linux-next bdc5461b23ca 59b57593 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/02/12 13:34 linux-next 129759899765 a75b198c .config log report
* Struck through repros no longer work on HEAD.