Query : Regarding csdb barrier with llvm compiler

From: Gaurav Kohli
Date: Tue Mar 31 2020 - 05:25:26 EST


<Resending again, saw some failure messages on previous mail>

Hi ,

Right now we are using array_index_nospec api in linux kernel and using in the place where we think speculative out of bound access may happen.

This thing is applicable with GCC tool chain, as for GCC we have to use builtin api to place csdb in the required places.

Recently llvm toolchain comes with hardening option which will place csdb in the required places, Do we have any plan to use this thing in linux kernel.

Regards
Gaurav

--
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center,
Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project.