All of lore.kernel.org
 help / color / mirror / Atom feed
From: Catalin Marinas <catalin.marinas@arm.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>
Subject: Re: arm64 uaccess series
Date: Tue, 9 Jul 2024 19:30:40 +0100	[thread overview]
Message-ID: <Zo2B0FYI-l0FT8v6@arm.com> (raw)
In-Reply-To: <CAHk-=wjaW=gZocPz_fp4nORgEoXvZgb+f1ad__5A+ozu088BRA@mail.gmail.com>

On Tue, Jul 09, 2024 at 10:12:34AM -0700, Linus Torvalds wrote:
> On Tue, 9 Jul 2024 at 09:52, Catalin Marinas <catalin.marinas@arm.com> wrote:
> > On Tue, Jul 09, 2024 at 09:01:58AM -0700, Linus Torvalds wrote:
> > > I've been running variations of this on my Altra machine for the last
> > > month or more, but admittedly my loads are trivial and uninteresting (ie
> > > mostly kernel builds).  So my test coevrage is not very wide.
> >
> > I can temporarily pull this branch and 'runtime-constants' into arm64
> > 'for-kernelci'. It's an unstable branch, it doesn't end up in -next.
> > It's just pointed at by various CI systems to get some wider testing. I
> > can even pull all four branches if you think it's useful.
> 
> Pulling all four branches is probably just as well. The only one that
> doesn't have any arm64 changes at all is the link_path_walk one, but
> looking at code generation of link_parh_walk (and strncpy_from_user())
> was why the three other branches exist, so they are related in that
> way ;)

Done, pushed the branch. It's usually picked up by CI systems in a day
or two.

> > We are still debating this. I don't think the ABI change is that bad
> > but, OTOH, user programs with MTE enabled (which would relax the
> > access_ok()) haven't been tested much. As a kind of precaution, we could
> > enforce the current behaviour via the sysctl abi.tagged_addr_disabled
> > and wire it up via a static key. Currently this sysctl only prevents
> > setting of the TIF_TAGGED_ADDR flag (and implicitly enforces stricter
> > checks in access_ok()).
> 
> I'd actually be interested to hear if anybody really notices. If the
> plan is to make a future sane ABI wrt this, wouldn't it be nice if it
> turns out nobody even cares about the odd legacy behavior and we can
> just leave it behind?
> 
> IOW, why go to extra pain if it turns out that there really are no
> reasons to do that?

It depends on how late we find out some weird application relying on the
current behaviour. The sysctl would have been a quick hack for a distro
to restore the old behaviour without patching the kernel. But I agree
that most likely it's just an unnecessary extra pain. We can try our
luck.

-- 
Catalin


      reply	other threads:[~2024-07-09 18:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-09 16:01 arm64 uaccess series Linus Torvalds
2024-07-09 16:01 ` [PATCH 1/3] arm64: start using 'asm goto' for get_user() when available Linus Torvalds
2024-07-17 16:22   ` GCC asm goto outputs workaround (Was: "Re: [PATCH 1/3] arm64: start using 'asm goto' for get_user() when") available Mark Rutland
2024-07-17 17:54     ` Linus Torvalds
2024-07-17 16:28   ` RESEND: " Mark Rutland
2024-07-17 18:29     ` Linus Torvalds
2024-07-09 16:02 ` [PATCH 2/3] arm64: start using 'asm goto' for put_user() Linus Torvalds
2024-07-09 16:02 ` [PATCH 3/3] arm64: access_ok() optimization Linus Torvalds
2024-07-09 16:52 ` arm64 uaccess series Catalin Marinas
2024-07-09 17:12   ` Linus Torvalds
2024-07-09 18:30     ` Catalin Marinas [this message]

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=Zo2B0FYI-l0FT8v6@arm.com \
    --to=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=torvalds@linux-foundation.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.