mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 0/9] barebox KASan support
Date: Fri, 18 Sep 2020 10:45:23 +0200	[thread overview]
Message-ID: <20200918084532.2794-1-s.hauer@pengutronix.de> (raw)

This series adds KASan support to barebox. We already have ASan support
for sandbox which uses libasan, this time we get KASan for use on real
hardware. The KASan support is based on the Kernel code and contains the
subset of features we need for barebox. KASan is currently supported on
ARM(32/64) only and requires a supported allocator. Currently only the
TLSF allocator is supported.

Sascha

Sascha Hauer (9):
  Add print_hex_dump kernel implementation
  Add _RET_IP_ macro
  Kallsyms: Also resolve global variables
  Add constructor support
  pbl: Alias memcpy and memset
  string: Add nokasan variants of default memcpy/memset
  sandbox: rename KASan to ASan
  Add KASan support
  ARM: Add KASan support

 Makefile                          |   6 +-
 arch/arm/Kconfig                  |   1 +
 arch/arm/cpu/Makefile             |   2 +
 arch/arm/cpu/common.c             |   2 +-
 arch/arm/cpu/setupc.S             |   6 +-
 arch/arm/cpu/start.c              |   7 +-
 arch/arm/include/asm/string.h     |   2 +
 arch/arm/lib32/barebox.lds.S      |   4 +-
 arch/arm/lib32/memcpy.S           |   3 +
 arch/arm/lib32/memset.S           |   4 +-
 arch/arm/lib64/string.c           |  26 ++-
 arch/sandbox/Kconfig              |   4 +-
 arch/sandbox/Makefile             |   2 +-
 arch/sandbox/os/Makefile          |   4 -
 arch/sandbox/os/common.c          |   2 +-
 common/Kconfig                    |  10 +-
 common/Makefile                   |   1 +
 common/kallsyms.c                 |   4 +-
 common/startup.c                  |  15 ++
 common/tlsf.c                     |  34 +++-
 include/asm-generic/barebox.lds.h |  12 ++
 include/asm-generic/sections.h    |   3 +
 include/linux/kasan.h             |  89 +++++++++
 include/linux/kernel.h            |   2 +
 include/printk.h                  |  20 +-
 include/string.h                  |   4 +
 lib/Kconfig                       |   5 +
 lib/Makefile                      |   1 +
 lib/hexdump.c                     | 212 +++++++++++++++++++-
 lib/kasan/Kconfig                 |  16 ++
 lib/kasan/Makefile                |  14 ++
 lib/kasan/common.c                | 108 ++++++++++
 lib/kasan/generic.c               | 315 ++++++++++++++++++++++++++++++
 lib/kasan/generic_report.c        | 150 ++++++++++++++
 lib/kasan/kasan.h                 | 164 ++++++++++++++++
 lib/kasan/report.c                | 199 +++++++++++++++++++
 lib/string.c                      |  28 ++-
 pbl/string.c                      |   7 +
 scripts/Makefile.kasan            |  17 ++
 scripts/Makefile.lib              |  10 +
 40 files changed, 1461 insertions(+), 54 deletions(-)
 create mode 100644 include/linux/kasan.h
 create mode 100644 lib/kasan/Kconfig
 create mode 100644 lib/kasan/Makefile
 create mode 100644 lib/kasan/common.c
 create mode 100644 lib/kasan/generic.c
 create mode 100644 lib/kasan/generic_report.c
 create mode 100644 lib/kasan/kasan.h
 create mode 100644 lib/kasan/report.c
 create mode 100644 scripts/Makefile.kasan

-- 
2.28.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2020-09-18  8:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-18  8:45 Sascha Hauer [this message]
2020-09-18  8:45 ` [PATCH 1/9] Add print_hex_dump kernel implementation Sascha Hauer
2020-09-18  8:45 ` [PATCH 2/9] Add _RET_IP_ macro Sascha Hauer
2020-09-18  8:45 ` [PATCH 3/9] Kallsyms: Also resolve global variables Sascha Hauer
2020-09-22 16:17   ` Michael Grzeschik
2020-09-28  8:30     ` Sascha Hauer
2020-09-18  8:45 ` [PATCH 4/9] Add constructor support Sascha Hauer
2020-09-18  8:45 ` [PATCH 5/9] pbl: Alias memcpy and memset Sascha Hauer
2020-09-18  8:45 ` [PATCH 6/9] string: Add nokasan variants of default memcpy/memset Sascha Hauer
2020-09-18  8:45 ` [PATCH 7/9] sandbox: rename KASan to ASan Sascha Hauer
2020-09-18  8:45 ` [PATCH 8/9] Add KASan support Sascha Hauer
2020-09-18 10:15   ` Ahmad Fatoum
2020-09-21  6:24     ` Sascha Hauer
2020-09-18  8:45 ` [PATCH 9/9] ARM: " Sascha Hauer
2021-02-09  9:25   ` Ahmad Fatoum
2021-02-10  9:26     ` Sascha Hauer
2021-02-10  9:27       ` Ahmad Fatoum
2020-09-28 14:33 ` [PATCH 0/9] barebox " Ahmad Fatoum
2020-09-28 15:06   ` 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=20200918084532.2794-1-s.hauer@pengutronix.de \
    --to=s.hauer@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