mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 0/2] compiler: fix clang and address sanitizer coexistance
Date: Wed,  3 Jan 2024 11:17:46 +0100	[thread overview]
Message-ID: <20240103101748.2629927-1-a.fatoum@pengutronix.de> (raw)

When built with clang + AddressSanitizer, global variables end up with
a redzone that can break linker list elements.

As clang isn't officially supported (yet), this can go into next.

Ahmad Fatoum (2):
  compiler: define __ll_elem for linker list elements
  treewide: mark linker list elements with  __ll_elem

 drivers/clk/clk.c              |  3 +-
 include/command.h              |  4 +--
 include/deep-probe.h           |  3 +-
 include/image-metadata.h       |  4 +--
 include/init.h                 | 60 +++++++++++++++++-----------------
 include/linux/clk.h            |  2 +-
 include/linux/compiler_types.h |  6 ++++
 include/linux/export.h         | 11 +++----
 include/linux/pci.h            |  4 +--
 include/magicvar.h             |  7 ++--
 include/ratp_bb.h              |  3 +-
 11 files changed, 57 insertions(+), 50 deletions(-)

-- 
2.39.2




             reply	other threads:[~2024-01-03 10:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-03 10:17 Ahmad Fatoum [this message]
2024-01-03 10:17 ` [PATCH 1/2] compiler: define __ll_elem for linker list elements Ahmad Fatoum
2024-01-03 10:17 ` [PATCH 2/2] treewide: mark linker list elements with __ll_elem Ahmad Fatoum
2024-01-04  9:10 ` [PATCH 0/2] compiler: fix clang and address sanitizer coexistance Sascha Hauer

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=20240103101748.2629927-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.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