Received: by 10.213.65.68 with SMTP id h4csp1156796imn; Wed, 21 Mar 2018 04:12:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELukjRMWsVOoirjfFhfUDjZ3GvIWihltUqRG8tlhVc5Snr1HKXI7tQRWFyu3yEg5XvSpEZx6 X-Received: by 10.98.200.9 with SMTP id z9mr10573803pff.128.1521630747903; Wed, 21 Mar 2018 04:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521630747; cv=none; d=google.com; s=arc-20160816; b=CFQehix51/1Zv4dxESyFMDZU/pdC8NCKLVhCFM0ezpd2MvMVRt1L2CJc50O7fm+yGn dKcdzsaNloy6BkzxfdPbzEVaUFoJcPACUT0cTa248KVkuaqFLJRBFgCdpnHSr2wrieB6 tlOOpL4hlL92pwbA5TvDdVfIDs2jPbYMowwsf32VzTXYmcqD99reg7qzDUylt9qWe5n9 mwRASfI4a1v9BFspyiZwrnO3b+Zz8jm4JfKnAqh7gDN7lLQhN5ALPKJBdVBiKLDGhGQF ddtVIVU2gH37If9IO9ePycI0vE0xbv2WqvYEH6VGgsbzArxBQFw9SQO0Wq3SinEg+eyi rlnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=AJC43pDasK/yqxjpMWJavXRouQY/efEacivds913kOY=; b=w/RMF1VBn0BRFA60sceBdP5sb/3qeK4Y7Z9hvvdk+sP/oUzLaSM9fz01IfgOBE8lGt Jhwl52JSUJYeKnhwt771snoQrET5NRmOpmFVcPfVKr0l1i2sELifnocYXupAI1U72XIz 6ctqmncoqxXj9Zn2ZuPva7tKyx7uSFiSv58pFlzAgsijNIDTLgaq2nACNTaOB4f3AXsF PgBf5XVRHJhvK5gVmhR40M0pZ5jSUYSo7VhK/1LrwpctFkoem3PX9lBK17uUopxAR70m NU7vwxF6q1rlxNa5j9PLeXATgdDHSkuZzOfjlqF5pW0E/4aB7jgWG8S72/s1RR+78+/U j1tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I37Twh9b; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9-v6si654449plt.438.2018.03.21.04.12.14; Wed, 21 Mar 2018 04:12:27 -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=pass header.i=@gmail.com header.s=20161025 header.b=I37Twh9b; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751814AbeCULLS (ORCPT + 99 others); Wed, 21 Mar 2018 07:11:18 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35534 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751717AbeCULLN (ORCPT ); Wed, 21 Mar 2018 07:11:13 -0400 Received: by mail-lf0-f66.google.com with SMTP id t132-v6so7231449lfe.2; Wed, 21 Mar 2018 04:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=AJC43pDasK/yqxjpMWJavXRouQY/efEacivds913kOY=; b=I37Twh9baoC8e8ZgVA7gJA718f96qLAxsr0CKj6+fjZ7dBGB5fOaU3soN8Chdcj+QN Rq7MNi0kcYmdl9CP+CAl4Eyo+5oyUeGb04k8cP4rOdMfzWB/IQ/V5GQ1anyp6oMfGYFz cYLEFtEwF+KkYdIT00Djxtu+hQHXuhgm/FvmHH1p7YkGSPRoZ+ETzxAryhIAysV2/5E2 uv/NxeQFDU5t5Ogn0ihk+AYf/cMo7tg+45l12lUMvob/D3L9x/e65dYoA6/fUta9Odo2 R+ApL2iUcoTGw3dfKR8hxFbNrCblewp426d/50AFZ006ACoKn0AbmJ/PdadfB7H0DGTA OHYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=AJC43pDasK/yqxjpMWJavXRouQY/efEacivds913kOY=; b=hEwktvVYgaQu5kTTkvdGTkP8yWoXt5+iNw4H9U5CUGdiUCJAggw2P1QOUx3qchXwYQ +G1F3xahP3z2YlE7XA1TM0XnOpKudkH5QDCIM4HPAVMCjxwyeTHTsCULpgyRpxkrZmHm a3AFWLukIRK29WjmWPE9I80xSHk/IzlxLSNJKH5QjTfzC8pFN9BDZbI5Zu+jXf6GM3wh EOHJJKqxr6D75Htgfu23RsO0bj/juZyKwpr3if556mnBxOYLOhAsBV738D2NhZwva5xp ++UDhtJCmj0eBDfvVkiMOqWGrdSiEl0muaZde6jLK2euGAJHbViXbZGYb3bBWiEfj5QO Id1w== X-Gm-Message-State: AElRT7HnJIegnc2+xSfYz0FtxjLwB87o8/E7+/auOhlfIXy+BmMMZ9Kp qj1hFEpGsVguXK3XgHdI4zHxEK2cR1k7/5vqVvU= X-Received: by 2002:a19:ce8f:: with SMTP id e137-v6mr13992094lfg.95.1521630671684; Wed, 21 Mar 2018 04:11:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.115.11 with HTTP; Wed, 21 Mar 2018 04:11:10 -0700 (PDT) In-Reply-To: <1521587979.23626.117.camel@codethink.co.uk> 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> From: =?UTF-8?B?546L6YeR5rWm?= Date: Wed, 21 Mar 2018 12:11:10 +0100 Message-ID: Subject: Re: [PATCH 4.4 29/63] watchdog: hpwdt: fix unused variable warning To: Ben Hutchings Cc: Greg Kroah-Hartman , Jerry Hoemann , LKML , "v3.14+, only the raid10 part" , Arnd Bergmann , Guenter Roeck , Wim Van Sebroeck Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: 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