Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc97afd8 authored by Peter Collingbourne's avatar Peter Collingbourne
Browse files

Enable shadow call stack in system/bt.

Shadow call stack (SCS) is a security mitigation that uses a separate
stack (the SCS) for return addresses.

This change causes libbluetooth-binder.so and libbluetooth.so to be
built with SCS.

For the moment this is an internal-only change until the AOSP kernels
can be fixed to not clobber x18.

Bug: 112907825
Bug: 120630739
Change-Id: I0b9e948f26b4430dd04f44ffc94abf96d2a7ee8f
parent 561798c9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -77,6 +77,9 @@ cc_library_shared {
        "-Wextra",
        "-Wno-unused-parameter",
    ],
    sanitize: {
        scs: true,
    },
}

// AIDL interface between libbluetooth-binder and framework.jar
+3 −0
Original line number Diff line number Diff line
@@ -87,6 +87,9 @@ cc_library_shared {
    cflags: [
        "-DBUILDCFG",
    ],
    sanitize: {
        scs: true,
    },
}

cc_library_static {