2020-03-31 09:25:53

by Gaurav Kohli

[permalink] [raw]
Subject: Query : Regarding csdb barrier with llvm compiler

<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.