mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Question on perf event context swap at process switch
@ 2022-07-22 14:47 Ravi Bangoria
  0 siblings, 0 replies; only message in thread
From: Ravi Bangoria @ 2022-07-22 14:47 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: Arnaldo Carvalho de Melo, Ingo Molnar, Mark Rutland, Jiri Olsa,
	Namhyung Kim, Linux Kernel Mailing List

Hi Peter,

Consider two processes having clone contexts (for example, two children of
the same parent). While process switch between these two, the perf event
context would get swapped but event->hw.target will point to other sibling's
task_struct. If that process exit just after one context swap, _free_event()
will call put_task_context() on sibling process' task_struct. Wouldn't it
result into fatal error later?

Thanks,
Ravi

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-22 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-22 14:47 Question on perf event context swap at process switch Ravi Bangoria

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

all inboxes | Powered by JetHome®