syzbot


WARNING in __perf_install_in_context

Status: auto-closed as invalid on 2021/10/07 04:52
Reported-by: syzbot+0fb24f56fa707081e4f2@syzkaller.appspotmail.com
First crash: 605d, last: 545d

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4459 at kernel/events/core.c:2781 __perf_install_in_context+0x1c0/0x47c kernel/events/core.c:2781
Modules linked in:
CPU: 1 PID: 4459 Comm: syz-executor.1 Not tainted 5.12.0-rc8-syzkaller-00011-g18a3c5f7abfd #0
Hardware name: riscv-virtio,qemu (DT)
epc : __perf_install_in_context+0x1c0/0x47c kernel/events/core.c:2781
 ra : __perf_install_in_context+0x1c0/0x47c kernel/events/core.c:2781
epc : ffffffe00027d7ba ra : ffffffe00027d7ba sp : ffffffe0291cbaf0
 gp : ffffffe0045883c0 tp : ffffffe00acf97c0 t0 : ffffffc40117bf4c
 t1 : 0000000000000001 t2 : 0000000000000000 s0 : ffffffe0291cbb50
 s1 : ffffffe0255f0000 a0 : ffffffe066d79118 a1 : 00000000000f0000
 a2 : ffffffd012ceb000 a3 : ffffffe00027d7ba a4 : ffffffd012cf2118
 a5 : 0000000000000e23 a6 : 0000000000f00000 a7 : ffffffe00027d6ba
 s2 : ffffffe066d78f70 s3 : ffffffe0255f00a8 s4 : ffffffe0087f6000
 s5 : ffffffe00acf97c0 s6 : ffffffe066d78f78 s7 : ffffffe0087f7800
 s8 : ffffffe00acf97c0 s9 : ffffffe00458c0d0 s10: 0000000000000000
 s11: 0000000000000000 t3 : 33bf37897de07500 t4 : ffffffc405239797
 t5 : ffffffc405239799 t6 : ffffffe00c54a7d4
status: 0000000000000100 badaddr: 0000000000000000 cause: 0000000000000003
Call Trace:
[<ffffffe00027d7ba>] __perf_install_in_context+0x1c0/0x47c kernel/events/core.c:2781
[<ffffffe00026bcbc>] remote_function kernel/events/core.c:91 [inline]
[<ffffffe00026bcbc>] remote_function+0xa8/0xc0 kernel/events/core.c:71
[<ffffffe0001452b2>] generic_exec_single+0x1a6/0x212 kernel/smp.c:293
[<ffffffe000145452>] smp_call_function_single+0x134/0x2ba kernel/smp.c:513
[<ffffffe00026af46>] task_function_call+0x90/0xee kernel/events/core.c:119
[<ffffffe00027c5da>] perf_install_in_context+0x174/0x2e6 kernel/events/core.c:2902
[<ffffffe000288d1c>] __do_sys_perf_event_open+0x10ea/0x199e kernel/events/core.c:12169
[<ffffffe00028fa72>] sys_perf_event_open+0x34/0x46 kernel/events/core.c:11775
[<ffffffe000005578>] ret_from_syscall+0x0/0x2
irq event stamp: 554
hardirqs last  enabled at (553): [<ffffffe0003b3950>] mod_memcg_lruvec_state include/linux/memcontrol.h:979 [inline]
hardirqs last  enabled at (553): [<ffffffe0003b3950>] mod_objcg_state mm/slab.h:296 [inline]
hardirqs last  enabled at (553): [<ffffffe0003b3950>] memcg_slab_post_alloc_hook+0x2ea/0x46a mm/slab.h:327
hardirqs last disabled at (554): [<ffffffe0001452ae>] generic_exec_single+0x1a2/0x212 kernel/smp.c:292
softirqs last  enabled at (514): [<ffffffe0028987f6>] sctp_init_sock+0x610/0x774 net/sctp/socket.c:5001
softirqs last disabled at (512): [<ffffffe00289872a>] sctp_init_sock+0x544/0x774 net/sctp/socket.c:4981
---[ end trace 216b1a80e56e24f9 ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4459 at kernel/events/core.c:3210 ctx_sched_out+0x312/0x548 kernel/events/core.c:3210
Modules linked in:
CPU: 1 PID: 4459 Comm: syz-executor.1 Tainted: G        W         5.12.0-rc8-syzkaller-00011-g18a3c5f7abfd #0
Hardware name: riscv-virtio,qemu (DT)
epc : ctx_sched_out+0x312/0x548 kernel/events/core.c:3210
 ra : ctx_sched_out+0x312/0x548 kernel/events/core.c:3210
epc : ffffffe00027ca5e ra : ffffffe00027ca5e sp : ffffffe0291cba90
 gp : ffffffe0045883c0 tp : ffffffe00acf97c0 t0 : ffffffc40117bf4c
 t1 : 0000000000000001 t2 : 0000000000000000 s0 : ffffffe0291cbaf0
 s1 : ffffffe0087f6000 a0 : ffffffe066d79118 a1 : 00000000000f0000
 a2 : ffffffd012ceb000 a3 : ffffffe00027ca5e a4 : ffffffd012e438e0
 a5 : 000000000002b11c a6 : 0000000000f00000 a7 : ffffffe00027d6ba
 s2 : ffffffe066d78f70 s3 : 0000000000000004 s4 : 0000000000000000
 s5 : 0000000000000000 s6 : ffffffe0087f6140 s7 : 0000000000000000
 s8 : ffffffe00acf97c0 s9 : ffffffe00458c0d0 s10: 0000000000000000
 s11: 0000000000000000 t3 : 33bf37897de07500 t4 : ffffffc405239797
 t5 : ffffffc405239799 t6 : ffffffe00c54a7d4
status: 0000000000000100 badaddr: 0000000000000000 cause: 0000000000000003
Call Trace:
[<ffffffe00027ca5e>] ctx_sched_out+0x312/0x548 kernel/events/core.c:3210
[<ffffffe00027d7ee>] __perf_install_in_context+0x1f4/0x47c kernel/events/core.c:2799
[<ffffffe00026bcbc>] remote_function kernel/events/core.c:91 [inline]
[<ffffffe00026bcbc>] remote_function+0xa8/0xc0 kernel/events/core.c:71
[<ffffffe0001452b2>] generic_exec_single+0x1a6/0x212 kernel/smp.c:293
[<ffffffe000145452>] smp_call_function_single+0x134/0x2ba kernel/smp.c:513
[<ffffffe00026af46>] task_function_call+0x90/0xee kernel/events/core.c:119
[<ffffffe00027c5da>] perf_install_in_context+0x174/0x2e6 kernel/events/core.c:2902
[<ffffffe000288d1c>] __do_sys_perf_event_open+0x10ea/0x199e kernel/events/core.c:12169
[<ffffffe00028fa72>] sys_perf_event_open+0x34/0x46 kernel/events/core.c:11775
[<ffffffe000005578>] ret_from_syscall+0x0/0x2
irq event stamp: 554
hardirqs last  enabled at (553): [<ffffffe0003b3950>] mod_memcg_lruvec_state include/linux/memcontrol.h:979 [inline]
hardirqs last  enabled at (553): [<ffffffe0003b3950>] mod_objcg_state mm/slab.h:296 [inline]
hardirqs last  enabled at (553): [<ffffffe0003b3950>] memcg_slab_post_alloc_hook+0x2ea/0x46a mm/slab.h:327
hardirqs last disabled at (554): [<ffffffe0001452ae>] generic_exec_single+0x1a2/0x212 kernel/smp.c:292
softirqs last  enabled at (514): [<ffffffe0028987f6>] sctp_init_sock+0x610/0x774 net/sctp/socket.c:5001
softirqs last disabled at (512): [<ffffffe00289872a>] sctp_init_sock+0x544/0x774 net/sctp/socket.c:4981
---[ end trace 216b1a80e56e24fa ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4459 at kernel/events/core.c:2668 task_ctx_sched_out+0x5c/0x60 kernel/events/core.c:2668
Modules linked in:
CPU: 1 PID: 4459 Comm: syz-executor.1 Tainted: G        W         5.12.0-rc8-syzkaller-00011-g18a3c5f7abfd #0
Hardware name: riscv-virtio,qemu (DT)
epc : task_ctx_sched_out+0x5c/0x60 kernel/events/core.c:2668
 ra : task_ctx_sched_out+0x5c/0x60 kernel/events/core.c:2668
epc : ffffffe00027ccf0 ra : ffffffe00027ccf0 sp : ffffffe0291cba70
 gp : ffffffe0045883c0 tp : ffffffe00acf97c0 t0 : ffffffc40117bf4c
 t1 : 0000000000000001 t2 : 0000000000000000 s0 : ffffffe0291cbaa0
 s1 : ffffffe066d78f70 a0 : ffffffe066d79118 a1 : 00000000000f0000
 a2 : ffffffd012ceb000 a3 : ffffffe00027ccf0 a4 : 0000000000040000
 a5 : 0000000000040000 a6 : 0000000000f00000 a7 : ffffffe00027d6ba
 s2 : ffffffe0087f6000 s3 : 0000000000000001 s4 : ffffffe0087f7800
 s5 : ffffffe0050495a8 s6 : ffffffe0087f6000 s7 : ffffffe00423cdc8
 s8 : 0000000000000000 s9 : ffffffe00458c0d0 s10: 0000000000000000
 s11: 0000000000000000 t3 : 33bf37897de07500 t4 : ffffffc405239797
 t5 : ffffffc405239799 t6 : ffffffe00c54a7d4
status: 0000000000000100 badaddr: 0000000000000000 cause: 0000000000000003
Call Trace:
[<ffffffe00027ccf0>] task_ctx_sched_out+0x5c/0x60 kernel/events/core.c:2668
[<ffffffe00027cdca>] ctx_resched+0xd6/0x1ba kernel/events/core.c:2719
[<ffffffe00027d80e>] __perf_install_in_context+0x214/0x47c kernel/events/core.c:2801
[<ffffffe00026bcbc>] remote_function kernel/events/core.c:91 [inline]
[<ffffffe00026bcbc>] remote_function+0xa8/0xc0 kernel/events/core.c:71
[<ffffffe0001452b2>] generic_exec_single+0x1a6/0x212 kernel/smp.c:293
[<ffffffe000145452>] smp_call_function_single+0x134/0x2ba kernel/smp.c:513
[<ffffffe00026af46>] task_function_call+0x90/0xee kernel/events/core.c:119
[<ffffffe00027c5da>] perf_install_in_context+0x174/0x2e6 kernel/events/core.c:2902
[<ffffffe000288d1c>] __do_sys_perf_event_open+0x10ea/0x199e kernel/events/core.c:12169
[<ffffffe00028fa72>] sys_perf_event_open+0x34/0x46 kernel/events/core.c:11775
[<ffffffe000005578>] ret_from_syscall+0x0/0x2
irq event stamp: 554
hardirqs last  enabled at (553): [<ffffffe0003b3950>] mod_memcg_lruvec_state include/linux/memcontrol.h:979 [inline]
hardirqs last  enabled at (553): [<ffffffe0003b3950>] mod_objcg_state mm/slab.h:296 [inline]
hardirqs last  enabled at (553): [<ffffffe0003b3950>] memcg_slab_post_alloc_hook+0x2ea/0x46a mm/slab.h:327
hardirqs last disabled at (554): [<ffffffe0001452ae>] generic_exec_single+0x1a2/0x212 kernel/smp.c:292
softirqs last  enabled at (514): [<ffffffe0028987f6>] sctp_init_sock+0x610/0x774 net/sctp/socket.c:5001
softirqs last disabled at (512): [<ffffffe00289872a>] sctp_init_sock+0x544/0x774 net/sctp/socket.c:4981
---[ end trace 216b1a80e56e24fb ]---
netlink: 200 bytes leftover after parsing attributes in process `syz-executor.1'.

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu2-riscv64 2021/06/09 04:51 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 18a3c5f7abfd 5c2fe346 .config log report info WARNING in __perf_install_in_context
ci-qemu2-riscv64 2021/06/04 23:56 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 18a3c5f7abfd 500c2339 .config log report info WARNING in __perf_install_in_context
ci-qemu2-riscv64 2021/05/26 11:56 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 18a3c5f7abfd 54f0bcf1 .config log report info WARNING in __perf_install_in_context
ci-qemu2-riscv64 2021/05/15 11:05 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 18a3c5f7abfd 93f844de .config log report info WARNING in __perf_install_in_context
ci-qemu2-riscv64 2021/04/19 23:29 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 7ae11635ec90 4285c989 .config log report info WARNING in __perf_install_in_context
ci-qemu2-riscv64 2021/04/09 10:39 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config log report info WARNING in __perf_install_in_context
* Struck through repros no longer work on HEAD.