Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp754716pxx; Thu, 29 Oct 2020 13:43:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYboEa8KCLipV5yOnQlSCx3LDZBFGZu8ajhjzcfs2hah76sMe83R4B7Iyjdr5e7tufHNbe X-Received: by 2002:a17:906:f6d8:: with SMTP id jo24mr6088288ejb.173.1604004180702; Thu, 29 Oct 2020 13:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604004180; cv=none; d=google.com; s=arc-20160816; b=ByM/ONy+pb0hhE7JQwrzYhAyhckUNXYO71vGsRzyOc4Lh0VE8aZEspTY9PQ9uDoko9 Rg9gIRDBeJERMWuomBQIbZ5FMC8sFOeFvcH2A1bkelt4a2cdPihigD9OsIlrOU2p+PuC X5CRrCRM4Dn9UD97JESRziHabJ9TbCCicwAmmmTCDqvgccRi0uKycs7cnhFTUr8WHF33 mAWEpAXgMYEPWl9P0mowb8mvKHVGf+j6HMU7jmHW5O1MJC+lLpvl3akMxm/ROV9pfFPY 6ofDms7V9rcz1SwtIFEvsCtKZ5x1ll9rCZFh2iPY4OMo5KBt42viva8DkasVIUnEZQvd 9rUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=jdbKpR4qwRf7hPjIEg4NqVkSJYyPhBqK5yTLC15Locc=; b=fi/FVYhXAJbqVRsFrnSQbuIhN3UZSLMl4bWc9CckoQSXk0PjEXwKZPzoMXWNa21pXn r5lqSexPbwf8XquuhiW9n+GV4CSB9S6lGP9Af/CoTOJ7svFFrd8BiHylfNKFKoA0q8Sz gR9yLcd9faiyHyZHgDBvSajhw5O3f3hn8KfYec8B7FSKlHLRm7N7+/kNqCc2ojgr168H G5Hdb83Tgf5sP4Cgq1JVXmfKG5UlHWg5TOCyWabgPNv/2WQ0EAK8LxXAn/4qtqIgktK5 4uIoek3DsFTgPUp2Y+03LJPFaKosdhWYTvgeyas/XN1yYjkqIe/Z90vxiSZodpwUGGmR p7vA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o20si2719122ejn.279.2020.10.29.13.42.36; Thu, 29 Oct 2020 13:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726735AbgJ2UjO (ORCPT + 99 others); Thu, 29 Oct 2020 16:39:14 -0400 Received: from gate.crashing.org ([63.228.1.57]:53445 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbgJ2UiB (ORCPT ); Thu, 29 Oct 2020 16:38:01 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 09TKVFK3008610; Thu, 29 Oct 2020 15:31:15 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 09TKVDiY008609; Thu, 29 Oct 2020 15:31:13 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 29 Oct 2020 15:31:13 -0500 From: Segher Boessenkool To: Arvind Sankar Cc: Alexei Starovoitov , Ard Biesheuvel , Linux Kernel Mailing List , "open list:BPF JIT for MIPS (32-BIT AND 64-BIT)" , "open list:BPF JIT for MIPS (32-BIT AND 64-BIT)" , Arnd Bergmann , Nick Desaulniers , Randy Dunlap , Josh Poimboeuf , Thomas Gleixner , Alexei Starovoitov , Daniel Borkmann , Peter Zijlstra , Geert Uytterhoeven , Kees Cook , linux-toolchains@vger.kernel.org Subject: Re: [PATCH v2 1/2] bpf: don't rely on GCC __attribute__((optimize)) to disable GCSE Message-ID: <20201029203113.GJ2672@gate.crashing.org> References: <20201028171506.15682-1-ardb@kernel.org> <20201028171506.15682-2-ardb@kernel.org> <20201028213903.fvdjydadqt6tx765@ast-mbp.dhcp.thefacebook.com> <20201028225919.6ydy3m2u4p7x3to7@ast-mbp.dhcp.thefacebook.com> <20201028232001.pp7erdwft7oyt2xm@ast-mbp.dhcp.thefacebook.com> <20201029025745.GA2386070@rani.riverdale.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201029025745.GA2386070@rani.riverdale.lan> User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 28, 2020 at 10:57:45PM -0400, Arvind Sankar wrote: > On Wed, Oct 28, 2020 at 04:20:01PM -0700, Alexei Starovoitov wrote: > > All compilers have bugs. Kernel has bugs. What can go wrong? Heh. > +linux-toolchains. GCC updated the documentation in 7.x to discourage > people from using the optimize attribute. > > https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=893100c3fa9b3049ce84dcc0c1a839ddc7a21387 https://patchwork.ozlabs.org/project/gcc/patch/20151213081911.GA320@x4/ has all the discussion around that GCC patch. Segher