Received: by 10.223.185.116 with SMTP id b49csp309080wrg; Fri, 2 Mar 2018 19:57:02 -0800 (PST) X-Google-Smtp-Source: AG47ELuO943W+gb6BaID6m+UPc89sof5xLAIKPeBR2BjKQ8qZ2vZZj/cgFx7mXabBwAPO/mviDYP X-Received: by 2002:a17:902:7613:: with SMTP id k19-v6mr140947pll.251.1520049422377; Fri, 02 Mar 2018 19:57:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520049422; cv=none; d=google.com; s=arc-20160816; b=B029Jm5ED473cOUO157ImCGWcsM37R+EkibzUvzybQWmI2u6vwyTBrFlCvtvHzIs0C luUx2EDG1doFtEa7pAlvRzepcnXempLXs0HB5WRQ2QL9IgEGzvLJw3DNrk6E71z/0Phj nMvp83eoDv2nxMxRqMfpNOJS4GRB1VSYR6eoq/xci39zeY19X6xdWj9aVI09XiPYvBNV NYkMMZ84zBj5QAw43euQWv3JLZnEuavbdkonq2Fx0ikk0jFoZv+cVEFbPLOT/de2RoVq IuaXg2ADZ9WMaZ0D6cak/ZZJ2EWnsvmY/fOQNsNbxBpdhAt7+V/2DL7IcUidaSba7BV2 R7EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=7oFJ1hLMXeLEH4Mumm8V3lGsMwYIl5SiaBNQjpqfxOA=; b=ud2qgBqhv8/0YRLP2tiFZ7QrePtCYcx1Rv+CP+Nb/PdudoFxLYf43V3fzJ0Picwbhe Y1ptyrXVP6E8EX7qmqxEmhcc49jNkdjUjgInRyb3QH4FGv7Yx7nxgMToYg410M48eQ7v +j281a5GSg2tktQDz6FdZFTSZOEfVhZ5QN31cmUZc6d5RNGG8iwBv2EIerHmnw+6v89i P7aYUDnVTflnmBSLK19sLmoWhCfnTG1AUo2/ovRb/+QcUfsLkKpxD3S0FtLahBqNOFsg sCQVbhshlc0jxEBXOlzxYebHT9K2003/yQ/ysJ3NilvQ6VubxBsFATL8ClJbwPEWoik5 6hRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IZUBn5f7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j33-v6si5854446pld.442.2018.03.02.19.56.48; Fri, 02 Mar 2018 19:57:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IZUBn5f7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935676AbeCCAy0 (ORCPT + 99 others); Fri, 2 Mar 2018 19:54:26 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:38965 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935662AbeCCAyV (ORCPT ); Fri, 2 Mar 2018 19:54:21 -0500 Received: by mail-pf0-f193.google.com with SMTP id u5so4695920pfh.6 for ; Fri, 02 Mar 2018 16:54:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7oFJ1hLMXeLEH4Mumm8V3lGsMwYIl5SiaBNQjpqfxOA=; b=IZUBn5f7L1r3OwA6LVO4XnbGZevVRt28E8P8NsJpk0QytxCNMQq8yXUtQS8C8qd9TK IJOx9m0ccXYkR4lNvYOfX3G6hOnNaZKGYoUQjic347Yg+8dCjeYXKTRrofCdW1rjldO2 6lSukki2zHj0alfLXDHGH3hlJBeyMSLb/euLE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7oFJ1hLMXeLEH4Mumm8V3lGsMwYIl5SiaBNQjpqfxOA=; b=UF5mWtVUzZnt8AQUA6LTvMFk1+gHIrb4ABQjsKnkVWKgTky9Y1eSSzu8cV+1Agjwdh Oji4lHi+nXiY3YKJoNO45J+mp6YpgOHxj0D4fd00jbmwdnvw2DEy/GPqPit78VeCI1bE nHjtCb36TXuYOt8f1TTglnIEYoHm8QBBH1w1xMZV8n24rHcZvJ7gvGAWulBUo4vkrQIB p3IiycVpP1wZdQuXJr/5cZ2P63tyjKYnnZUFiE59qnde9FSt7wEExJYPQ6xbjgP3AP1d 7kFgj5zfzz7v1bB60keve9wHlU7qvR0y7HrD8exHhWVn77um/iMfs3FxBiYmjav4tmp+ 4Jqg== X-Gm-Message-State: APf1xPBFVMpRv4k9mw88PhE5bzLGmsZLVO7oq9BqZFUGGWZvQiIeVHGp Wm3/WKMccbeNFKNcBefOGxkzqGGA7a4= X-Received: by 10.101.90.140 with SMTP id c12mr5849832pgt.56.1520038460527; Fri, 02 Mar 2018 16:54:20 -0800 (PST) Received: from [192.168.1.225] (176.122.172.82.16clouds.com. [176.122.172.82]) by smtp.gmail.com with ESMTPSA id w63sm12381269pgb.80.2018.03.02.16.54.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Mar 2018 16:54:19 -0800 (PST) Subject: Re: [PATCH 00/45] arm Spectre fix backport review for LTS 4.9 To: Will Deacon Cc: Greg KH , Marc Zyngier , Ard Biesheuvel , Catalin Marinas , stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <1519908862-11425-1-git-send-email-alex.shi@linaro.org> <20180301164630.GB23321@kroah.com> <20180302103046.GC19323@arm.com> From: Alex Shi Message-ID: Date: Sat, 3 Mar 2018 08:54:10 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180302103046.GC19323@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/02/2018 06:30 PM, Will Deacon wrote: > On Fri, Mar 02, 2018 at 05:02:32PM +0800, Alex Shi wrote: >> As testing the spectre bug fix, that's a good question. I also asked >> this question to original patch authors, like Marc. They said they just >> figure out these patches could block spectre or meltdown issue. From my >> side, I just reproduced the process internal spectre. But all fix on arm >> can not resolve the user space internal spectre. It can block from user >> to kernel or kernel to user spectre according the code purose. So I >> believe these patch could do their job. And arm cpu would drop the >> spectre branches if it has 20+ 'nop' instructions... > > Since this is archived on a public list and I don't want people to rely on > this, no, you cannot rely on "20+ 'nop' instructions" to work around > spectre on arm/arm64. It might prevent a particular PoC working on a > particular SoC, but it's fragile at best. > Thanks for comments, Will! Yes, I full understand the difference between SoCs. Thanks for point it out! Regards Alex