Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2118658rdb; Sun, 11 Feb 2024 12:12:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFMkVvqrNhoTRkiLBB4j8ZHFhLbwce0r8Z9Su2RISSkE4Zfq8DaOJV/3q+SHXMuSBM1DCSK X-Received: by 2002:a17:902:e84f:b0:1d6:fe15:b588 with SMTP id t15-20020a170902e84f00b001d6fe15b588mr6315082plg.64.1707682371662; Sun, 11 Feb 2024 12:12:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707682371; cv=pass; d=google.com; s=arc-20160816; b=Y7fzv4VJ8YTK5EvHvkXi8H1HAx7P6MefK0X6w8EzkluTq09bxw4p4vL98Nqqqkxynu a7vMn1q8SIeHXYkH5ztPmDucqx6UzfbDcGOl4ibFaKkCJ8nNYFgvwhO48y/sb0QA96IY vs+OJACLzUtH2m8JgIYNpOBDe5YytFI/cmjg/NNjrhXV9hWJGgBaHPWtuz/wJjhvUdtq vyHBJC+n5aykUKoeLJbNSwL9sQqLdpihR+ZqN79zGP/q7HWAsSoG/6nhglm/jk+JXnpK 387UdinxHBrO8/hBSksCzDcDcJPrP3wFgfmvJ8Kx33cT/M/OupHTiNZHjlsVOtDMlH6Q IpNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=tVk8cPuhz061cwPkhFCtcFN9DX+JLnuTuyQ18930v7c=; fh=RxrJrWDxR56Imn9g+Z20wrd6y+/SfjaKAmPlGCWOrdE=; b=PYlIdoEIsKEPrBNFlfaaIt4PWcWE2D4W4VGes6ErDCcPfrDMlVN/XotAgUH9Eavgp1 1vVfGzIAruwrNMKqI9taRbL9olx0hcZNSfWOhTA28Uq5u7FzePDuxteNzx5QQpOwgfyS vmbkpXcniTxFc4eSSz/iZoVBatOHNIn7IicPs/WvWrazPCuMEmefQQZnyviFt2mihfGc ZR9n+oEZV7T7176HKaC/GcHqxBYyun4A1waO0jIKhzohke1+CxZouHyAKyZsbp/5wd6p h3SJhG5DnFYf91OWFjPWoI3gPy2fegzddinFdSZgPGPeLmf4fu8m2AhK5PelM3rsfZW4 X9tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bBexHuTI; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-60937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=2; AJvYcCVZrf8QpQbxbll2ZOPbijbatnzdD3FzLI/KdJdMQr3ZAGMrZS51mdGXAkGbToRZUoWjmz47rB0SMzf5lsBsmsbedkB2wugXo8Ohr+36AA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s2-20020a170902a50200b001d9773a1991si4976538plq.509.2024.02.11.12.12.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 12:12:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bBexHuTI; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-60937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8CF79B21B8E for ; Sun, 11 Feb 2024 20:12:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDF455EE61; Sun, 11 Feb 2024 20:12:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bBexHuTI" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C48A5D487 for ; Sun, 11 Feb 2024 20:12:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707682354; cv=none; b=EGuBXaKj7c0NNJ6TQw9E4choRmE7/nCoe1pZo3q+G81ZRDvMdrk/pSaeAnTOP5Js0MXOMTf5jSSdc6Hbbgujryh4mToiiTu0GgTmeirLDLfim074IIhOdAxd73CrPEjP9XJ7vxfxjI85q+z12UI9FkskvPc30cASh2y8xyTMC60= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707682354; c=relaxed/simple; bh=YYwPh8j53W7qUnrBVOP5NKtGe7v63JZ0Yw4CbC2lklk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Tz2437+PJoxF/reTrp0ze0xSwr6RnMDh+ONyYS+2ArV7ygvYgiXYQOhOsIqjxHXV07O4h+qzhUJI2mXt4lIiJ+eYuYsiOWpuYX6Enuiuk+ddSa1GOZe9Hw1ZRL0rWofPpMEstazjHB0JreVfjEt7Sdwlj9/cxBc2jViKXypBbP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=bBexHuTI; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707682351; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=tVk8cPuhz061cwPkhFCtcFN9DX+JLnuTuyQ18930v7c=; b=bBexHuTIoAaPEcjwulWcgC9g9Z4g9w2CMB8yqcFGgGLZYo/vqFE1MRV7Em6HbLyWDyhHEV hhGOjVcvbQUZz5N7n2wk6k2Qg3s4otal6p+Nr222lzN+HDpIQX8FMFsZoKXLaIm28T9nSs R7uebEUJFDuTRTC0JXI8lSLYbqV4sw4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-551-ysM-Lo5kOC66J4IFroP-MQ-1; Sun, 11 Feb 2024 15:12:27 -0500 X-MC-Unique: ysM-Lo5kOC66J4IFroP-MQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1FB4E83B826; Sun, 11 Feb 2024 20:12:27 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.8]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CB8E440C9444; Sun, 11 Feb 2024 20:12:26 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 41BKCN1r4049961 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 11 Feb 2024 21:12:23 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 41BKCKpr4049960; Sun, 11 Feb 2024 21:12:20 +0100 Date: Sun, 11 Feb 2024 21:12:20 +0100 From: Jakub Jelinek To: Linus Torvalds Cc: Uros Bizjak , Nick Desaulniers , Sean Christopherson , "Andrew Pinski (QUIC)" , "linux-kernel@vger.kernel.org" , Masahiro Yamada , Peter Zijlstra , "kvm@vger.kernel.org" Subject: Re: [PATCH] Kconfig: Explicitly disable asm goto w/ outputs on gcc-11 (and earlier) Message-ID: Reply-To: Jakub Jelinek References: <20240208220604.140859-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 On Sun, Feb 11, 2024 at 11:59:49AM -0800, Linus Torvalds wrote: > On Sun, 11 Feb 2024 at 03:12, Uros Bizjak wrote: > > > > I'd suggest the original poster to file a bug report in the GCC > > bugzilla. This way, the bug can be properly analysed and eventually > > fixed. The detailed instructions are available at > > https://gcc.gnu.org/bugs/ > > Yes, please. Sean? > > In order to *not* confuse it with the "asm goto with output doesn't > imply volatile" bugs, could you make a bug report that talks purely > about the code generation issue that happens even with a manually > added volatile (your third code sequence in your original email)? Preferably for all the different cases where you suspect a compiler bug. At minimum preprocessed source + compiler options + detailed description where do you think the bug is (or small runtime testcase but that is harder for issues derived from the kernel obviously). GCC 11 is still supported upstream, so bugs reproduceable even with just that should be filed in gcc.gnu.org/bugzilla/, if something is only reproduceable with older compilers, guess it belongs in some distribution's bugtrackers if those still support those compilers. Once filed we can bisect, analyze them, fix. ICE bugs are even easier to file, all we need is preprocessed source, command line options and gcc version/architecture. gcc -freport-bug in most cases should be able to create everything in one file for the bugreport. As for the workarounds in the kernel, I'd also like to see only workarounds for specific compiler versions (once filed, bisected and analyzed, workaround could be either based on affected compiler versions, or kernel could try to check for the compiler bug in question and only add workaround if that bug reproduces on a short testcase. Sure, this would be easier in autoconf style checks, but could be done even in kernel's makefiles. Jakub