From: Daniel Thompson <daniel.thompson@linaro.org>
To: Doug Anderson <dianders@chromium.org>
Cc: Florian Rommel <mail@florommel.de>,
Jason Wessel <jason.wessel@windriver.com>,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
kgdb-bugreport@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kgdbts: fix hw_access_break_test
Date: Wed, 14 Aug 2024 16:38:43 +0100 [thread overview]
Message-ID: <20240814153843.GA168155@aspen.lan> (raw)
In-Reply-To: <CAD=FV=VC20PvOPSf9quqghA8SKKkCduadtU7nso4wkSwVKH3jQ@mail.gmail.com>
On Mon, Aug 12, 2024 at 01:04:22PM -0700, Doug Anderson wrote:
> Hi,
>
> On Mon, Aug 12, 2024 at 1:55 AM Florian Rommel <mail@florommel.de> wrote:
> >
> > The test for access watchpoints (hw_access_break_test) was broken
> > (always failed) because the compiler optimized out the write to the
> > static helper variable (hw_break_val2), as it is never read anywhere.
> > This resulted in the target variable (hw_break_val) not being accessed
> > and thus the breakpoint not being triggered.
> >
> > Remove the helper variable (hw_break_val2), and use READ_ONCE to force
> > reading the target variable (hw_break_val).
> >
> > Signed-off-by: Florian Rommel <mail@florommel.de>
> > ---
> > drivers/misc/kgdbts.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Reviewed-by: Douglas Anderson <dianders@chromium.org>
Looks good. I pushed this through kgdbtest and it likes it too. I can
turn one of the XFAILs off (yay).
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Tested-by: Daniel Thompson <daniel.thompson@linaro.org>
Arnd/Greg: Are you happy to pick this up or should I take it through the kgdb
tree? FWIW right now there are zero other patches for kgdb this cycle, although
that could change!
Daniel.
next prev parent reply other threads:[~2024-08-14 15:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-12 8:54 [PATCH] kgdbts: fix hw_access_break_test Florian Rommel
2024-08-12 20:04 ` Doug Anderson
2024-08-14 15:38 ` Daniel Thompson [this message]
2024-08-14 15:55 ` Greg Kroah-Hartman
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=20240814153843.GA168155@aspen.lan \
--to=daniel.thompson@linaro.org \
--cc=arnd@arndb.de \
--cc=dianders@chromium.org \
--cc=gregkh@linuxfoundation.org \
--cc=jason.wessel@windriver.com \
--cc=kgdb-bugreport@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mail@florommel.de \
/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