Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1503765rwb; Fri, 19 Aug 2022 05:02:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR6tltOnqRGdTV+uZ+JU2QRqu8fQsskDGPIVWYsRUDCNQh9gUJ4hSYDM3O8J8eTRLlAAV352 X-Received: by 2002:a05:6402:551a:b0:446:1526:85ea with SMTP id fi26-20020a056402551a00b00446152685eamr5359954edb.188.1660910529248; Fri, 19 Aug 2022 05:02:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660910529; cv=pass; d=google.com; s=arc-20160816; b=J/kN7fENzzL/zo2JTP5QxPcSsCnZdHopfNbm7U3HcRt7JyOCQrlPI3PUG77elFyHFo P9Xa+0TTNoL0mgsLoeM5ZKvVsFZXPE5lVLNDJ/v+TytANPLqKzNPyLV0twvUn4mb4RYE BLIu3/W/HaWyGTQr0nWKtlwnWteysK44e0TXmDrBr8OvmqXzz5d8kgf7HyJGoPMiKay8 l/Oh9g8uu+NYKANqprjmSVTUoRk37TyZqINbcTJ4uqStzcRWT1/P5VeVpRBx0DOCE4PU UOqByh37D9Z3ZIfpD5e+k9tnsNVeZzttoP3geTpXR5jByzXYRuSOvIJ0m7/9mZE5unkg EYYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :dkim-signature; bh=fkx3l2Jsr5sn7pf41ZGYs34bVyvOXQOv8D/DfIbdLs4=; b=YfC9d5Ox3KrlDcSlAJWXNmFLoWT8PVeT+oJ/oCgeT07M+2qIgmQM/XaQpVoRHDxMIE 9MUlTWq7QU0puE49jm4QppQK2LbPwz2+voaOMrVlQWw3PAr8VfKVxpmE/snmEG3mG6GS +8zxDStpGXCmboOVQhoqD5yZvU/taUDa9lLIMgBj5o8qE8EDE40VVjmSJImKr2RqoxwK Cw7H9hLWfzLqApzmSTXK1iCrP1bNrKuhj6epZ13rrLEZlACXjvoqP396A01ZQTuxeyEK gfBDFoLRcRku8xSgnCBrt+CQxSmqDY+1gi0jfXAjWsTkiKZHOW2MK+pVMunLkaylvh1f uy8Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=jvNOhQxC; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a50a6cd000000b0043c158735basi2817598edc.467.2022.08.19.05.01.42; Fri, 19 Aug 2022 05:02:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=jvNOhQxC; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347923AbiHSLdw (ORCPT + 99 others); Fri, 19 Aug 2022 07:33:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347538AbiHSLdu (ORCPT ); Fri, 19 Aug 2022 07:33:50 -0400 Received: from meesny.iki.fi (meesny.iki.fi [IPv6:2001:67c:2b0:1c1::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 370632D1FE; Fri, 19 Aug 2022 04:33:47 -0700 (PDT) Received: from mail-vs1-f43.google.com (mail-vs1-f43.google.com [209.85.217.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: martin-eric.racine) by meesny.iki.fi (Postfix) with ESMTPSA id BA0F72065F; Fri, 19 Aug 2022 14:33:44 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1660908824; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fkx3l2Jsr5sn7pf41ZGYs34bVyvOXQOv8D/DfIbdLs4=; b=jvNOhQxCaIxg8axFbz7wCTaU1KV/nOQCmIzGuUqNw5LS+lfmzjNQTC6KolbhoBgBIUiYH9 nsbYjG6RtqL/XyVJzVfxtvraI7edzi0GzAEhwZbTCIt3LH4qm5JfdLnoshikVZ3PpeOvHH pVxGB8eEH2JA8Y2Tl5bZRJQ6gg4Uf60= Received: by mail-vs1-f43.google.com with SMTP id z185so4184817vsb.4; Fri, 19 Aug 2022 04:33:44 -0700 (PDT) X-Gm-Message-State: ACgBeo3JqDmziwEC9RUhjdrHJUYiZrktluNJaPlcAoiWTgc04TQ325ar Rx3qpCLC29kxpodHpNv54aamuExjbwHl3VD1SrE= X-Received: by 2002:a67:c819:0:b0:38f:784f:c377 with SMTP id u25-20020a67c819000000b0038f784fc377mr2234906vsk.15.1660908823365; Fri, 19 Aug 2022 04:33:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: martin-eric.racine@iki.fi From: =?UTF-8?Q?Martin=2D=C3=89ric_Racine?= Date: Fri, 19 Aug 2022 14:33:32 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86/speculation: Avoid LFENCE in FILL_RETURN_BUFFER on CPUs that lack it To: Peter Zijlstra Cc: Ben Hutchings , x86@kernel.org, Linux Kernel Mailing List , 1017425@bugs.debian.org, stable@vger.kernel.org, regressions@lists.linux.dev, Daniel Sneddon , Pawan Gupta Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1660908824; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fkx3l2Jsr5sn7pf41ZGYs34bVyvOXQOv8D/DfIbdLs4=; b=rjfIm3WhysBqcVoqDra2pO/z7G2hhRhEndLGJtAIVdUSISYt9ezBwLMrd/mghTxOPSbX1Q TfAEV4istT8bkFx1rwAD+NUgvUF6KhkOsbnQ+6EB/9MF0HfH/dwFE1RaI5K6z5Y72sUijq QyuJows/mW9QDBwVy6QL7/b4Y9t7HKQ= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=martin-eric.racine smtp.mailfrom=martin-eric.racine@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1660908824; a=rsa-sha256; cv=none; b=d7uWLKMeMUDzepnKQKoJICuYpRzHhvIM+shCzJV6F4wy0eR0q+1ZDlILwdml8FkOI+D2Xj eN6nrrc/DGgioCH9CyZn5o8pn2iZb4VnNgrWUIGBn1Whom9Tmp/OqDdZW96iew07MlXveg 8yzEb9i+kT/zKgPtZ82QfjXgUPBuGIY= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 19, 2022 at 2:01 PM Peter Zijlstra wrote= : > I'm not entirly sure what to do here. On the one hand, it's 32bit, so > who gives a crap, otoh we shouldn't break these ancient chips either I > suppose. This is something that I've repeatedly had to bring up, whenever something breaks because someone meant well by enabling more security bells and whistles: x86-32 is by definition legacy hardware. Enabling more bells and whistles essentially kills support for all but the very latest variants of the x86-32 family. This is the wrong approach. The right approach is to accept that building for x86-32 inherently means building for older and thus less secure architectures. Martin-=C3=89ric