mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
	Barebox List <barebox@lists.infradead.org>
Subject: Re: [PATCH 0/9] barebox KASan support
Date: Mon, 28 Sep 2020 16:33:21 +0200	[thread overview]
Message-ID: <d2172e61-a0a7-f536-f755-032751164e0d@pengutronix.de> (raw)
In-Reply-To: <20200918084532.2794-1-s.hauer@pengutronix.de>

Hello Sascha,

On 9/18/20 10:45 AM, Sascha Hauer wrote:
> 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.

Should the md/mw/memcpy commands be exempt from KASAN checks?

> 
> 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
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

  parent reply	other threads:[~2020-09-28 14:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-18  8:45 Sascha Hauer
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 ` Ahmad Fatoum [this message]
2020-09-28 15:06   ` [PATCH 0/9] barebox " 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=d2172e61-a0a7-f536-f755-032751164e0d@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.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