syzbot


general protection fault in perf_output_read

Status: upstream: reported C repro on 2020/10/14 09:13
Reported-by: syzbot+f8020e7926a3d6347903@syzkaller.appspotmail.com
First crash: 1499d, last: 641d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 general protection fault in perf_output_read C 162 1820d 2051d 0/3 public: reported C repro on 2019/04/11 08:44
android-414 general protection fault in perf_output_read 1 1997d 1997d 0/1 auto-closed as invalid on 2019/10/25 08:49
Fix bisection attempts (25)
Created Duration User Patch Repo Result
2023/02/19 02:27 34m bisect fix linux-4.14.y OK (0) job log log
2023/01/19 17:58 33m bisect fix linux-4.14.y OK (0) job log log
2022/10/26 16:01 42m bisect fix linux-4.14.y OK (0) job log log
2022/09/17 06:18 29m bisect fix linux-4.14.y OK (0) job log log
2022/08/18 04:37 31m bisect fix linux-4.14.y OK (0) job log log
2022/07/19 03:58 38m bisect fix linux-4.14.y OK (0) job log log
2022/06/19 03:25 32m bisect fix linux-4.14.y OK (0) job log log
2022/05/20 02:51 32m bisect fix linux-4.14.y OK (0) job log log
2022/04/20 02:07 28m bisect fix linux-4.14.y OK (0) job log log
2022/03/20 18:50 39m bisect fix linux-4.14.y OK (0) job log log
2022/02/18 12:46 38m bisect fix linux-4.14.y OK (0) job log log
2022/01/19 07:16 38m bisect fix linux-4.14.y OK (0) job log log
2021/12/20 06:36 40m bisect fix linux-4.14.y OK (0) job log log
2021/11/20 03:39 34m bisect fix linux-4.14.y OK (0) job log log
2021/10/21 02:03 30m bisect fix linux-4.14.y OK (0) job log log
2021/09/21 01:32 30m bisect fix linux-4.14.y OK (0) job log log
2021/08/22 01:01 31m bisect fix linux-4.14.y OK (0) job log log
2021/07/23 00:29 31m bisect fix linux-4.14.y OK (0) job log log
2021/06/22 17:27 30m bisect fix linux-4.14.y OK (0) job log log
2021/05/23 09:55 32m bisect fix linux-4.14.y OK (0) job log log
2021/04/23 07:20 37m bisect fix linux-4.14.y OK (0) job log log
2021/03/24 03:48 37m bisect fix linux-4.14.y OK (0) job log log
2021/02/22 02:54 37m bisect fix linux-4.14.y OK (0) job log log
2021/02/18 13:12 18m bisect fix linux-4.14.y error job log
2021/02/11 11:45 0m bisect fix linux-4.14.y error job log

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 9335 Comm: syz-executor129 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888094b2c580 task.stack: ffff8880956d0000
RIP: 0010:primary_event_id kernel/events/core.c:1318 [inline]
RIP: 0010:perf_output_read_group kernel/events/core.c:5893 [inline]
RIP: 0010:perf_output_read+0x659/0x1090 kernel/events/core.c:5928
RSP: 0018:ffff8880956d7290 EFLAGS: 00010203
RAX: 0000000020000091 RBX: 00000000ffffffff RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8880941b3d50 RDI: 000000010000048f
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed10128aa3b3
R10: ffff888094551d9f R11: 0000005a72d84bff R12: dffffc0000000000
R13: ffffed1012adaeaa R14: ffff8880956d7528 R15: ffff8880941b3d50
FS:  00007fc3a2587700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000800000001 CR3: 00000000976eb000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 perf_output_sample+0xa28/0x16f0 kernel/events/core.c:5970
 __perf_event_output kernel/events/core.c:6283 [inline]
 perf_event_output_forward+0xf8/0x1f0 kernel/events/core.c:6296
 __perf_event_overflow+0x113/0x310 kernel/events/core.c:7541
 perf_swevent_overflow kernel/events/core.c:7617 [inline]
 perf_swevent_event+0x299/0x460 kernel/events/core.c:7645
 do_perf_sw_event kernel/events/core.c:7758 [inline]
 ___perf_sw_event+0x2a1/0x480 kernel/events/core.c:7789
 __perf_sw_event+0x4f/0x100 kernel/events/core.c:7801
 perf_sw_event include/linux/perf_event.h:1046 [inline]
 __do_page_fault+0x6c1/0xb50 arch/x86/mm/fault.c:1483
 page_fault+0x25/0x50 arch/x86/entry/entry_64.S:1123
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x20 arch/x86/lib/copy_user_64.S:181
RSP: 0018:ffff8880956d7a78 EFLAGS: 00010206
RAX: ffffed1014fd8000 RBX: 0000000000008000 RCX: 0000000000004acb
RDX: 0000000000008000 RSI: 0000000020e39000 RDI: ffff8880a7ebb535
RBP: 0000000020e35acb R08: 0000000000000001 R09: ffffed1014fd7fff
R10: ffff8880a7ebffff R11: 0000000000000000 R12: ffff8880a7eb8000
R13: 00007ffffffff000 R14: 0000000020e3dacb R15: ffff8880a7eb8000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_from_user arch/x86/include/asm/uaccess_64.h:55 [inline]
 copyin+0x99/0xc0 lib/iov_iter.c:146
 _copy_from_iter_full+0x197/0x690 lib/iov_iter.c:608
 copy_from_iter_full include/linux/uio.h:126 [inline]
 skb_do_copy_data_nocache include/net/sock.h:1889 [inline]
 skb_copy_to_page_nocache include/net/sock.h:1915 [inline]
 tcp_sendmsg_locked+0x23fc/0x2ef0 net/ipv4/tcp.c:1360
 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1457
 inet_sendmsg+0x11a/0x4e0 net/ipv4/af_inet.c:762
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 SYSC_sendto net/socket.c:1763 [inline]
 SyS_sendto+0x1c7/0x2c0 net/socket.c:1731
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4498a9
RSP: 002b:00007fc3a2586da8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00000000006dec48 RCX: 00000000004498a9
RDX: ffffffffffffffef RSI: 0000000020d7cfcb RDI: 0000000000000004
RBP: 00000000006dec40 R08: 0000000000000000 R09: 0000000000000053
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dec4c
R13: 00007ffe3412617f R14: 00007fc3a25879c0 R15: 0000000000000064
Code: 00 0f 85 f8 09 00 00 48 8b 44 24 08 48 8b 98 b8 02 00 00 48 85 db 74 25 e8 b5 a7 f1 ff 48 8d bb 90 04 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 d3 09 00 00 48 8b ab 90 04 00 00 e8 90 a7 
RIP: primary_event_id kernel/events/core.c:1318 [inline] RSP: ffff8880956d7290
RIP: perf_output_read_group kernel/events/core.c:5893 [inline] RSP: ffff8880956d7290
RIP: perf_output_read+0x659/0x1090 kernel/events/core.c:5928 RSP: ffff8880956d7290
---[ end trace 3b21a5e10669da16 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/14 09:13 linux-4.14.y cbfa1702aaf6 fc7735a2 .config console log report syz C ci2-linux-4-14
* Struck through repros no longer work on HEAD.