From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i5PAS-0006gP-9P for barebox@lists.infradead.org; Wed, 04 Sep 2019 06:53:26 +0000 Date: Wed, 4 Sep 2019 08:53:21 +0200 From: Sascha Hauer Message-ID: <20190904065321.rowojfaibla3rimy@pengutronix.de> References: <20190827150918.16247-1-ahmad@a3f.at> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190827150918.16247-1-ahmad@a3f.at> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH v2 00/10] Add initial support for -fsanitize={ubsan,asan} To: Ahmad Fatoum Cc: barebox@lists.infradead.org On Tue, Aug 27, 2019 at 05:09:08PM +0200, Ahmad Fatoum wrote: > This series adds undefined behavior and address sanitizer support to > barebox. Both are fully functional on sandbox, where they are also used > to implement dump_stack() now. > > I haven't yet read about how Kernel AddressSanitizer works, so this one > only works on sandbox via libasan for now. > > The undefined behavior sanitizer depends on the compiler instrumenting > potential pitfalls and then calling the routines in lib/ubsan.c if it > catches something undefined, so that should readily work on other arches > as well. I tested it on sandbox and the i.MX6Q so far. > > Eventually, it should be possible to enable it for all the non-PBL stuff > with a single Kconfig option, but for now you need to explicitly add a > > UBSAN_SANITIZE_myfile.o := y > > in the respective Makefile. Enabling it wholesale doesn't yet work on > ARM, I suspect it might be due to binary size. > > Changes in v2: > v1 was incomplete and sent our more by mistake, > so no changelog. Applied, thanks Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 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