syzbot


BUG: soft lockup in __perf_sw_event

Status: auto-closed as invalid on 2021/04/27 17:47
Reported-by: syzbot+39fa2de4731f5366c85b@syzkaller.appspotmail.com
First crash: 777d, last: 764d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 BUG: soft lockup in __perf_sw_event (2) C 4 348d 558d 0/2 upstream: reported C repro on 2021/07/22 23:36
linux-4.19 INFO: rcu detected stall in __perf_sw_event (2) C error 124 57d 1108d 0/1 upstream: reported C repro on 2020/01/20 09:59
linux-4.14 BUG: soft lockup in __perf_sw_event C error 9 96d 637d 0/1 upstream: reported C repro on 2021/05/04 21:59

Sample crash report:
RBP: 000000000119bfd8 R08: 0000000000000000 R09: 0000000000000053
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c
R13: 00007ffd1b5e416f R14: 00007fe47570a9c0 R15: 000000000119bf8c
watchdog: BUG: soft lockup - CPU#1 stuck for 135s! [syz-executor.0:9966]
Modules linked in:
CPU: 1 PID: 9966 Comm: syz-executor.0 Not tainted 5.4.85-syzkaller-00225-gb69d75c07de5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__sanitizer_cov_trace_pc+0x35/0x50 kernel/kcov.c:193
Code: 01 00 65 8b 15 78 2e 9d 7e f7 c2 00 01 1f 00 75 2c 8b 91 f8 09 00 00 83 fa 02 75 21 48 8b 91 00 0a 00 00 48 8b 32 48 8d 7e 01 <8b> 89 fc 09 00 00 48 39 cf 73 08 48 89 44 f2 08 48 89 3a c3 0f 1f
RSP: 0018:ffff8881f28c6f78 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffffffff817ae632 RBX: 0000000000000af8 RCX: ffff8881c16c5d00
RDX: ffffc90000150000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffff8881f28c7110 R08: ffffffff817ae628 R09: ffffed103bea8ca3
R10: ffffed103bea8ca3 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000010 R14: ffff8881f28c73e8 R15: ffff8881f28c73d8
FS:  00007fe47570a700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000053 CR3: 00000001f01a7000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __output_copy kernel/events/internal.h:177 [inline]
 perf_output_read_group kernel/events/core.c:6347 [inline]
 perf_output_read+0x11a2/0x1480 kernel/events/core.c:6380
 perf_output_sample+0x354/0x1e20 kernel/events/core.c:6422
 __perf_event_output kernel/events/core.c:6749 [inline]
 perf_event_output_forward+0x140/0x1b0 kernel/events/core.c:6763
 __perf_event_overflow+0x1b9/0x340 kernel/events/core.c:8237
 do_perf_sw_event kernel/events/core.c:8454 [inline]
 ___perf_sw_event+0x3bc/0x4c0 kernel/events/core.c:8485
 __perf_sw_event+0x12e/0x220 kernel/events/core.c:8497
 page_fault+0x2f/0x40 arch/x86/entry/entry_64.S:1203
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:ffff8881f28c78c0 EFLAGS: 00010206
RAX: ffffffff82238901 RBX: 0000000020f8cfcb RCX: 0000000000007fcb
RDX: 0000000000008000 RSI: 0000000020f85000 RDI: ffff8881f2bc8035
RBP: ffff8881f2bc8000 R08: dffffc0000000000 R09: ffffed103e57a000
R10: 0000000000000000 R11: 0000000000000000 R12: 00007ffffffff000
R13: 0000000000008000 R14: 0000000020f84fcb R15: ffff8881f2bc8000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_from_user arch/x86/include/asm/uaccess_64.h:71 [inline]
 copyin+0x8e/0xb0 lib/iov_iter.c:151
 _copy_from_iter_full+0x194/0x860 lib/iov_iter.c:769
 copy_from_iter_full include/linux/uio.h:156 [inline]
 skb_do_copy_data_nocache+0x134/0x370 include/net/sock.h:2006
 skb_copy_to_page_nocache include/net/sock.h:2032 [inline]
 tcp_sendmsg_locked+0x18ee/0x3f20 net/ipv4/tcp.c:1347
 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1445
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg net/socket.c:658 [inline]
 __sys_sendto+0x4f6/0x6c0 net/socket.c:1953
 __do_sys_sendto net/socket.c:1965 [inline]
 __se_sys_sendto net/socket.c:1961 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:1961
 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45e299
Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fe475709c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 000000000045e299
RDX: ffffffffffffffef RSI: 0000000020d7cfcb RDI: 0000000000000004
RBP: 000000000119bfd8 R08: 0000000000000000 R09: 0000000000000053
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c
R13: 00007ffd1b5e416f R14: 00007fe47570a9c0 R15: 000000000119bf8c
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:60 [inline]
NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:103 [inline]
NMI backtrace for cpu 0 skipped: idling at default_idle+0x1f/0x30 arch/x86/kernel/process.c:572

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-android-5-4-kasan 2020/12/28 17:46 android12-5.4 b69d75c07de5 8259d56c .config console log report info
ci2-android-5-4-kasan 2020/12/15 19:44 android12-5.4 30fc30201c19 f213e07e .config console log report info
* Struck through repros no longer work on HEAD.