linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>,
	 Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Ingo Molnar <mingo@redhat.com>,
	 Arnaldo Carvalho de Melo <acme@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Jiri Olsa <jolsa@kernel.org>,  Miguel Ojeda <ojeda@kernel.org>,
	Liam Howlett <liam.howlett@oracle.com>,
	linux-kernel@vger.kernel.org,  linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v1] perf intel-pt: pkt-decoder: Fix alignment issues
Date: Tue, 10 Oct 2023 22:56:01 -0700	[thread overview]
Message-ID: <CAM9d7cjdb5WE-xdSdKD=p_EtsS7OSVEWL+GL3RVwczu-+1JvFQ@mail.gmail.com> (raw)
In-Reply-To: <CAP-5=fUo-vuLofC4jgHC9z=BTe80OEiY_PoQWqQtyVdvHcf+KQ@mail.gmail.com>

On Mon, Oct 9, 2023 at 8:31 AM Ian Rogers <irogers@google.com> wrote:
>
> On Sun, Oct 8, 2023 at 10:29 PM Namhyung Kim <namhyung@kernel.org> wrote:
> >
> > On Thu, Oct 5, 2023 at 2:24 PM Ian Rogers <irogers@google.com> wrote:
> > >
> > > On Thu, Oct 5, 2023 at 12:06 PM Adrian Hunter <adrian.hunter@intel.com> wrote:
> > > >
> > > > On 5/10/23 18:48, Ian Rogers wrote:
> > > > > On Mon, Oct 2, 2023 at 3:19 PM Ian Rogers <irogers@google.com> wrote:
> > > > >>
> > > > >> The byte aligned buffer is cast to large types and dereferenced
> > > > >> causing misaligned pointer warnings from undefined behavior sanitizer.
> > > > >> Fix the alignment issues with memcpy which may require the
> > > > >> introduction of temporaries.
> > > > >>
> > > > >> Signed-off-by: Ian Rogers <irogers@google.com>
> > > > >> ---
> > > > >
> > > > > This is a relatively small change that fixes building with
> > > > > -fsanitize=alignment -fsanitize-undefined-trap-on-error. Adrian, as
> > > > > this is Intel-PT could you take a look?
> > > >
> > > > Thanks! This has been down my list of things to do for ages,
> > > > but using get_unaligned_le16() etc seems nicer.  I sent a patch
> > > > set for that.
> > >
> > > Thanks Adrian! Your patch set looks good and I think after Arnaldo's
> > > comment is addressed we should go with it.
> >
> > I think it can be done as a later step as long as the interface is the
> > same.  Can I add your Ack's to the Adrian's patchset?
>
> I think addressing Arnaldo's comment:
> https://lore.kernel.org/lkml/ZR8QnasisGEsaaDR@kernel.org/
> will need some changes to the patch series, and so I was waiting to
> see the outcome of that.

It seems it's done without further changes.  Can I get your Ack's now?

Thanks,
Namhyung

  reply	other threads:[~2023-10-11  5:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-02 22:19 [PATCH v1] perf intel-pt: pkt-decoder: Fix alignment issues Ian Rogers
2023-10-05 15:48 ` Ian Rogers
2023-10-05 19:04   ` Adrian Hunter
2023-10-05 21:24     ` Ian Rogers
2023-10-09  5:29       ` Namhyung Kim
2023-10-09 15:31         ` Ian Rogers
2023-10-11  5:56           ` Namhyung Kim [this message]
2023-10-11  6:50             ` Ian Rogers
2023-10-12 12:27               ` Adrian Hunter
2023-10-13  4:23                 ` Namhyung Kim

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='CAM9d7cjdb5WE-xdSdKD=p_EtsS7OSVEWL+GL3RVwczu-+1JvFQ@mail.gmail.com' \
    --to=namhyung@kernel.org \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=irogers@google.com \
    --cc=jolsa@kernel.org \
    --cc=liam.howlett@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=ojeda@kernel.org \
    --cc=peterz@infradead.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 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).