Page MenuHomeFreeBSD

sys/conf: Support building kasan with gcc on arm64
AcceptedPublic

Authored by andrew on May 22 2024, 2:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 2, 11:55 PM
Unknown Object (File)
Wed, Oct 2, 4:59 PM
Unknown Object (File)
Wed, Oct 2, 2:10 PM
Unknown Object (File)
Tue, Oct 1, 1:30 AM
Unknown Object (File)
Mon, Sep 30, 7:40 PM
Unknown Object (File)
Mon, Sep 30, 12:14 PM
Unknown Object (File)
Sat, Sep 28, 10:33 AM
Unknown Object (File)
Fri, Sep 27, 12:52 AM
Subscribers

Details

Reviewers
brooks
imp
jhb
Summary
  • Remove -mllvm flags that don't exist in gcc
  • Set the shadow offset with -fasan-shadow-offset

This allows the arm64 GENERIC-KASAN kernel to build with gcc13.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58065
Build 54953: arc lint + arc unit

Event Timeline

I wonder if we want a CFLAGS_GEN=${CFLAGS:N-flto*:N-fno-common:N-fsanitize*:N-fno-sanitize*:N-fasan-shadow-offset*} or maybe a CFLAGS_NOSAN in kern.pre.mk so we're not having to remove arguments in so many places?

This revision is now accepted and ready to land.Jun 5 2024, 4:51 PM