Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4401879rwb; Mon, 16 Jan 2023 23:47:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXuqbzriCxCXVGV1HPW34U3LwLc5WcREBwb8R6DSzu8emKbHyJCBjvhuDPtfzGFOM4pHVYZY X-Received: by 2002:a05:6a00:328b:b0:577:1c59:a96c with SMTP id ck11-20020a056a00328b00b005771c59a96cmr2809847pfb.2.1673941678764; Mon, 16 Jan 2023 23:47:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673941678; cv=none; d=google.com; s=arc-20160816; b=wJxgjg8CUqTNTW6+qsJE1NKYzGkr9gwpuaeoSdpikJ4PRzJbOeyZtHfa+AQaX7JoPf xQjftNtn96E2vObV6Rn80oU4loNmwfKZf//6SY6oXuWm0HLGSvtkEWZagf5Km37UWrJN recGwFh41wUjo+lUxf8+/vvNGrIXgvzQb9OmuxTfZXRUxQ+5DfwW3gKVi627J+oqGPAS O39+fhZpbsjkXSG7XpaE8z7QVYejr0/O4f9HvhAzzk2Oo4esGbAj122uPqaDdH14QIiW LrqgG3BWzNaUUzNfo+5A9AzvjjFC/a6bCTbkggTmg9x22oHyMBwa13c58C9qHwU5dvKO H0Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=iw9KmqXhQAK464aHwakno69xYQNB+Zg+iX2cv1NWImM=; b=zOd/gmB3w71wh0GmT6SKkHGV08IAxP4nFdcyWJmTIydcI8qEiAsXFW/iwb2p/SnuKn 32lfTAEULSOMWvz5OKaogzenryffc6Cn4GN4w68oU6++ARdShXfVWK0KV+9u1gxGhZ+s dmj5b/d6dHDqIfdwJ34CssnI+mtHwTBZ+uEqXlOLTCEwtSvDfz+FfvLNKt620pPoAGYT U1IFbByxu1UTmxqqDUywRfgwdjKZGAupHzDuyk340Rja92paEIRwy5vBJ/VDVu+H+DN5 sj+u1clyUaD/oFfYnXTV73v9l9IMOjYXnbRzwdgclB/VG8SzGo8HuUTBE0AUyyZ2nldF JEaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pefoley.com header.s=google header.b="hGb6/Zwl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cp8-20020a056a00348800b0056771c032f4si29630504pfb.28.2023.01.16.23.47.53; Mon, 16 Jan 2023 23:47:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@pefoley.com header.s=google header.b="hGb6/Zwl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235838AbjAQHJP (ORCPT + 49 others); Tue, 17 Jan 2023 02:09:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235457AbjAQHJO (ORCPT ); Tue, 17 Jan 2023 02:09:14 -0500 Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F318E72B5 for ; Mon, 16 Jan 2023 23:09:12 -0800 (PST) Received: by mail-vs1-xe2b.google.com with SMTP id k4so31279552vsc.4 for ; Mon, 16 Jan 2023 23:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pefoley.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iw9KmqXhQAK464aHwakno69xYQNB+Zg+iX2cv1NWImM=; b=hGb6/ZwlYS4Z4sYL4sdBPzJBB1kEeESnRfHAzm9pTHGbUux8nTYlBo+Kqp2G23KdBS /WqjngEvKDZ+CUXpwC5QLqF7ChP2yqAMU/RjcxQCK+nm+/YAhCZYb3nJa+LzMDzF30Ui LLq5LkF50pnavsFQzNqzIv8Jl6SrbRqYhN7gQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iw9KmqXhQAK464aHwakno69xYQNB+Zg+iX2cv1NWImM=; b=rnG5IXH9R0+dkIVpnztevvLCSOqQGAZ8IyB1jd9D8YU2nODejpOCF/GgDwYXOrviJo IxgJynDE6Xic0qkiylYH9q0C1yKLyi+RTcy16kYunKxIfkmhH1pSP+C+odgaNv8J0eU+ WMCa1o6pY0uSsM4j/pNxhlhYogEHsptiZp4BJk3mtUZ5sh2ruUh6Z2XZDUngudQC4syK 6eNb+TkLhNDKW4U8Vd5AeD5UF1rYFZ3vaRcT236LFBheQo6qonO93fCMW1d888pqpCUP FDT3tm4zM1HJlKLYCXS/OfipirNbn8N1+BBcXaU+jch+WdSQyc2YOqI5tNcdyejRojdJ AGBQ== X-Gm-Message-State: AFqh2koE8m/lhPYZhE8bvCtr83s3HP0a9hnaTaAyc3Opk8YD1IBbcHEy yJzIzmcYrw4EKWtZPC4BLIhDsnOAzLmTOoWZTt4/OQ== X-Received: by 2002:a67:e9ca:0:b0:3d3:d06a:3229 with SMTP id q10-20020a67e9ca000000b003d3d06a3229mr213632vso.28.1673939351950; Mon, 16 Jan 2023 23:09:11 -0800 (PST) MIME-Version: 1.0 References: <20230114-bpf-v1-1-f836695a8b62@pefoley.com> <194f38f2dc7d521375e5a660baaf1be31536be9a.camel@gmail.com> <1135125e-6b8a-7b75-5f0b-3208f6b6e8ae@meta.com> In-Reply-To: <1135125e-6b8a-7b75-5f0b-3208f6b6e8ae@meta.com> From: Peter Foley Date: Mon, 16 Jan 2023 23:09:01 -0800 Message-ID: Subject: Re: [PATCH] tools: bpf: Disable stack protector To: Yonghong Song Cc: Eduard Zingerman , Quentin Monnet , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Nathan Chancellor , Nick Desaulniers , Tom Rix , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, "Jose E. Marchesi" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 16, 2023 at 11:05 PM Yonghong Song wrote: > > 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? > The relevant override appears to be https://github.com/gentoo/gentoo/blob/c5247250e9d4a09e67a602965a5f72be3cebbf34/sys-devel/clang-common/clang-common-15.0.7.ebuild#L93