Re: [PATCH v1 1/2] Missing instruction_pointer_set() instances

From: Max Filippov
Date: Tue Aug 04 2020 - 17:31:52 EST


On Thu, Jul 30, 2020 at 7:59 PM Jin Yao <yao.jin@xxxxxxxxxxxxxxx> wrote:
>
> There is a potential security issue that perf kernel samples
> may be leaked even though kernel sampling is disabled. For fixing
> the potential leakage, the idea is to use instruction_pointer_set
> to set invalid ip address in leaked perf samples in some cases.
>
> But instruction_pointer_set is missing on some architectures.
> Define instruction_pointer_set for these architectures.
>
> Signed-off-by: Jin Yao <yao.jin@xxxxxxxxxxxxxxx>
> ---
> arch/alpha/include/asm/ptrace.h | 6 ++++++
> arch/arc/include/asm/ptrace.h | 6 ++++++
> arch/nds32/include/asm/ptrace.h | 7 +++++++
> arch/xtensa/include/asm/ptrace.h | 6 ++++++
> 4 files changed, 25 insertions(+)

For xtensa:
Acked-by: Max Filippov <jcmvbkbc@xxxxxxxxx>

--
Thanks.
-- Max