All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Rutland <mark.rutland@arm.com>
To: linux-arm-kernel@lists.infradead.org
Cc: catalin.marinas@arm.com, mark.rutland@arm.com, will@kernel.org
Subject: [PATCH 0/2] arm64: atomics: improvements
Date: Wed, 17 Aug 2022 16:59:12 +0100	[thread overview]
Message-ID: <20220817155914.3975112-1-mark.rutland@arm.com> (raw)

These two patches improve arm64's atomics:

* The first patch ensures that the LL/SC atomics can be correctly
  unwound when backtracing, avoiding issues similar to those seen with
  out-of-line uaccess fixups.

* The second patch ensures the LSE and LL/SC atomic implementations are
  never unintentially instrumented. This is necessary such that they can
  be safely used within noinstr code.

Aside from the improved robustness and ease of debug, there should be no
functional change as a result of this patch.

Thanks,
Mark.

Mark Rutland (2):
  arm64: atomics: remove LL/SC trampolines
  arm64: atomic: always inline the assembly

 arch/arm64/include/asm/atomic_ll_sc.h | 58 +++++++++------------------
 arch/arm64/include/asm/atomic_lse.h   | 46 +++++++++++++--------
 2 files changed, 47 insertions(+), 57 deletions(-)

-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2022-08-17 16:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-17 15:59 Mark Rutland [this message]
2022-08-17 15:59 ` [PATCH 1/2] arm64: atomics: remove LL/SC trampolines Mark Rutland
2022-08-17 15:59 ` [PATCH 2/2] arm64: atomic: always inline the assembly Mark Rutland
2022-09-09 18:07 ` [PATCH 0/2] arm64: atomics: improvements Catalin Marinas

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=20220817155914.3975112-1-mark.rutland@arm.com \
    --to=mark.rutland@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=will@kernel.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.