Messages in this thread | | | Date | Mon, 16 Jan 2023 23:05:15 -0800 | Subject | Re: [PATCH] tools: bpf: Disable stack protector | From | Yonghong Song <> |
| |
On 1/16/23 2:49 PM, Peter Foley wrote: > On Mon, Jan 16, 2023 at 4:59 AM Eduard Zingerman <eddyz87@gmail.com> 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?
| |