Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 17 Apr 2020 16:19:37 -0700
From: Sami Tolvanen <>
To: Mark Rutland <>
Cc: Peter Zijlstra <>, Will Deacon <>,
	Catalin Marinas <>,
	James Morse <>,
	Steven Rostedt <>,
	Ard Biesheuvel <>,
	Masahiro Yamada <>,
	Michal Marek <>,
	Ingo Molnar <>, Juri Lelli <>,
	Vincent Guittot <>,
	Dave Martin <>,
	Kees Cook <>,
	Laura Abbott <>, Marc Zyngier <>,
	Masami Hiramatsu <>,
	Nick Desaulniers <>,
	Jann Horn <>,
	Miguel Ojeda <>,,,,
Subject: Re: [PATCH v11 04/12] scs: disable when function graph tracing is

On Fri, Apr 17, 2020 at 04:46:14PM +0100, Mark Rutland wrote:
> If KRETPROBES works by messing with the LR at the instnat the function
> is entered, that should work similarly. If it works by replacing the
> RET it should also work out since any pauth/SCS work will have been
> undone by that point. If it attempts to mess with the return address in
> the middle of a function then it's not reliable today.

I did initially have a patch to disable kretprobes (until v5), but as
Mark pointed out back then, the return address is modified before it
gets pushed to the shadow stack, so there was no conflict with SCS. I
confirmed this on arm64, but haven't looked at other architectures.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.