Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1802153lqa; Mon, 29 Apr 2024 22:23:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1oZtgLyxcr2jVSSN+tpLmUN3/NRhnB3+K4t8L92XGaYGyvU03eCMBlMpaWhGjO4VGyua5hIpKwJrXSsFp+X6ujcOumQVLkd8PD/L1pA== X-Google-Smtp-Source: AGHT+IHur4IA/YIcmL6Z8NhcMLCqXynTyuTsG717YJ6ygaE0WdQDAfOoVIRAkhQZFejMxOLJvqbM X-Received: by 2002:a05:6830:1d64:b0:6ee:1c47:ad5c with SMTP id l4-20020a0568301d6400b006ee1c47ad5cmr7001960oti.1.1714454616778; Mon, 29 Apr 2024 22:23:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714454616; cv=pass; d=google.com; s=arc-20160816; b=KaRKMcM+FNipQk63A5pIurB9q4W6LK+aI8oGv5aMNaBwPNH9bmtxhKEmHk9BpOOMo1 XzVFMTXSvnnO3nXcuGh3fYQvmFiciGbpoZEYOsr8TNv0u6AKy9Oj+lMF3QrXh266iRwb X8wwQ7Yq2SWABnLUe/z268d3F4DugKf2yEFwivdR11+wfYjVqb3CTfEJKk9nDULBCGLW MjkGsVxTnDkwf/287TeUIJYYPzDLMgg35jEvwFSD8DhA13+iS/XhBpWTLAaCxLoApbeY 5+gewq75CyBRKFdg39pfvCFGzUcR1Aq5NeNJrUVW5nKfFoxYzB3XjBBl0c0UmZB/Kkg1 9f4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=aoR7iLYPrGYLCsHQuPiM+/n3J7qjHQUGOA9mseIQEqs=; fh=849fd2SbKFi8K+0BXTy2yNf9n1E4MmPp+3g3IMk251A=; b=lND0Uh4+0QpbAyUtHeO5zIU1b1RXhQhiuXFLpprsbYG2eiN3tNc/hNSpPfAFk8lqDT 6F4q0geojsg4geFYEh0faeiystchmR6eLDeFnixwzZLK5RaZwG4XjghppUWQ3E5eEU7q Eh7wHrOSep7tNm6aYCR/0YOQPcrR4bUCL20NvtD9L8ek3CLzCN11iCwdXDzMG8zKINZJ WBATuwm+bbTcoipXGOHqysIiiXHNp6WRJoikeCG8IIXJyu9aO6WL68AFe26gFrP7P7Zu qYzu2SWeHq5/5d733icHzDV4qD2KSXrngEQzqSo5/xoskVdWKGvhFC4NkvNndeJ7LrCS 3WGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-163357-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163357-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i7-20020a6561a7000000b005d64d951c89si21756279pgv.143.2024.04.29.22.23.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 22:23:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163357-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; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-163357-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163357-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 94F8A286095 for ; Tue, 30 Apr 2024 05:15:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FF82175A7; Tue, 30 Apr 2024 05:15:35 +0000 (UTC) Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 3315A199D9; Tue, 30 Apr 2024 05:15:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714454134; cv=none; b=A8rUA5I97ccCnyqPRp6HAnuRLA3UljQKelgRhjv0R753rmaFCgHrBrtLWb5Zh4JFbyTNwtj1zLGQ84Wcvuv/dmUqJ69v93vc2Dt6QzveFdf9IqU7RqqeT8nAFzrhyd+xuVrT+Rr1zaSnBzqZ2kLLg/ZYsutEc+z0t/S2999X5/w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714454134; c=relaxed/simple; bh=K/Trbl5Hys+WHbMtuQ3ZdMwcnFERxG2HBEWXhzrFVOQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hkEP3zbKvI4mYmn6NMphtunxgergW58Ix6qnAgPCChkwXCENs1OVJqc/UzFoutztwfrgiVKMvB5MqDXB8+8YKCzqu+ToXd6laIo+aZguwlrQOe1EOtg99yhJk9hY7DLlg5Kf6LUtOiPFWa/CMTc4WpRGul/+MGKYDL9D7j0WE0w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5726ccca4c8so3270883a12.3; Mon, 29 Apr 2024 22:15:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714454131; x=1715058931; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aoR7iLYPrGYLCsHQuPiM+/n3J7qjHQUGOA9mseIQEqs=; b=cdclYVzRy7NSAva2NWsI9PB8hgXWj55tqaJxZ8Mj+4Iv+tj+lOX/1md7/X8JNzS15a mA/2WcQr5Cf5OGsCeT45UhyCVXJmxA8pe+THQuzpV5i7Ne8vovyoruRMC4vtAQ1qA4pp J1ObARZwu012ecxyaZx3BI//Nb/ZmdhXy7Ew75akU7x5eQMbcVcUez70hwG1N0QhZ8VA V41Yo8QjIpgzFibA7fpeqv+O6q+R1QYt9XF66n79ymADMHiGqXS3Gv0FLSBZmxxHwYz0 Zs9HY3UoUfp8G/Ypz06BYnTYpD2REnD7N1uYhf7cskhF/5eXFOpZCawPqV4qcFUUUwVt UOOQ== X-Forwarded-Encrypted: i=1; AJvYcCV1AqGDr50I2VyaPjPKAhou54AsJMGj0Ve7gNHxwHBCPtrTr6YGVnjoRaZuNmDfogcVGouFbZC9PfAQgyxIq6upSEmLLD3DN13vH8C/PxCUWVO2lwb4aRhORy/lAVtaDWab6NaY X-Gm-Message-State: AOJu0YzyeRl+aCorHdCJi349uwDBJ8bZ14r8sJIbuipaeIR231WwdhMX SsGWkLNL1CPGr/r/T6V8WsH3o/lnPoKzDTr75ojPMaL+3g4eecjy X-Received: by 2002:a50:bb6f:0:b0:56d:b687:5a45 with SMTP id y102-20020a50bb6f000000b0056db6875a45mr9111555ede.1.1714454131234; Mon, 29 Apr 2024 22:15:31 -0700 (PDT) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:69? ([2a0b:e7c0:0:107::aaaa:69]) by smtp.gmail.com with ESMTPSA id g1-20020a056402428100b00571bbaa1c45sm13795878edc.1.2024.04.29.22.15.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Apr 2024 22:15:30 -0700 (PDT) Message-ID: <4ce6cf96-685d-4792-b2fd-949c07eff707@kernel.org> Date: Tue, 30 Apr 2024 07:15:29 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/purgatory: Switch to the position-independent small code model To: Michael Matz , Borislav Petkov Cc: 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 References: <20240418201705.3673200-2-ardb+git@google.com> <3f23b551-4815-4a06-9217-ff5beeb80df2@kernel.org> <20240420131717.GAZiPAXY9EAYnHajaw@fat_crate.local> <836c267f-a028-acce-8b19-180162a5febc@suse.de> Content-Language: en-US From: Jiri Slaby Autocrypt: addr=jirislaby@kernel.org; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKraekbNE0bC4zV+ryvH4j rrcDwGs6tFVrAHvdHeIdI07s1iIx5R/ndcHwt4fvI8CL5PzPmn5J+h0WERR5rFprRh6axhOk rSD5CwQl19fm4AJCS6A9GJtOoiLpWn2/IbogPc71jQVrupZYYx51rAaHZ0D2KYK/uhfc6neJ i0WqPlbtIlIrpvWxckucNu6ZwXjFY0f3qIRg3Vqh5QxPkojGsq9tXVFVLEkSV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rDk+gRNvKnGwFNeTkTKtJ0P8jYd7P1gZb9Fwj9YLx jhn/sVIhNmEBLBoI7PL+9fbILqJPHgAwW35rpnq4f/EYTykbk1sa13Tav6btJ+4QOgbcezWI wZ5w/JVfEJW9JXp3BFAVzRQ5nVrrLDAJZ8Y5ioWcm99JtSIIxXxt9FJaGc1Bgsi5K/+dyTKL wLMJgiBzbVx8G+fCJJ9YtlNOPWhbKPlrQ8+AY52Aagi9WNhe6XfJdh5g6ptiOILm330mkR4g W6nEgZVyIyTq3ekOuruftWL99qpP5zi+eNrMmLRQx9iecDNgFr342R9bTDlb1TLuRb+/tJ98 f/bIWIr0cqQmqQ33FgRhrG1+Xml6UXyJ2jExmlO8JljuOGeXYh6ZkIEyzqzffzBLXZCujlYQ DFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmffaK/ S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= In-Reply-To: <836c267f-a028-acce-8b19-180162a5febc@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 29. 04. 24, 14:05, Michael Matz wrote: > 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, Of course you do :). That bsc#1211853 I linked earlier. I.e. gcc-13 + -fstrict-flex-arrays=3 + -mcmodel=large + some asm() expecting __FILE__ to be constant (not true with the large model). regards, -- js suse labs