Received: by 10.213.65.68 with SMTP id h4csp18876imn; Wed, 21 Mar 2018 11:20:10 -0700 (PDT) X-Google-Smtp-Source: AG47ELvl72gyrnwFtKApV5G3IzGTgwsLBCEX1N4N3zL2k/iOW7A88AD+Yk7Fo6R2itHPqWGda85f X-Received: by 2002:a17:902:5a87:: with SMTP id r7-v6mr17035940pli.173.1521656410267; Wed, 21 Mar 2018 11:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521656410; cv=none; d=google.com; s=arc-20160816; b=Dulh4rEHi5fKzHHsSxWVP8TBrPxOZ7ZMytv5H6Lv9Wx460jEvHatZe8lhpixf845AI R2MaXQWEegpuIKZLRY3H7QNu6yhX88P8XlgORzD5hkLM2xO6HbzlbLduvmxLrDm0WBxg bodt6uroC/W+J969qugMH8bNsf4D+sGsbwtq2WgwNJ5KzCWxG37sYPu6O66CtMXhqmSb vy6uaOe79XvJnqvjkIhJkWZOl5E0OHcdMq+q9o+J7PNW72XI0DEG3PyD9X/Bldb9HoIV XB4b/7FXrGslOhBOdIXDA4dxS9NsG4p2vn7rNWKDYMxVWIZrs4pJzQCwbV/MK/WSJzWr 8Vkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=JNkEIapZtf0A4EyucTuVnRSnRm5fVNKKV51MarxvIcw=; b=c6NSbrmMUMneqYTR57ovSB5lGb8BwzJ3YWgVC98125G2eE2XoBq+CSI4WMYu1WLXwb EHxy7RUVp2WIGKl3JS6boU4kskckGJdN8ZquwjR2t1XjhKRn3iMZhgjQnfBNH9aMac7C tJbW0qshzhCzLB7haqkyk3ON6lRGg+IoCWnlwEuKhSdefxvWRzM1LbgAiOEH6WE5e8jf oj1Chr0h7avVGM9KawLgWvTdV1x92Ja62mdny1GElAzihwVtKjA7zi8taoxxxTjpzTJG 049z3eaj8QGOqXVJ4E565RGUErZ2JBUOIKrDbPqfSvok6G94rxfg38utMetmqJWKhprX NwzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=O0rlqW6I; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si4444657plw.587.2018.03.21.11.19.55; Wed, 21 Mar 2018 11:20:10 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=O0rlqW6I; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752629AbeCUSTC (ORCPT + 99 others); Wed, 21 Mar 2018 14:19:02 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:39531 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752517AbeCUSS7 (ORCPT ); Wed, 21 Mar 2018 14:18:59 -0400 Received: by mail-pl0-f66.google.com with SMTP id k22-v6so3623217pls.6; Wed, 21 Mar 2018 11:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=JNkEIapZtf0A4EyucTuVnRSnRm5fVNKKV51MarxvIcw=; b=O0rlqW6IKtDzL3exAcCXVTE2ucviDpI/mp5Qd3wUj0IctbyiH4cTE9mLABcp3xGQ7y ntt0F8K7mzyMHVkvDeyA9K7RfLKxV5A98RUXQ6dCtML+Y5NzvcBLpB+Pb5KCC6R/vtcw skghwxYa+7AW0/NqGJ72sKueVHHyTF5w8ZUVKMfNkr292GMPDRuuQS78oxAwgL4MHEqK kN0dcITAIgQusvHWhaHLczFxv/qvxoVRhwuh4B84Ts4X7mm08uaws2mD2ssk4hTbS8Wa YqmqwsRO3UT9/xL9W3Irp1/Z9uqsUNESYkYOpotKKiVH+KOYZkYpTfIjGE94IGthQLMq IL3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=JNkEIapZtf0A4EyucTuVnRSnRm5fVNKKV51MarxvIcw=; b=rheeVy9ce12ZW7L7s4RddPM3qEhrtohFVYdlBmuAQRV8L124BoggONuAd8IjoJ9Shm gxrLTLN5XDmodu4Uc/EzgO15lR86U1rNiFTLIthZWR4WOyxl+eaaZ5aP3ZMZI42pFUl2 k8w2NpwPVOFVGOO5JaTGmAAQAKNOSXQTVVYrxsgWZl9DJ6N4qCvED4GOkBJvu6fxIkB3 5+lI66W7+1bgZhBYHwzCMhdHeDhc2/l70WoTve4ibY2Lhn6tjkcebIKRZbn1fQ6cqEiZ LcRJH3Gez22vh9K6Tv5T0acE+g1eoCW7jt006T9Cp/E0XuFUeqDgSbduz4XYsgVHNFnD jmmg== X-Gm-Message-State: AElRT7HgYYzxlEaykByJE060eokPMyyJvPyN97V60Lqo0C6RaDkhaEPY BPPEXOB8rdFnN0kIyG/GKy0= X-Received: by 2002:a17:902:7c18:: with SMTP id x24-v6mr15898885pll.112.1521656338619; Wed, 21 Mar 2018 11:18:58 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id h75sm10078460pfh.28.2018.03.21.11.18.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Mar 2018 11:18:57 -0700 (PDT) Date: Wed, 21 Mar 2018 11:18:56 -0700 From: Guenter Roeck To: =?utf-8?B?546L6YeR5rWm?= Cc: Ben Hutchings , Greg Kroah-Hartman , Jerry Hoemann , LKML , "v3.14+, only the raid10 part" , Arnd Bergmann , Wim Van Sebroeck Subject: Re: [PATCH 4.4 29/63] watchdog: hpwdt: fix unused variable warning Message-ID: <20180321181856.GA7890@roeck-us.net> References: <20180316152259.964532775@linuxfoundation.org> <20180316152303.262268098@linuxfoundation.org> <20180316225537.GA5989@anatevka.americas.hpqcorp.net> <20180318101416.GD13276@kroah.com> <1521587979.23626.117.camel@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 21, 2018 at 12:11:10PM +0100, 王金浦 wrote: > 2018-03-21 0:19 GMT+01:00 Ben Hutchings : > > On Sun, 2018-03-18 at 11:14 +0100, Greg Kroah-Hartman wrote: > >> On Fri, Mar 16, 2018 at 04:55:37PM -0600, Jerry Hoemann wrote: > >> > > >> > Greg, > >> > > >> > Sorry, if I'm missing something, but I see 3 patches for > >> > hpwdt queued up for 4.4: > >> > > >> > queue-4.4/watchdog-hpwdt-fix-unused-variable-warning.patch > >> > queue-4.4/watchdog-hpwdt-smbios-check.patch > >> > queue-4.4/watchdog-hpwdt-check-source-of-nmi.patch > >> > > >> > > >> > Shouldn't there also be a 4.4 patch for > >> > > >> > commit 2b3d89b402b085b08498e896c65267a145bed486 > >> > watchdog: hpwdt: Remove legacy NMI sourcing. > >> > > >> > As there was for 4.15, 4.14, and 4.9? > >> > >> It does not apply to the 4.4.y kernel branch. If you feel it should be > >> there, please provide a working backport. > >> > >> > commit 2b3d89b40 is the Spectre related patch. > >> > >> If you look closely, not many Spectre-related patches are merged into > >> 4.4.y as no one has taken the time to do the backporting. I thought > >> someone was working on this, but odds are they just moved to 4.9.y or > >> 4.14.y as everyone really should if they care about these issues with > >> their platforms. > >> > >> So if you care about Spectre, I strongly recommend using 4.14.y or > >> newer. > > > > I think you have most of the Spectre stuff aside from microcode > > supported fixes. These are still missing on the 4.4 branch though: > > > > 8fa80c503b48 nospec: Move array_index_nospec() parameter checking into separate macro > > 1d91c1d2c80c nospec: Kill array_index_nospec_mask_check() > > > > I think there may also be some extra uaccess functions that didn't get > > the nospec treatment. > > > > I'll probably look into backporting the microcode stuff to the older > > branches (4.4, then 3.16 and 3.2) at some point. > > > > Ben. > > > > -- > > Ben Hutchings > > Software Developer, Codethink Ltd. > > > Hi, Ben, > > It will be great, if you can backport spectre fixes into 4.4, I'm > happy to test your port. > The patch list I gathered when I did porting to 4.4: If you completed the port to v4.4 already, can you make it available for others ? Thanks, Guenter > d3eba77440 x86/cpufeatures: Add CPUID_7_EDX CPUID leaf > 40532f65cc x86/cpufeatures: Add Intel feature bits for Speculatio > c26a6bea26 x86/cpufeatures: Add AMD feature bits for Speculation > Control > af57d43c908 x86/msr: Add definitions for new speculation control > a8799fd14d x86/pti: Do not enable PTI on CPUs which are not > vulnerable to Meltdown > 6c5e49150a x86/cpufeature: Blacklist SPEC_CTRL/PRED_CMD on early > Spectre v2 microcodes > 31fd9eda7f6 x86/speculation: Add basic IBPB (Indirect Branch > Prediction Barrier) support > 77b3b3ee238 x86/cpufeatures: Clean up Spectre v2 related CPUID > flags > 77d1424d2fb x86/retpoline: Simplify vmexit_fill_RSB() > d7f8d17406d x86/entry/64: Remove the SYSCALL64 fast path > 572e509178 x86/entry/64: Push extra regs right away > e06d7bfb223 x86: Introduce __uaccess_begin_nospec() and > uaccess_try_nospec > ae75f83e79 x86/usercopy: Replace open coded stac/clac with > __uaccess_{begin, end} > 065eae4be83 x86/uaccess: Use __uaccess_begin_nospec() and > uaccess_try_nospec > cda6b6074cc6f9 x86/cpuid: Fix up "virtual" IBRS/IBPB/STIBP feature > bits on Intel > 4b234a253e52 x86/pti: Mark constant arrays as __initconst > b7649e1776706 KVM: nVMX: mark vmcs12 pages dirty on L2 exit > 46e24dfc2df KVM: nVMX: Eliminate vmcs02 pool > ff546f9d83d3 KVM: VMX: introduce alloc_loaded_vmcs > 6236b782eba37 KVM: VMX: make MSR bitmaps per-VCPU > 7013129a403 KVM/x86: Add IBPB support > 755502f810c6 KVM/VMX: Emulate MSR_IA32_ARCH_CAPABILITIES > e5a83419c957 KVM/VMX: Allow direct access to MSR_IA32_SPEC_CTRL > fc00dde96099a1 KVM/SVM: Allow direct access to MSR_IA32_SPEC_CTRL > > commit id is from linux-4.9.y > > Might be more due to dependency. > > Thanks, > Jack Wang