Re: [PATCH v2] perf/x86: Check data address for IBS software filter
From: Ingo Molnar
Date: Wed Mar 19 2025 - 18:19:06 EST
* Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
> > We have two options:
> > 1) Restrict IBS + PERF_SAMPLE_RAW to privilege users.
> > 2) Remove all sensitive information from raw register dump before
> > passing it to userspace. (Kernel data addresses and all physical
> > addresses are the only sensitive info I suppose?).
> >
> > 2 is better IMO since it will allow unprivileged user to use IBS
> > with full potential. wdyt?
>
> I'm slightly inclined to #1 for simplicity and safety, but #2 is fine
> to me as well.
I'd prefer #2 for superior usability, if it doesn't get too
complicated.
Thanks,
Ingo