syzbot


WARNING in perf_reg_value

Status: auto-obsoleted due to no activity on 2022/09/06 16:44
Reported-by: syzbot+10189b9b0f8c4664badd@syzkaller.appspotmail.com
First crash: 1264d, last: 1251d

Cause bisection: introduced by (bisect log) :
commit 878068ea270ea82767ff1d26c91583263c81fba0
Author: Kan Liang <kan.liang@linux.intel.com>
Date: Tue Apr 2 19:44:59 2019 +0000

  perf/x86: Support outputting XMM registers

Crash: WARNING in perf_reg_value (log)
Repro: C syz .config

Fix bisection: fixed by (bisect log) :
commit 311633b604063a8a5d3fbc74d0565b42df721f68
Author: Cong Wang <xiyou.wangcong@gmail.com>
Date: Wed Jul 10 06:24:54 2019 +0000

  hsr: switch ->dellink() to ->ndo_uninit()

Patch testing requests:
Created Duration User Patch Repo Result
2022/09/06 13:27 18m upstream OK log
2022/09/04 20:27 19m upstream OK log
2022/09/03 17:27 18m linux-next OK log

Sample crash report:
WARNING: CPU: 0 PID: 8334 at arch/x86/kernel/perf_regs.c:71 perf_reg_value+0xdb/0x110 arch/x86/kernel/perf_regs.c:75
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 8334 Comm: syz-executor968 Not tainted 5.2.0-rc4+ #33
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x2cb/0x744 kernel/panic.c:219
 __warn.cold+0x20/0x4d kernel/panic.c:576
 report_bug+0x263/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:986
RIP: 0010:perf_reg_value+0xdb/0x110 arch/x86/kernel/perf_regs.c:71
Code: a0 00 00 00 77 26 48 b8 00 00 00 00 00 fc ff df 48 01 fb 48 89 da 48 c1 ea 03 80 3c 02 00 75 34 48 8b 03 48 83 c4 08 5b 5d c3 <0f> 0b 48 83 c4 08 31 c0 5b 5d c3 89 75 f0 e8 02 d7 78 00 8b 75 f0
RSP: 0018:ffff8880a3c372b8 EFLAGS: 00010202
RAX: 00000000fffffff9 RBX: ffff8880a3c37a68 RCX: ffffffff81855ade
RDX: 0000000000000000 RSI: 0000000000000019 RDI: ffff8880a3c37a68
RBP: ffff8880a3c372c8 R08: ffff88808f07a6c0 R09: ffffed1012886902
R10: ffffed1012886901 R11: ffff88809443480f R12: ffff8880a3c37320
R13: ffff8880a3c37508 R14: ffff8880a3c37a68 R15: ffff8880a3c37700
 perf_output_sample_regs+0xca/0x160 kernel/events/core.c:5914
 perf_output_sample+0x15c2/0x1a90 kernel/events/core.c:6351
 __perf_event_output kernel/events/core.c:6571 [inline]
 perf_event_output_forward+0x150/0x290 kernel/events/core.c:6585
 __perf_event_overflow+0x141/0x370 kernel/events/core.c:8052
 perf_swevent_overflow+0xaa/0x140 kernel/events/core.c:8128
 perf_swevent_event+0x1f7/0x2f0 kernel/events/core.c:8161
 do_perf_sw_event kernel/events/core.c:8269 [inline]
 ___perf_sw_event+0x31c/0x570 kernel/events/core.c:8300
 __perf_sw_event+0x51/0xa0 kernel/events/core.c:8312
 perf_sw_event include/linux/perf_event.h:1083 [inline]
 do_user_addr_fault arch/x86/mm/fault.c:1498 [inline]
 __do_page_fault+0x747/0xda0 arch/x86/mm/fault.c:1523
 do_page_fault+0x71/0x57d arch/x86/mm/fault.c:1554
 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1156
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x20 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:ffff8880a3c37b10 EFLAGS: 00010206
RAX: 0000000000000000 RBX: 0000000000001000 RCX: 00000000000001c0
RDX: 0000000000001000 RSI: 0000000020001000 RDI: ffff88809644de40
RBP: ffff8880a3c37b48 R08: ffffed1012c89c00 R09: 0000000000000000
R10: ffffed1012c89bff R11: ffff88809644dfff R12: 00000000200001c0
R13: ffff88809644d000 R14: 00000000200011c0 R15: 00007ffffffff000
 copy_page_from_iter_iovec lib/iov_iter.c:295 [inline]
 copy_page_from_iter+0x3ad/0x7d0 lib/iov_iter.c:921
 pipe_write+0x281/0xf30 fs/pipe.c:454
 call_write_iter include/linux/fs.h:1872 [inline]
 new_sync_write+0x4d3/0x770 fs/read_write.c:483
 __vfs_write+0xe1/0x110 fs/read_write.c:496
 vfs_write+0x20c/0x580 fs/read_write.c:558
 ksys_write+0x14f/0x290 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x73/0xb0 fs/read_write.c:620
 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440529
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd4be42698 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440529
RDX: 000000010000026f RSI: 00000000200001c0 RDI: 0000000000000007
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401db0
R13: 0000000000401e40 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2019/06/16 07:37 upstream e01e060fe00d 442206d7 .config log report syz C
ci-upstream-kasan-gce-smack-root 2019/06/15 20:48 upstream 0011572c8830 442206d7 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2019/06/15 19:13 linux-next f4788d37bc84 442206d7 .config log report syz C
ci-upstream-kasan-gce 2019/06/28 12:19 upstream c84afab02c31 7509bf36 .config log report
ci-upstream-kasan-gce-root 2019/06/22 09:28 upstream abf02e2964b3 34bf9440 .config log report
ci-upstream-linux-next-kasan-gce-root 2019/06/15 18:40 linux-next f4788d37bc84 442206d7 .config log report
* Struck through repros no longer work on HEAD.