lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a47d0d23-8518-4146-b97a-bf18753bc483@linux.ibm.com>
Date: Mon, 28 Jul 2025 17:29:31 +0200
From: Jens Remus <jremus@...ux.ibm.com>
To: Steven Rostedt <rostedt@...nel.org>, linux-kernel@...r.kernel.org,
        linux-trace-kernel@...r.kernel.org, bpf@...r.kernel.org,
        x86@...nel.org
Cc: Masami Hiramatsu <mhiramat@...nel.org>,
        Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
        Josh Poimboeuf <jpoimboe@...nel.org>,
        Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...nel.org>,
        Jiri Olsa <jolsa@...nel.org>,
        Arnaldo Carvalho de Melo <acme@...nel.org>,
        Namhyung Kim <namhyung@...nel.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Andrii Nakryiko <andrii@...nel.org>,
        Indu Bhagat <indu.bhagat@...cle.com>,
        "Jose E. Marchesi" <jemarch@....org>,
        Beau Belgrave <beaub@...ux.microsoft.com>,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Jens Axboe <axboe@...nel.dk>, Florian Weimer <fweimer@...hat.com>,
        Sam James <sam@...too.org>
Subject: Re: [PATCH v15 02/10] unwind_user/deferred: Add
 unwind_user_faultable()

On 25.07.2025 20:55, Steven Rostedt wrote:
> From: Steven Rostedt <rostedt@...dmis.org>
> 
> Add a new API to retrieve a user space callstack called
> unwind_user_faultable(). The difference between this user space stack
> tracer from the current user space stack tracer is that this must be
> called from faultable context as it may use routines to access user space
> data that needs to be faulted in.
> 
> It can be safely called from entering or exiting a system call as the code
> can still be faulted in there.
> 
> This code is based on work by Josh Poimboeuf's deferred unwinding code:
> 
> Link: https://lore.kernel.org/all/6052e8487746603bdb29b65f4033e739092d9925.1737511963.git.jpoimboe@kernel.org/
> 
> Signed-off-by: Steven Rostedt (Google) <rostedt@...dmis.org>

Reviewed-by: Jens Remus <jremus@...ux.ibm.com>

> ---
>  include/linux/sched.h                 |  5 +++
>  include/linux/unwind_deferred.h       | 24 +++++++++++
>  include/linux/unwind_deferred_types.h |  9 ++++
>  kernel/fork.c                         |  4 ++
>  kernel/unwind/Makefile                |  2 +-
>  kernel/unwind/deferred.c              | 60 +++++++++++++++++++++++++++
>  6 files changed, 103 insertions(+), 1 deletion(-)
>  create mode 100644 include/linux/unwind_deferred.h
>  create mode 100644 include/linux/unwind_deferred_types.h
>  create mode 100644 kernel/unwind/deferred.c

Regards,
Jens
-- 
Jens Remus
Linux on Z Development (D3303)
+49-7031-16-1128 Office
jremus@...ibm.com

IBM

IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Böblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ