On 12/12/19 4:19 PM, Matthew Malcomson wrote:
+-param=hwasan-stack= +Common Joined UInteger Var(param_hwasan_stack) Init(1) IntegerRange(0, 1) Param +Enable hwasan stack protection. + +-param=hwasan-random-frame-tag= +Common Joined UInteger Var(param_hwasan_random_frame_tag) Init(1) IntegerRange(0, 1) Param +Use random base tag for each frame, as opposed to base always zero. + +-param=hwasan-instrument-allocas= +Common Joined UInteger Var(param_hwasan_protect_allocas) Init(1) IntegerRange(0, 1) Param +Enable hwasan allocas/VLAs protection. + +-param=hwasan-instrument-reads= +Common Joined UInteger Var(param_hwasan_instrument_reads) Init(1) IntegerRange(0, 1) Param +Enable hwasan load operations protection. + +-param=hwasan-instrument-writes= +Common Joined UInteger Var(param_hwasan_instrument_writes) Init(1) IntegerRange(0, 1) Param +Enable hwasan store operations protection. + +-param=hwasan-memintrin= +Common Joined UInteger Var(param_hwasan_memintrin) Init(1) IntegerRange(0, 1) Param +Enable hwasan builtin functions protection.
Similarly to majority of ASAN parameters, all these should have Optimization keyword. That means one can have different parameter values for each function (one can do that with LTO right now). Martin