From: Yeoreum Yun <yeoreum.yun@arm.com>
To: Mark Brown <broonie@kernel.org>
Cc: catalin.marinas@arm.com, pcc@google.com, will@kernel.org,
anshuman.khandual@arm.com, joey.gouly@arm.com,
yury.khrustalev@arm.com, maz@kernel.org, oliver.upton@linux.dev,
frederic@kernel.org, shmeerali.kolothum.thodi@huawei.com,
akpm@linux-foundation.org, surenb@google.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH v5 4/6] kselftest/arm64/mte: preparation for mtefar test
Date: Tue, 10 Jun 2025 16:38:56 +0100 [thread overview]
Message-ID: <aEhRkDzankUBPQp2@e129823.arm.com> (raw)
In-Reply-To: <6b13e414-9377-4806-abd5-fdebda6c14f2@sirena.org.uk>
Hi Mark,
> > If FEAT_MTE_TAGGED_FAR (Armv8.9) is supported, bits 63:60 of the fault address
> > are preserved in response to synchronous tag check faults (SEGV_MTESERR).
> >
> > This patch is preparation for testing FEAT_MTE_TAGGED_FAR.
> > It shouldn't change the test result.
>
> I'm not clear from the above what the change is intended to do (ie, how
> does it prepare for testing FEAT_MTE_TAGGED_FAR). I think this could
> usefully be split out into multiple commits (eg, adding logging of the
> additional si_ fields separately, or splitting the renaming MT_CLEAR_TAG
> to MT_CLEAR_TAGS), it's kind of hard to review as is.
My bad. I'll split this one. Thanks
>
> > @@ -45,13 +64,18 @@ void mte_default_handler(int signum, siginfo_t *si, void *uc)
> > }
> > /* Compare the context for precise error */
> > else if (si->si_code == SEGV_MTESERR) {
> > + if ((!mtefar_support && si_atag) || (si_atag != MT_FETCH_ATAG(cur_mte_cxt.trig_addr))) {
> > + ksft_print_msg("Invalid MTE synchronous exception caught for address tag! si_tag=%x, si_atag: %x\n", si_tag, si_atag);
> > + exit(1);
> > + }
>
> We should really exit with a kselftest error rather than just a number,
> though I see this is just copying the existing style for the file so
> *shrug*.
Okay. I'll change this
--
Sincerely,
Yeoreum Yun
next prev parent reply other threads:[~2025-06-10 15:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 15:01 [PATCH v5 0/6] support FEAT_MTE_TAGGED_FAR feature Yeoreum Yun
2025-06-10 15:01 ` [PATCH v5 1/6] arm64/cpufeature: add " Yeoreum Yun
2025-06-10 15:01 ` [PATCH v5 2/6] arm64: report address tag when FEAT_MTE_TAGGED_FAR is supported Yeoreum Yun
2025-06-10 15:01 ` [PATCH v5 3/6] tools/kselftest: add MTE_FAR hwcap test Yeoreum Yun
2025-06-10 15:01 ` [PATCH v5 4/6] kselftest/arm64/mte: preparation for mtefar test Yeoreum Yun
2025-06-10 15:21 ` Mark Brown
2025-06-10 15:38 ` Yeoreum Yun [this message]
2025-06-10 15:01 ` [PATCH v5 5/6] kselftest/arm64/mte: refactor check_mmap_option test Yeoreum Yun
2025-06-10 15:38 ` Mark Brown
2025-06-11 9:34 ` Yeoreum Yun
2025-06-10 15:01 ` [PATCH v5 6/6] kselftest/arm64/mte: add mtefar test on check_mmap_option Yeoreum Yun
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=aEhRkDzankUBPQp2@e129823.arm.com \
--to=yeoreum.yun@arm.com \
--cc=akpm@linux-foundation.org \
--cc=anshuman.khandual@arm.com \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=frederic@kernel.org \
--cc=joey.gouly@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=oliver.upton@linux.dev \
--cc=pcc@google.com \
--cc=shmeerali.kolothum.thodi@huawei.com \
--cc=surenb@google.com \
--cc=will@kernel.org \
--cc=yury.khrustalev@arm.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
all inboxes | Powered by JetHome®