live-patching.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Miroslav Benes <mbenes@suse.cz>
To: "Jose E. Marchesi" <jose.marchesi@oracle.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
	jpoimboe@kernel.org, jikos@kernel.org, pmladek@suse.com,
	joe.lawrence@redhat.com, nstange@suse.de, mpdesouza@suse.de,
	broonie@kernel.org, live-patching@vger.kernel.org,
	Nick Desaulniers <ndesaulniers@google.com>,
	Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>,
	elena.zannoni@oracle.com, indu.bhagat@oracle.com
Subject: Re: Live Patching Microconference at Linux Plumbers
Date: Fri, 14 Apr 2023 16:14:53 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LSU.2.21.2304141611090.4426@pobox.suse.cz> (raw)
In-Reply-To: <87r0sm39pt.fsf@oracle.com>

> > I'm happy to talk about the kernel-side of arm64 live patching; it'd be good to
> > get in contact with anyone looking at the arm64 userspace side (e.g.
> > klp-convert).
> >
> > I have some topics which overlap between live-patching and general toolchain
> > bits and pieces, and I'm not sure if they'd be best suited here or in a
> > toolchain track, e.g.
> >
> > * How to avoid/minimize the need to reverse-engineer control flow for things
> >   like ORC generation.
> >
> >   On the arm64 side we're pretty averse to doing this to generate metadata for
> >   unwinding (and we might not need to), but there are things objtool does today
> >   that requires awareness of control-flow (e.g. forward-edge checks for noinstr
> >   safety).
> >
> >   Hopefully without a flamewar about DWARF...
> >
> > * Better compiler support for noinstr and similar properties.
> >
> >   For example, noinstr functions are currently all noinline, and we can't
> >   inline a noinstr function into a noinstr function, leading to a painful mix
> >   of noinstr and __always_inline. Having a mechanism to allow noinstr code to
> >   be inlined into other noinstr code would be nice.
> >
> >   Likewise, whether we could somehow get compile-time warnings about unintended
> >   calls from instrumentable code from noinstr code.
> >
> > * How is this going to work with rust?
> >
> >   It's not clear to me whether/how things like ftrace, RELIABLE_STACKTRACE, and
> >   live-patching are going to work with rust. We probably need to start looking
> >   soon.
> >
> > I've Cc'd Nick, Jose, and Miguel, in case they have thoughts.
> 
> We have indeed submitted a proposal for a Toolchains MC for Plumbers.

Great.
 
> I think the two first topics mentioned above (CFG in ELF and handling of
> noinstr functions) would definitely fit well in the Toolchains MC.

Yes.

> As for Rust... we have the Rust GCC support and that would fit in the MC
> as well.  We can surely invite some of the hackers working in the
> front-end.  But maybe it would be better to have that discussion in a
> Rust MC, if there is gonna be one (Miguel?).

I would definitely welcome a session which Mark proposed. Be it at Live 
Patching MC or Rust MC. I know next to nothing about how Rust is wired 
into the kernel and what impact it might have on us. The sooner we 
understand possible issues, the better.

> For starters, I would make sure that the involved MCs (Live Patching,
> Toolchains, and an eventual Rust MC) do not overlap in the schedule.
> Then we could have these discussions in either microconferences.

Agreed.

Miroslav

  parent reply	other threads:[~2023-04-14 14:15 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-29 12:05 Live Patching Microconference at Linux Plumbers Miroslav Benes
2023-03-29 16:28 ` Joe Lawrence
2023-04-14  9:11 ` Miroslav Benes
2023-04-14  9:53 ` Mark Rutland
2023-04-14 12:54   ` Jose E. Marchesi
2023-04-14 13:51     ` Miguel Ojeda
2023-04-14 14:34       ` Jose E. Marchesi
2023-04-14 14:14     ` Miroslav Benes [this message]
2023-04-14 17:12   ` Josh Poimboeuf
2023-04-14 19:04     ` Miguel Ojeda
2023-04-14 20:22       ` Arnaldo Carvalho de Melo
2023-04-14 20:29         ` Miguel Ojeda
2023-04-14 21:10       ` Josh Poimboeuf
2023-04-14 19:30     ` Peter Zijlstra
2023-04-15  4:39       ` Josh Poimboeuf
2023-04-17  7:48         ` Peter Zijlstra
2023-04-17  8:58     ` Mark Rutland
2023-04-18  3:53   ` James Morris
2023-05-03 20:05   ` Joe Lawrence
2023-05-03 20:33     ` Steven Rostedt
2023-05-22 18:41 ` Joe Lawrence

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LSU.2.21.2304141611090.4426@pobox.suse.cz \
    --to=mbenes@suse.cz \
    --cc=broonie@kernel.org \
    --cc=elena.zannoni@oracle.com \
    --cc=indu.bhagat@oracle.com \
    --cc=jikos@kernel.org \
    --cc=joe.lawrence@redhat.com \
    --cc=jose.marchesi@oracle.com \
    --cc=jpoimboe@kernel.org \
    --cc=live-patching@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=miguel.ojeda.sandonis@gmail.com \
    --cc=mpdesouza@suse.de \
    --cc=ndesaulniers@google.com \
    --cc=nstange@suse.de \
    --cc=pmladek@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).