public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Olsa <olsajiri@gmail.com>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: bpf <bpf@vger.kernel.org>,
	Network Development <netdev@vger.kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Andrii Nakryiko <andrii@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>,
	Steven Rostedt <rostedt@goodmis.org>,
	Arnaldo Carvalho de Melo <acme@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>
Subject: Re: [bug] splat in perf event
Date: Wed, 20 Dec 2023 09:34:50 +0100	[thread overview]
Message-ID: <ZYKnKry7zjxy6jFd@krava> (raw)
In-Reply-To: <CAADnVQ+vEstw90A-Urt-SgrdNNhuXO_VmWuojOJ=3zKReFWY2g@mail.gmail.com>

On Tue, Dec 19, 2023 at 05:34:13PM -0800, Alexei Starovoitov wrote:
> Hi,
> 
> after rebasing bpf-next to the latest net-next.
> I consistently see the following while running
> test_progs -t attach_probe/manual-default
> 
> [   28.638654] WARNING: CPU: 1 PID: 2135 at kernel/events/core.c:1950
> __do_sys_perf_event_open+0x14e0/0x15b0
> [   28.639329] Modules linked in: bpf_testmod(O)
> [   28.639632] CPU: 1 PID: 2135 Comm: test_progs Tainted: G
> O       6.7.0-rc5-01520-gc337f237291b #5281
> [   28.640299] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
> BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014
> [   28.641062] RIP: 0010:__do_sys_perf_event_open+0x14e0/0x15b0
> [   28.647751] Call Trace:
> [   28.647919]  <TASK>
> [   28.648082]  ? __warn+0xa1/0x1f0
> [   28.648311]  ? __do_sys_perf_event_open+0x14e0/0x15b0
> [   28.648641]  ? report_bug+0x1fa/0x230
> [   28.648902]  ? handle_bug+0x3c/0x70
> [   28.649164]  ? exc_invalid_op+0x17/0x40
> [   28.649416]  ? asm_exc_invalid_op+0x1a/0x20
> [   28.649699]  ? entry_SYSCALL_64_after_hwframe+0x46/0x4e
> [   28.650062]  ? __do_sys_perf_event_open+0x14e0/0x15b0
> [   28.650406]  ? perf_event_set_output+0x2a0/0x2a0
> [   28.650727]  ? __audit_syscall_entry+0x4f/0x200
> [   28.651063]  do_syscall_64+0x2f/0xa0
> [   28.651306]  entry_SYSCALL_64_after_hwframe+0x46/0x4e
> [   28.651635] RIP: 0033:0x7fc0846f752d
> [   28.656060]  </TASK>
> [   28.656219] irq event stamp: 413681
> [   28.656461] hardirqs last  enabled at (413689):
> [<ffffffff81193e67>] console_unlock+0x137/0x140
> [   28.657083] hardirqs last disabled at (413698):
> [<ffffffff81193e4c>] console_unlock+0x11c/0x140
> [   28.657663] softirqs last  enabled at (413368):
> [<ffffffff810c0e89>] irq_exit_rcu+0x99/0xf0
> [   28.658215] softirqs last disabled at (413351):
> [<ffffffff810c0e89>] irq_exit_rcu+0x99/0xf0
> 
> Line 1950 is
>         for_each_sibling_event(sibling, group_leader) {
>                 if (__perf_event_read_size(sibling->attr.read_format,
>                                            group_leader->nr_siblings +
> 1) > 16*1024)
>                         return false;
>         }
> 
> 
> Probably a known issue?

yes, https://lore.kernel.org/linux-perf-users/20231214000620.3081018-1-lucas.demarchi@intel.com/

looks like there'll be patch out soon

jirka

      reply	other threads:[~2023-12-20  8:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-20  1:34 [bug] splat in perf event Alexei Starovoitov
2023-12-20  8:34 ` Jiri Olsa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZYKnKry7zjxy6jFd@krava \
    --to=olsajiri@gmail.com \
    --cc=acme@kernel.org \
    --cc=alexei.starovoitov@gmail.com \
    --cc=andrii@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=kuba@kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=netdev@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox