Re: [PATCH] tools: bpf: Disable stack protector

From: Yonghong Song
Date: Tue Jan 17 2023 - 02:05:52 EST




On 1/16/23 2:49 PM, Peter Foley wrote:
On Mon, Jan 16, 2023 at 4:59 AM Eduard Zingerman <eddyz87@xxxxxxxxx> wrote:

A bit tangential, but since BPF LLVM backend does not support the
stack protector (should it?) there is also an option to adjust LLVM
to avoid this instrumentation, WDYT?


That would probably be worth doing, yes.
But given that won't help already released versions of clang, it
should probably happen in addition to this patch.

Peter,

If I understand correctly (by inspecting clang code), the stack protector is off by default. Do you have link to Gentoo build
page to show how they enable stack protector? cmake config or
a private patch?

Jose,

How gcc-bpf handle stack protector? The compiler just disables
stack protector for bpf target?