Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3919437rwb; Mon, 16 Jan 2023 15:14:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXsi9e0UVp0rzIDTBZp9H0ZfTpB3JmPXFP52PQqcR6kkgZRDh8K4/v4NeYFJ6gOD1KdLobVE X-Received: by 2002:a17:907:8999:b0:7ad:b286:2184 with SMTP id rr25-20020a170907899900b007adb2862184mr664292ejc.71.1673910866668; Mon, 16 Jan 2023 15:14:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673910866; cv=none; d=google.com; s=arc-20160816; b=RlvdL1EBA/1vHKm8J0elr9j3AkM2Ujvu0BUvjfjLDtob+ymhPfx7EdG9pWhEGSAgmY Yto+M14u5TXwFk7jBcO1vujN0wsDMiS7wR71Rie1w46WaK2R3Y81wN9h6Mrn0qFyhwgq jX4Y9cdEqU7mghkg0JQproiMyfaOOfvR9h0G/aZ/czjxiSAU71fiRn5grfAbV4h2OQsk JqrX6QnKfH7T7nfJjiGsZMWKzP0oyl9ab/r9NCGhtsYFIdcoM9KGDFYULkoTXNt66ol+ LB8uscae+b3rG3o0sscbsqxflMOvlctpR2IusFd88mFMZvb2cI1bCGpW6qrtXxrCQ8Hv dKjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=USWxWFA5v5RQ4g1w5jR/fk1KNbzmnZEodvDSAMOXB6k=; b=QyOzUDs5qgr1KCwbHAKorOeQ5FgIGtPuPIkXQ0txRqzfViOW3vEXcT+fEvbfqqWgWL 0ZL9V24/xnpwJRjPORtDg7iUL0ozq8S57RJkV22xsG0I7dDFa6dtPFlal5xOW8L5nD26 6HewHBLymcs/QmRM3MrXEh55uG6CriQRbwLbqbJsuaSmhJYRAcikW6UCNAs1Y3MUaPZR YetMvgW89JPs/3DrmK4spymXtr0vrhekovSUoprYBjkr9tTkc1C72SmimrRbd8b6c+zO exOGFOc1hO2eKrEgjU1vQ4kAM7hk7XiAsHj/esWVo0cjG4V7ptU6Or6FulX6J8MhINSb iLZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Qb2K25jq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr20-20020a170907721400b0087073be5464si1555411ejc.32.2023.01.16.15.14.14; Mon, 16 Jan 2023 15:14:26 -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=@gmail.com header.s=20210112 header.b=Qb2K25jq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235156AbjAPWx4 (ORCPT + 51 others); Mon, 16 Jan 2023 17:53:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235214AbjAPWxb (ORCPT ); Mon, 16 Jan 2023 17:53:31 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCCC32685C; Mon, 16 Jan 2023 14:53:24 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id qx13so12917660ejb.13; Mon, 16 Jan 2023 14:53:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=USWxWFA5v5RQ4g1w5jR/fk1KNbzmnZEodvDSAMOXB6k=; b=Qb2K25jq7TjzdjPoE45+9PpWEFdxqtknTJ+dBxc5pQDklQF1KLGezYs4BsfXwjyUTV +HzuBHNziCQjipYRUfyIWUTkPvMqWz+OsRVrmNkGJPO8wok6y3kvPWcmLKmyx0r+S8hX 5zAZRcaZYvx0VhxKrg7HamovnitHMcNJ1g/TSpsN0M05wgXHqud/Tq+ERPvcUsUB1bD+ Mok0a8jOs9aylRNICEaSt4le+5/DuAIr2f5g3VYk4wYlfnR3Xil5vD+ercvMtqQ+rCdY l6YGNdTo1DmXyw+jdyOvDAYvnMYh+NvAEk730ca3lerPQekM8s3/Z0maOc0cysCv3Xfr qppQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=USWxWFA5v5RQ4g1w5jR/fk1KNbzmnZEodvDSAMOXB6k=; b=jVnsM7t5fq8HnjJBphO3DGxl9pJgrS8X+qwA6u2zmYJxfJjHfNrpfXaUSiKWQmt2vT tBTIZJze0xx/cmRjGP+PFVSQGGv7Quy85JAfxLa9od8cHvO9aFR4123zPelolj7dJXGq uBCKVCO6Be84PEdSnh81ZX2FQf3oa7xpXuWLyA5C96y+gsIRR+aeB190RlaZsVrIFZd8 naWsQjvhZ9ff2lqvuo2SX5dAhMXcb0OXZE7kK8VWO8cv7xP7fX2T2IMUJZrzkaI6ye0b cCnsLR/gfgbzkep/ZMbWHNPJeR98zoCjqhdYizQJOM/xNGDZB4FRUhjqO3uGqO3/C4Ix E42A== X-Gm-Message-State: AFqh2koL9guCkO6/bLmN/kgNG+g+4alrWsmGARDM73UwiWFvsn3noDBC Y5ygQtrVTy0tYlGsH9CsuGw= X-Received: by 2002:a17:906:a146:b0:86b:1ccc:d42f with SMTP id bu6-20020a170906a14600b0086b1cccd42fmr584511ejb.61.1673909603251; Mon, 16 Jan 2023 14:53:23 -0800 (PST) Received: from [192.168.1.113] (host-176-36-0-241.b024.la.net.ua. [176.36.0.241]) by smtp.gmail.com with ESMTPSA id f1-20020a17090631c100b007aea1dc1840sm12322454ejf.111.2023.01.16.14.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 14:53:22 -0800 (PST) Message-ID: Subject: Re: [PATCH] tools: bpf: Disable stack protector From: Eduard Zingerman To: Peter Foley Cc: 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 Date: Tue, 17 Jan 2023 00:53:21 +0200 In-Reply-To: References: <20230114-bpf-v1-1-f836695a8b62@pefoley.com> <194f38f2dc7d521375e5a660baaf1be31536be9a.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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, 2023-01-16 at 14:49 -0800, Peter Foley wrote: > On Mon, Jan 16, 2023 at 4:59 AM Eduard Zingerman wrot= e: > >=20 > > 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? > >=20 >=20 > That would probably be worth doing, yes. Ok, thanks for the input, I'll see what can be done. > But given that won't help already released versions of clang, it > should probably happen in addition to this patch. Yes, of-course.