From 8e8ef9fe665cff26b608a5d05b2c712cb0a1a4b2 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 6 Jun 2022 17:28:00 +0000 Subject: [PATCH] Revert "Disable BTI for now." This reverts commit c75994d6235a023df6942fddeaa34b2a66f2e5f6. Reason for revert: BTI shipped in S, and we're going to work on app compat outreach rather than regress this security feature. Bug: https://issuetracker.google.com/216395195 Bug: https://issuetracker.google.com/233339366 Change-Id: Ic7143d756907ceb574a686258751840ce62c920f Merged-In: Ic7143d756907ceb574a686258751840ce62c920f --- cc/config/arm64_device.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cc/config/arm64_device.go b/cc/config/arm64_device.go index dfe143f95..66087e6f0 100644 --- a/cc/config/arm64_device.go +++ b/cc/config/arm64_device.go @@ -33,9 +33,7 @@ var ( }, "armv8-a-branchprot": []string{ "-march=armv8-a", - // Disable BTI until drm vendors stop using OS libraries as sources - // of gadgets (https://issuetracker.google.com/216395195). - "-mbranch-protection=pac-ret", + "-mbranch-protection=standard", }, "armv8-2a": []string{ "-march=armv8.2-a",