Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1614948pxb; Wed, 9 Feb 2022 00:08:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxER9UYMMZYbRqL2rHXBjJUQZGH6mpxqhHIhmeoEy4SWItqTWiMlvHwkF1rolgC605vkjal X-Received: by 2002:aa7:d64b:: with SMTP id v11mr1169684edr.217.1644394109063; Wed, 09 Feb 2022 00:08:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644394109; cv=none; d=google.com; s=arc-20160816; b=IbbDijLAiannCT35gOJjuGK+8yOSqWe5aAd7v6fgrP2AdI/v925pdocWdkFheLzbWk ur467BGEvnfE58rz1784UkTlAN91ZIzuRdYFZpaYebvr9cEJijiJm9ypmOEjOiyK7ajn 9PQn9vDxHsGsceedzyjpmkbNXI+wrpog5BMTItTP9z97XIKXcsi9fqkCP+Hz/UozwebW AgGihVMVdGs/+mKdX6YzdptzZmsy5+siGx0Ho155+PfksT0YVlyWgA9A4p9acyYrt71t 9TibzkCgne2iSFyNLeW02Rb5LCiMt/Hq4dyNWR9G9+i/3LL8uqQ43CB1fUd7OkPhIicz KsHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=rDP2bTec2Cn7WDi6TPkzhWPdPKiOgNTjSUmTHt7pUNA=; b=O7lLovYPyHYB7jGeuUJ81/8EqHvCqHuJ8n5BTx8OoEWsl4qFRskOvPAwl1k9SDWYJf aZoW82MXQs7vPnhdB4BN7bGxAu9Juy/5Jlyz6B+fB7wALOqzCYyucfCUBj52KY5ANRQ5 JemQhxbkiI9lTSiZAZnWag0zGdW47gRw3Ad0M7Oo/56nJ6oUEpW2Qt2bnSz6M0clb0zF tlNcxsUB3Tx5Cc/WEzKdGE4+krP9+5ucZCWeVFCyaGhFu030yN4pRixGEDTnayqeChEd rYC+NclaZ2oS/2sGkS7KzYYXC938Wvv9tdc+RvvJdMp6WMfiZ/4VNMkNox69dWJu2XpW z+/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ht22si10706888ejc.712.2022.02.09.00.08.03; Wed, 09 Feb 2022 00:08:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237379AbiBHXgc (ORCPT + 99 others); Tue, 8 Feb 2022 18:36:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231418AbiBHXga (ORCPT ); Tue, 8 Feb 2022 18:36:30 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7A9A1C06173B for ; Tue, 8 Feb 2022 15:36:29 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-314-yKUP0R1ROeSG8Jqez4S79Q-1; Tue, 08 Feb 2022 23:36:26 +0000 X-MC-Unique: yKUP0R1ROeSG8Jqez4S79Q-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Tue, 8 Feb 2022 23:36:25 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.028; Tue, 8 Feb 2022 23:36:25 +0000 From: David Laight To: 'Borislav Petkov' , Hugh Dickins CC: Peter Zijlstra , "linux-kernel@vger.kernel.org" , "x86@kernel.org" Subject: RE: x86: should clear_user() have alternatives? Thread-Topic: x86: should clear_user() have alternatives? Thread-Index: AQHYHOq85MEK9qlbxkOnyE8hF1HtfqyKS9+Q Date: Tue, 8 Feb 2022 23:36:25 +0000 Message-ID: References: <2f5ca5e4-e250-a41c-11fb-a7f4ebc7e1c9@google.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 RnJvbTogQm9yaXNsYXYgUGV0a292DQo+IFNlbnQ6IDA4IEZ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