Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1311157lqa; Mon, 29 Apr 2024 05:12:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVZSxOyghM2T7HHmuTUW831vPHIvWTg2SbrOYu1rwDeGrRhtDiVkUftLdd5uMJ1sqGdV7/lhx60/TcYm0Dnv5vPdpKblmTMnp2w4AHSQ== X-Google-Smtp-Source: AGHT+IHbPLZEPouYJlaKu03v3+hAy7CuY7sQe2eFM0tHzD7P3lXa7G90RVbN9LFVd5mnYAVMf7MC X-Received: by 2002:a17:90b:4b8b:b0:2b1:69c:8096 with SMTP id lr11-20020a17090b4b8b00b002b1069c8096mr4624325pjb.25.1714392767185; Mon, 29 Apr 2024 05:12:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714392767; cv=pass; d=google.com; s=arc-20160816; b=qJ/+T6SoDtLVoEWhQykuZnfHPbpvBIdikfT2e5rlsR6Z1gyvI9EeQxcRHIq5InBR9b UhPy+k0sgjIyVjKfjpEEZgBKZam5K0pBl12lgrLNpoCeQ1D+8c90wjkTrObk0emseUb/ j1bb4rIhEB5iNs+QmmMZ0vWEP5ETRXkbQjoxWEMlFwodNQI+GWDZjgipzwGjTPE+MvTV 3iYQX4zziUo4EHhkbqxk/o3GcQfWi6Va7Jxm0Cph9g3XBHIjeOp1CR/iTKZxoAY1DC9Z 1G6BcCr6lHOp360W5f8IAYttx13jctL32RCuK4j1jgnPCnHVELIYr/lGhw9cb5ImLC6j e5Qg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=akRL7ROXXrCJ+02WODs6j3jnpy7lzzCLR0SqwV7vv9w=; fh=HvVxvr8jHjsJzHzk3hnsBZsrIFYD1ETSjIVAknSIpFw=; b=DubRsokIp3qL+n2057x2T6GJn+tNsgkHYEmDX7Yq+HX6DFqvDMlqsc1whGf9xusX2D 2StuWoONo5nC34ww0c9U/fDB2A6ZvBzleZaZjA6+ZpqB3g9eQOSPQB2WRi+ltEfvrfgT olc1be/VHfDeCn3Yt2lt12bf/1jrc/4k5zVnNRGSo2sbtJp0L4xxM7s+Gx8J1hOFoGl3 ajBdIVQcF2O+QVcwKIKac2eKvm/g/IjMuQPG7DR+wng7UXEz9o1Kf+Iteu2dFzbzcKYX uWfue8egzXqC1c3D/wUB79CF16ePng4sP21Riv51J8Qqbc0NdYAS1zpPxff4H7EU2OCg qdbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=DJVKtHeY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=X1G0nalj; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=DJVKtHeY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-162189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id mw7-20020a17090b4d0700b002ab32f1dc97si22268329pjb.62.2024.04.29.05.12.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:12:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=DJVKtHeY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=X1G0nalj; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=DJVKtHeY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-162189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 0AB94B21C9D for ; Mon, 29 Apr 2024 12:05:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEDB4535C8; Mon, 29 Apr 2024 12:05:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="DJVKtHeY"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="X1G0nalj"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="DJVKtHeY"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="X1G0nalj" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 9DD0052F9A; Mon, 29 Apr 2024 12:05:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714392316; cv=none; b=M0scoVYOyTHbJwMweIslLsHptQUPlwCUBhKjvmPMkh07p/PBz34Xhv6LlH/y3uysooJn/8HYKcGD8N6wVBwheNHtvmewgS8PZJOUD9ch/iMFbhpt+1j1gcOwi0fJcEZhHoLMmILXWOcBkfa4sW/BDE8Wt1dcGnnOrJ+0aJFX+ao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714392316; c=relaxed/simple; bh=OmNjsWl0KvT4p5iOBj8Kvzg2oMkQflGASVR8UbH2pCg=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=oZP5TuhFWWJAEJhX5lpb+QQ/guzBSD9156Eq4ZnT6H2sk30Bdo5Gm0t08/4MzlVJfdk4vIGK7tecRjQ0HveR5oWJbO9+0B3agh5/KPp68a2e52av1eHrLudv6+K0xGPgZkCog+/wAbyqMlLiqcH2khP8znZHUZJoWKElj0q6IAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=DJVKtHeY; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=X1G0nalj; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=DJVKtHeY; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=X1G0nalj; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from knuth.suse.de (unknown [IPv6:2a07:de40:a101:3:9249:faff:fe06:959]) by smtp-out2.suse.de (Postfix) with ESMTP id AA1461F390; Mon, 29 Apr 2024 12:05:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1714392312; h=from:from:reply-to: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=akRL7ROXXrCJ+02WODs6j3jnpy7lzzCLR0SqwV7vv9w=; b=DJVKtHeYFwL/bwuOZisjUIi42dTAlT6ws+53p4TgHASB2dMBcuDPvMowX9Ci+32g4xninR BjKO/gDFrebedq5smy87aToId7oRlS8chy/z+ka9ZpWqTHZBFiDILbXMO/dFCWz1tweEzf 9hj0sZA/WEamJ7HC2G8T/F7VLMSzmy0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1714392312; h=from:from:reply-to: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=akRL7ROXXrCJ+02WODs6j3jnpy7lzzCLR0SqwV7vv9w=; b=X1G0naljtqpQjWIzkwhu3rUOE094R4xZBQeO6JhKKVonvc+5mVI1h8XG9o3/JbyHwXA/dN CD02QD7QosaXAYCg== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=DJVKtHeY; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=X1G0nalj DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1714392312; h=from:from:reply-to: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=akRL7ROXXrCJ+02WODs6j3jnpy7lzzCLR0SqwV7vv9w=; b=DJVKtHeYFwL/bwuOZisjUIi42dTAlT6ws+53p4TgHASB2dMBcuDPvMowX9Ci+32g4xninR BjKO/gDFrebedq5smy87aToId7oRlS8chy/z+ka9ZpWqTHZBFiDILbXMO/dFCWz1tweEzf 9hj0sZA/WEamJ7HC2G8T/F7VLMSzmy0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1714392312; h=from:from:reply-to: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=akRL7ROXXrCJ+02WODs6j3jnpy7lzzCLR0SqwV7vv9w=; b=X1G0naljtqpQjWIzkwhu3rUOE094R4xZBQeO6JhKKVonvc+5mVI1h8XG9o3/JbyHwXA/dN CD02QD7QosaXAYCg== Received: by knuth.suse.de (Postfix, from userid 10510) id 94AAA34F8E1; Mon, 29 Apr 2024 14:05:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by knuth.suse.de (Postfix) with ESMTP id 7D59334F8E0; Mon, 29 Apr 2024 14:05:12 +0200 (CEST) Date: Mon, 29 Apr 2024 14:05:12 +0200 (CEST) From: Michael Matz To: Borislav Petkov cc: Jiri Slaby , Ard Biesheuvel , linux-kernel@vger.kernel.org, x86@kernel.org, Ard Biesheuvel , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Song Liu , Ricardo Ribalda , Fangrui Song , Arthur Eubanks , stable@vger.kernel.org Subject: Re: [PATCH] x86/purgatory: Switch to the position-independent small code model In-Reply-To: <20240420131717.GAZiPAXY9EAYnHajaw@fat_crate.local> Message-ID: <836c267f-a028-acce-8b19-180162a5febc@suse.de> References: <20240418201705.3673200-2-ardb+git@google.com> <3f23b551-4815-4a06-9217-ff5beeb80df2@kernel.org> <20240420131717.GAZiPAXY9EAYnHajaw@fat_crate.local> 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 X-Rspamd-Action: no action X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Level: * X-Spamd-Result: default: False [1.03 / 50.00]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; BAYES_HAM(-2.36)[97.02%]; HFILTER_HELO_IP_A(1.00)[knuth.suse.de]; NEURAL_HAM_LONG(-1.00)[-1.000]; RDNS_NONE(1.00)[]; HFILTER_HELO_NORES_A_OR_MX(0.30)[knuth.suse.de]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; MX_GOOD(-0.01)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; ARC_NA(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCPT_COUNT_TWELVE(0.00)[15]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[suse.de:+]; MISSING_XM_UA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DNSWL_BLOCKED(0.00)[2a07:de40:a101:3:9249:faff:fe06:959:from]; TAGGED_RCPT(0.00)[git]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim] X-Spam-Score: 1.03 X-Spam-Flag: NO X-Rspamd-Queue-Id: AA1461F390 X-Spamd-Bar: + Hello, On Sat, 20 Apr 2024, Borislav Petkov wrote: > Interesting. I thought gcc doesn't have problems here yet and was > talking to Matz on Thu about it and it seems he's forgotten about his > statement too that "you should simply stop using -mcmodel=large. Noone > should use it." :-) It may be so ingrained in my brain that I'm not _always_ saying it when talking about the large code model over a beer. And indeed I know of no particular problems with it vis GCC, but that doesn't mean it's a good idea to use :-) So once again: "everyone should simply stop using -mcmodel=large. Noone should use it." So the patch goes strictly into the direction of betterment of the universe. :) Ciao, Michael.