Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp321043rdb; Thu, 15 Feb 2024 00:43:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXae/rMpqlEZNIzal7xMj4FXgGDq6J9NRbIvWwBmiQk/XSUh7Xkn+C69YukKCx6Tt3yBvifi0tglpxj8c6/spiSjFDhB09K14S78s1skg== X-Google-Smtp-Source: AGHT+IHUoaIQ3WpnURwlCNyCa+mhplg1ddHKzPRsu/mhSSEFVfKjJ6G5e6SWTFPKL+PR4bSVz/K/ X-Received: by 2002:a17:902:e892:b0:1d9:c37d:7194 with SMTP id w18-20020a170902e89200b001d9c37d7194mr1431622plg.30.1707986622815; Thu, 15 Feb 2024 00:43:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707986622; cv=pass; d=google.com; s=arc-20160816; b=fEjdZlJjY/npvCoyStbSBm2+i/5/ZVxijD2mwccUiSwlaDMuHev2Yz2+8ll3B5YcN0 8klaj1eVpzO4q10b18sUrPADDMZHaWvV2K7tfaTL9nsa4gAzVLWjMk++q9AiIMmTrBax 8uNn5wgfZsT32QuIo8GIj4MuAA1AtEuIUBfZ2qKN32EJFrd3Jdn0X1kHZ/3QzNJIOqCB hegYGCvLQEYs440tAlhuhcBS+L+pQVk1K/3gSbRX0geBrZO0TPjiJY+XfAPaVqwrcYkJ udhlVy3X5pULjUaaZxn8oYH8gen5SqJPUJh5StHX9Xdk/FmVt0RL87eKGtkzYqnfYfAo nrsg== 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=bakj0FATNvoSdsfDbqmxKCUpth/6U6kxf5U1T4MpHTM=; fh=JCuhxcIwGOEeFGBCPTFDr5gAdFj1cSJDIxzgSHSP2Bw=; b=k+wq/g/rfxXqQZtPxHkVBlenXJFfzGUXLMV9B0NGA7LflCOMOMkXkzIqxqAW5zuYG4 0ynPiRheDC+46DTyrV/vQ2JTFSRtdLeXIqa+46D3wUpsZ9TUTj8LYnoby/LR+yenR1ri exbwZ3sOx/hkrbF1gUVFl3mufR/Wp+6FXGHEVSGDtPv+OS5opb5wLnFUpjLM9Y0NMZJH nsUoAVanTH7K65c9teh573E/WAS+nUjADA2QIQxgjXjezUbRlgPYvmuEoISGPsxMCK87 xj8joippA5U531efpraR/fG40UrMA9AA6HaJQOt+ca/DcuXJteJV7mpjxoNo1zUagNI2 C+rg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Oy65GiHF; 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-66433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c20-20020a170902b69400b001db47573c41si788772pls.57.2024.02.15.00.43.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 00:43:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Oy65GiHF; 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-66433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66433-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 530DD2837AC for ; Thu, 15 Feb 2024 08:39:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0CC7134CC; Thu, 15 Feb 2024 08:39:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Oy65GiHF" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 41B0812B90 for ; Thu, 15 Feb 2024 08:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707986378; cv=none; b=Vj8eo0hgSYaBQ/TQx5EXMV/JTWw4ubFcJler8F0UfUVYY75Q3FmzlVjNz2sL6VhlQD5dIGLZg5XHTaccYWZqyihCz0XdjgvIaBr+qZS5DUMxNYapiDYejavKLYjT230YeRh/8lkbIjGurcllJJVV+28rcoGUM5GKwY4xZwkzbg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707986378; c=relaxed/simple; bh=nU2GWl8pjQTzoRKcy5LbXTwzOcvRte+6I5y9OLsNnfc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oSgZzSf8Ap5ufStocPXV2DD1scCuX8p1dXKRUscgnKzTpditXShfjCX5zOOSScF4+fADXQdRGtEaZ62iYoLgin6TLaoh6EaBigTaetdKMVq1wuMVgUsZFn79KbnM1EnkGfxQZGZiH0Gl+3SySBTgL5TYUHs1a7Xf24eyEcoRCj0= 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=Oy65GiHF; arc=none smtp.client-ip=170.10.133.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=1707986375; 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=bakj0FATNvoSdsfDbqmxKCUpth/6U6kxf5U1T4MpHTM=; b=Oy65GiHF3n1MqHhGE6GPSJfWgwS1Tae5ZiemPq8wocRDQeeTyksLgiKYNVv80ppR07iaQa XprdqsI8Wqwprk9PgubyJ7vQKnc2JDvMKu+amfHS2hk4s2qUSB1gMvBDtezQ9NdX/HAlmg kzQ0fRzu8jgFSHqm3IijCW0yKIA8mNI= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-594-AvOsWZVoPEKLoWO4iKeIkQ-1; Thu, 15 Feb 2024 03:39:32 -0500 X-MC-Unique: AvOsWZVoPEKLoWO4iKeIkQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (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 B67BA280A9A8; Thu, 15 Feb 2024 08:39:31 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.8]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 73F0E20110C4; Thu, 15 Feb 2024 08:39:31 +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 41F8dR9K1207786 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 15 Feb 2024 09:39:28 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 41F8dPiY1207783; Thu, 15 Feb 2024 09:39:25 +0100 Date: Thu, 15 Feb 2024 09:39:25 +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: 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.4 On Wed, Feb 14, 2024 at 04:11:05PM -0800, Linus Torvalds wrote: > On Wed, 14 Feb 2024 at 10:43, Linus Torvalds > wrote: > > > > Based on the current state of > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113921 > > > > I would suggest this attached kernel patch [...] > > Well, that "current state" didn't last long, and it looks like Jakub > found the real issue and posted a suggested fix. > > Anyway, the end result is that the current kernel situation - that > adds the workaround for all gcc versions - is the best that we can do > for now. Can it be guarded with #if GCC_VERSION < 140100 so that it isn't forgotten? GCC 14.1 certainly will have a fix for this (so will GCC 13.3, 12.4 and 11.5). Maybe it would be helpful to use #if GCC_VERSION < 140000 while it is true that no GCC 14 snapshots until today (or whenever the fix will be committed) have the fix, for GCC trunk it is up to the distros to use the latest snapshot if they use it at all and would allow better testing of the kernel code without the workaround, so that if there are other issues they won't be discovered years later. Most userland code doesn't actually use asm goto with outputs... Jakub