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

Max Filippov
2020-08-04T21:31:52Z

On Thu, Jul 30, 2020 at 7:59 PM Jin Yao <yao.jin@linux.intel.com> 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@linux.intel.com>
> ---
> 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@gmail.com>

--
Thanks.
-- Max