public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* perf_event_detach_bpf_prog() broken?
@ 2024-10-22 11:16 Peter Zijlstra
  2024-10-22 14:03 ` Jiri Olsa
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Zijlstra @ 2024-10-22 11:16 UTC (permalink / raw)
  To: andrii, yhs, jolsa, linux-kernel; +Cc: daniel, sean

Hi guys,

Per commit 170a7e3ea070 ("bpf: bpf_prog_array_copy() should return
-ENOENT if exclude_prog not found") perf_event_detach_bpf_prog() can now
return without doing bpf_prog_put() and leaving event->prog set.

This is very 'unexpected' behaviour.

I'm not sure what's sane from the BPF side of things here, but leaving
event->prog set is really rather unexpected.

Help?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-23  8:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-22 11:16 perf_event_detach_bpf_prog() broken? Peter Zijlstra
2024-10-22 14:03 ` Jiri Olsa
2024-10-22 14:12   ` Sean Young
2024-10-22 21:08     ` Jiri Olsa
2024-10-22 17:33   ` Andrii Nakryiko
2024-10-23  8:19     ` Jiri Olsa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox