Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1091304rdb; Fri, 9 Feb 2024 09:57:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmAEMOLLbpqqnC++bqeTDJVp1qnWoUFizpkXx/7zqkHchggRBdAr6Q9zFAMupbAnJZvD0h X-Received: by 2002:a05:6a21:918b:b0:19e:99be:ff5f with SMTP id tp11-20020a056a21918b00b0019e99beff5fmr2564630pzb.30.1707501477786; Fri, 09 Feb 2024 09:57:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707501477; cv=pass; d=google.com; s=arc-20160816; b=TWtAdVivyUMX5si555F+f7Y7HCETahtPJWKYOaYr4YWc0b0mQUwOZs4eOfqWNWAT9e 0aWTU7ZnMHXW6Ez7eI0ju62sRJl3CkrRcc5y11UnHe4uyXc6BnBlEcdhMhcC/sROdXnP gZjx72L0RPPGGtGeHA1jKHDl+EYYPYc+FhihNt5HvVMVL73trHspx/nGUG7gVMpAkDro zRN/9hQrvtUNQgXXKNEYlllXLB8MBfEz2h35X24HQExEuXW7HgibqLsh1dZ1pjna9W8k HXkG1EaSfRXAXXCVPpwdvXXR2aKvwqsWuK4I3uNz3HCGqrbHdaclQM3l9ZBZyqWbn5NA LrYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=NoqTVJex4Iddq9y5fjMVxpMdqogqTy+7RDtEYo1Z2eY=; fh=qawQMm9VdnI0fnoxve0LDRGKA0FZArxXsThrTFHZgGM=; b=ZTtYTVkEzZWEV1NojEj/4M4hYIMgz/J3DKRU3sxrBoNnvA+3CVVojkMFaWqicKpWQs v2a17zs1J9LBR8HNbnqlf5BmpwhYMmFAftehtygPEBsI3rjasBi0jdOjJtaPtYgmQpYi nnzKKuvkqdO2HMQfeo9PRlqxVXH22g7hfMCYnF5CzzCk8OuR+kuEyEwbwiCeAYtSf0LF bW8eJUVgh86IsXdE9Lnnx2wmXjVYoTlccOyv3EsHX6A0415KzVuKunG7V9tFOBvD8M48 lGJARYpYuvby/3Y20wGC+RyQm+j13Qqp7E/1ZVFGWlPA37D41KoS2h9pFEBSHSOhNiA5 dCxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=UZPGqns1; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-59755-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59755-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWFR8SRYNQTo8jot5BaMwO67QHHgAsJuU07UdZkx96xL22mus64M94nAC/fBIcGhY2km8+Z/R+ly2LCxX4BtGIEAbriebcDULg2HrCZpg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y11-20020a056a001c8b00b006e032c2ce0fsi680086pfw.5.2024.02.09.09.57.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 09:57:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59755-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=UZPGqns1; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-59755-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59755-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 277B228B0B7 for ; Fri, 9 Feb 2024 17:56:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37E607F46B; Fri, 9 Feb 2024 17:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="UZPGqns1" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8ECC469E16 for ; Fri, 9 Feb 2024 17:56:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707501373; cv=none; b=bi1iLNZj43QGLBcia+27Qbyk2uss436B65Mhf3rp0WXjR9zu01U4im2hnMOvD6kDsiRc2UoHgKWGckzMV+ZANThpD1VXVWxyi41oUw+qpESIxW8w5hogsm1c0CgmpLBtc6f0aXh44hN8pky4UMMAlalO2QCsMh2cK7cWFTueYZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707501373; c=relaxed/simple; bh=Vf9sTnp18c97Qa74hLutsqcRaj6j2Rea5/NTIJB8XkI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=j/3Rhy51UWpBifddyW+z6eH4x2Xr5t20010BEhABcXYt0fF11evDkttKj/XYsxLvC7EhG+hvjwqUpeZNNNBh+LlnR/V4e6gF+OssRGrYoekXXDlIy7yLR8FMkDzn5P5Gj2Plvdg85NvHhZJJTQphb7r8rAOeWdVwPlT3MSFUicc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=UZPGqns1; arc=none smtp.client-ip=209.85.208.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2d0ce2222a6so14433251fa.3 for ; Fri, 09 Feb 2024 09:56:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1707501369; x=1708106169; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NoqTVJex4Iddq9y5fjMVxpMdqogqTy+7RDtEYo1Z2eY=; b=UZPGqns1ddpe6PE8qep76DghxIZ54oub7dZQCE2ld456iSv0wQTTK1WqrvH5gsnz+J ThgCjE92VR5XRff4s3ohXEaHmItKSRgRGGyAeeSCYqYIS14AwfBa3T91/+CcBxuXv5dy 5S2mi5tEO5XyFp0l1j1XI0c6dwu7iWzBkraLk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707501369; x=1708106169; 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=NoqTVJex4Iddq9y5fjMVxpMdqogqTy+7RDtEYo1Z2eY=; b=wEt2ptOb0Ykqr+T/m2XWEYMnl7jf/6VE5TPkNgfO0v5npR2AKhYAwAw0Ez/oY6IVk7 AcqsCa7blBbIzkbhou6/PIu2nbOU+BR16D0iVEpaPZ56kwCX8OXydykQXK33/PMaljaZ Gp0jD7r+/wHBlKmuuYe54knQjCW9FPMwCol0kWAo72hXVOWHtzERlNJypPC81E1wVRVc l6dE0JWmU5EkwSazTfRVuVIGpgUOQk1cSLAzF8XG5cwLeiGbsrqpsAyBXJwOn3sAMCds hFVCVurREFr2+wGPhQyQejlCRBhQiMioZcTon3WeDZhXG/W3ITL8PwjunO+VI3uf7TyJ KjiQ== X-Gm-Message-State: AOJu0YyNdijdB9pvzZRgRkNywePlKOhHaJFW8NJuGy0OwVSuV7A23FEk z+dtw4bVoISYDeF0htDorJnvkr8+cxsNuRfyC7rawDwrNz1rWDkFGarv7H8wZ55TDb5aCrnILAM k X-Received: by 2002:a05:651c:10af:b0:2d0:aafc:9138 with SMTP id k15-20020a05651c10af00b002d0aafc9138mr1523179ljn.42.1707501369325; Fri, 09 Feb 2024 09:56:09 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXtP79a02kjIguSNd3fi4FCMz9/YySbeOquqUQdwop8koNICAl0RasWL/hPqhL9NMoN2xRCCwHojfgW1ZV3LyADFesP4Cc0A/n+pW0V Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com. [209.85.208.172]) by smtp.gmail.com with ESMTPSA id o16-20020a2e90d0000000b002d0aa95176dsm331021ljg.29.2024.02.09.09.56.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Feb 2024 09:56:08 -0800 (PST) Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2d0a4e8444dso13775931fa.2 for ; Fri, 09 Feb 2024 09:56:08 -0800 (PST) X-Received: by 2002:a2e:b057:0:b0:2d0:c9b5:7257 with SMTP id d23-20020a2eb057000000b002d0c9b57257mr2002248ljl.8.1707501367696; Fri, 09 Feb 2024 09:56:07 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240208220604.140859-1-seanjc@google.com> In-Reply-To: From: Linus Torvalds Date: Fri, 9 Feb 2024 09:55:50 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Kconfig: Explicitly disable asm goto w/ outputs on gcc-11 (and earlier) To: "Andrew Pinski (QUIC)" Cc: Nick Desaulniers , Sean Christopherson , "linux-kernel@vger.kernel.org" , Masahiro Yamada , Peter Zijlstra , "kvm@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" On Fri, 9 Feb 2024 at 09:14, Andrew Pinski (QUIC) wrote: > > So the exact versions of GCC where this is/was fixed are: > 12.4.0 (not released yet) > 13.2.0 > 14.1.0 (not released yet) Looking at the patch that the bugzilla says is the fix, it *looks* like it's just the "mark volatile" that is missing. But Sean says that even if we mark "asm goto" as volatile manually, it still fails. So there seems to be something else going on in addition to just the volatile. Side note: the reason we have that "asm_volatile_goto()" define in the kernel is that we *used* to have a _different_ workaround for a gcc bug in this area: /* * GCC 'asm goto' miscompiles certain code sequences: * * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670 * * Work it around via a compiler barrier quirk suggested by Jakub Jelinek. * * (asm goto is automatically volatile - the naming reflects this.) */ #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) and looking at that (old) bugzilla there seems to be a lot of "seems to be fixed", but it's not entirely clear. We've removed that workaround in commit 43c249ea0b1e ("compiler-gcc.h: remove ancient workaround for gcc PR 58670"), I'm wondering if maybe that removal was a bit optimistic. Linus