Received: by 10.223.185.116 with SMTP id b49csp308819wrg; Fri, 2 Mar 2018 19:56:35 -0800 (PST) X-Google-Smtp-Source: AG47ELv5IfGZI/YYxzXxZW5j8Fmiwl+tulDPpj/yCP9rbfColoKvVHfEm/JI6lG5Xg7y522XtrDF X-Received: by 10.99.95.201 with SMTP id t192mr6379897pgb.313.1520049395421; Fri, 02 Mar 2018 19:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520049395; cv=none; d=google.com; s=arc-20160816; b=zIGVZcQMD3Bcu9YVpYU/O3XEjdJiBsLIkacu8/gMSOW4DY1h3a+KhTa3iy6YSvrOm1 hVY1uiERRqoQ+lI5qTFi+VhM6/48GGWtPRwDfVCnR9xf7EUbKGjJcOJ73sCfuyZckJFa S1rNNl8R6oVLPMRIKxFTk3fwio8igFU9uAQ9u4VeiegGzhi99P0kSkx6Tu1hWdJ0l7dB 7wBYJx29CwrkwbWtZaY5QpreeXYqTETL2PpiiKnJMtxl9d/TmbeQZ0DIaubkrDvDgwEw RK3Hp9k3GVkAZ9W8s7HURBmC8aiawctWcPlpBz07/KeispYfAouN6XVzhUtRIT2RuFyM M2Kw== 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=5mtU1Qc26aeoEC3yyOdSV9DOHqlHuai9RGNHR9FlS64=; b=EzgJacQg4Gd+ZdWTz9GebKYbRBeggGi9RJoj1azEG1xFRmOENjDItfSe9EUOrKwA3s GN+p49RCGomjxCbfHGB5JirVVpFGkm6f5xwN2uFTZ/1ah1D7Whq9um/aeqcrzuzsYoyG IFXI42fPO32NTRcgv1dcCI5VWBQ9TvbybwLTM1sduaw5WAZZvGODaS27SujLwqOvsyWv W7H2w4lPvDQsWUrfDrs2FePFLsnlLTCO8u3QdQc8byHmWRvLJytWycEh7Wy0idtVSL2Y r/M4mKHc2XbLjkQBqEZGQ/rOP1K6YOkrneo7Gm91WdwqX99lXTM/1NMxAtBpuwSvL1A3 dNJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E+DvBr8o; 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 s9-v6si5835536plr.57.2018.03.02.19.56.21; Fri, 02 Mar 2018 19:56:35 -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=E+DvBr8o; 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 S933351AbeCCAwV (ORCPT + 99 others); Fri, 2 Mar 2018 19:52:21 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:33090 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932208AbeCCAwU (ORCPT ); Fri, 2 Mar 2018 19:52:20 -0500 Received: by mail-pl0-f66.google.com with SMTP id c11-v6so6643226plo.0 for ; Fri, 02 Mar 2018 16:52:19 -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=5mtU1Qc26aeoEC3yyOdSV9DOHqlHuai9RGNHR9FlS64=; b=E+DvBr8oJItw97HooSYE4asiOd3CqXPMoCIrfgytHr3vlAR8jec/Tlfj9GjuCMPnpH HxGAw92xvjoG1ZXGcodmZCt2O/r39PtqMHBz+BaLd48CvKoQEi22hEZcIKFTMI2yOtSS ZIFB+Yp1Fy4w4/SyRcQ9aPHdq8VmKzyPZSo18= 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=5mtU1Qc26aeoEC3yyOdSV9DOHqlHuai9RGNHR9FlS64=; b=XzKD8wZQsyq28KKVKJFObIm6e7pC83lB6UgH/ewQWQ1+WDnrRfsdF9W6QeuoE8xN2V EKhKlap4flZiOMO0IBhzbZPHik/2PF5XXAnm0/2UPuRzKsBeeKnD/lMICt8uSGQ0jkG6 b6gwdEekntE7kGyhNG3q2AU1Oi9f2ZcoZMHcy+6sxBvni/mBzp2kyJ83vLMIBuBXnB2U siQadwVEbCkS4qt7jiHD8zAblRzxSnGyWrVqUrm3BrYk0wsj2cXSFQDb3l7xg+dQVG0r eQ6SKEu6cU6vqr3ViSrKLuIgqaEPmAvyuV9VyaRwiVmQcZU3mUdmQms1mFjdBzoUQHV0 SD8g== X-Gm-Message-State: APf1xPDI3swUjjh8zegLH3EZTssm53GvrM6raelsL0+RJki+JkM2BiKE kRy7IwL3N+krcBkK6f3eqscDYAzQWRA= X-Received: by 2002:a17:902:a981:: with SMTP id bh1-v6mr6536102plb.298.1520038339295; Fri, 02 Mar 2018 16:52:19 -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 q87sm14807110pfa.29.2018.03.02.16.52.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Mar 2018 16:52:18 -0800 (PST) Subject: Re: [PATCH 00/45] arm Spectre fix backport review for LTS 4.9 To: Marc Zyngier Cc: Greg KH , Will Deacon , 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> <86r2p23h3v.wl-marc.zyngier@arm.com> From: Alex Shi Message-ID: Date: Sat, 3 Mar 2018 08:52:07 +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: <86r2p23h3v.wl-marc.zyngier@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:29 PM, Marc Zyngier wrote: > On Fri, 02 Mar 2018 09:02:32 +0000, > Alex Shi wrote: >> >> >> >> On 03/02/2018 12:46 AM, Greg KH wrote: >>> On Thu, Mar 01, 2018 at 08:53:37PM +0800, Alex Shi wrote: >>>> Hi All, >>>> >>>> Resent without non-upstream patches. >>>> >>>> This backport patchset fixed the spectre issue, it's original branch: >>>> https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/log/?h=kpti >>>> A few dependency or fixingpatches are also picked up, if they are necessary >>>> and no functional changes. >>>> >>>> No bug found from kernelci.org and lkft testing. It also could be gotten from: >>>> >>>> git://git.linaro.org/kernel/linux-linaro-stable.git v4.9-spectre-upstream-only >>> >>> Also, how did you test, what platforms did you test, and did you test >>> that this actually did fix the spectre issue on your platforms? If so, >>> what test did you use? >>> >> >> On the kernelci, there are 18 kinds of platoforms with different >> configure tested booting, detailed info is here: >> https://kernelci.org/boot/all/job/lsk/branch/linux-linaro-lsk-v4.9-test/kernel/lsk-v4.9-17.03-4844-g6f782cff6edb/ >> >> I also tested the qemu boot on hikey620. and normal boot on > > Did you try QEMU in conjunction with KVM? Or just in emulation? Many many thanks for response! Yes, I tried both of type boot with or w/o KVM. Both works. > >> hikey620/db410c/junor2. The other testing include the LKFT testing which >> is reported by email, same as test for LTS. None of testing show >> regressions. >> >> >> 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... > > What are you talking about? What's that story about NOPs? There are > clear mitigation guidelines for ARM cores, please don't make things > up. Oops, sorry for misunderstanding! what's I meaning is, among many kind of solution to mitigation issues, like ATF changes, compiler change, BT changes, 'nop' is interesting for me. Sorry for bad expression. Regards Alex