Re: RFR: 8337536: AArch64: Enable BTI branch protection for runtime part [v3]

2024-09-04 Thread Fei Gao
On Tue, 3 Sep 2024 09:25:55 GMT, Andrew Haley wrote: > What is the effect on JNI? Is there full interworking with > non-branch-protected libraries? @theRealAph, thanks for your review! It should be no problem to have libjvm.so built with BTI and a JNI library built without BTI. BTI marks cod

Re: RFR: 8337536: AArch64: Enable BTI branch protection for runtime part [v3]

2024-09-03 Thread Andrew Haley
On Thu, 15 Aug 2024 15:32:28 GMT, Fei Gao wrote: >> This patch enables BTI branch protection for runtime part on Linux/aarch64 >> platform. >> >> Motivation >> >> 1. Since Fedora 33, glibc+kernel are PAC/BTI enabled by default. User-level >> packages can gain additional hardening by compiling

Re: RFR: 8337536: AArch64: Enable BTI branch protection for runtime part [v3]

2024-09-03 Thread Fei Gao
On Thu, 15 Aug 2024 15:32:28 GMT, Fei Gao wrote: >> This patch enables BTI branch protection for runtime part on Linux/aarch64 >> platform. >> >> Motivation >> >> 1. Since Fedora 33, glibc+kernel are PAC/BTI enabled by default. User-level >> packages can gain additional hardening by compiling

Re: RFR: 8337536: AArch64: Enable BTI branch protection for runtime part [v3]

2024-08-15 Thread Fei Gao
> This patch enables BTI branch protection for runtime part on Linux/aarch64 > platform. > > Motivation > > 1. Since Fedora 33, glibc+kernel are PAC/BTI enabled by default. User-level > packages can gain additional hardening by compiling with the GCC/Clang flag > `-mbranch-protection=flag`. Se