Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1180048imj; Thu, 14 Feb 2019 02:31:32 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaqe28w4sVJOgjBESuE74o9j8EH6CtcgdpoquDwUSxNgajgSdFM+wE3Zl7pRubFZynwyZtI X-Received: by 2002:a62:2c4d:: with SMTP id s74mr3265645pfs.6.1550140292217; Thu, 14 Feb 2019 02:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550140292; cv=none; d=google.com; s=arc-20160816; b=XS0VWyxgjejxE9e1sWJAUJRxuTj+K4vPFuETwtm7FqhX758Ut7sLaimGKhdV89oTJJ rg93pG6tJKEbS42xO6bpnY2VBdKyGrcmgNrPyKNZOU2GAhKgSTBSDwzn76rFYNfHXwca VC16ZB4ZIIeLEWUcoWZ3ug2MXsQh52nCsK+P7AqAdKW18S0u1YNDnh5uWNGXPPzYchwV /E9syWmVzTnjQ11cDyWRcqN25titI+HFEGjeX2KL4HE6dG162Wc9uvAlNqfvJb4EZyFX yal4dP+9Ujq5tiogcVFEjIOJubYJZzP8rCAdh9phD5ng+RovnymFSFPV+4Hs+CNsHL1z fftQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=UZUWVxCWrQrbsOUy2e1U0Sl4o1q/8Eqt6om0AFG+LA0=; b=gH42Xr+oDw8xsATA2iUikHSVc55jE4Vbqybl0F65QdraQIIHL4Hz0K31nAK2yALKwn UgljiUZE73HkaRuHEyYTiPEkxtK++6At80bgrqMNo3zTNYXa+OxjvIgThZEs2kk1Qf3C d7xrmF7QZj+uc1CSwb0CxzaS4eWt9lU9ZJ8OvtDBmpqNfK39wbUUAoYMBBYtcE0V92EW p5D4DPDaMLQVUhXozaivNPZxc3a/B+T/ZBlqEsheqx/zMuz2pzIk0iflKQQ1Tu+rlT9U 5khgivFEOaZIjjKMEQCedu0XpYrF+ajznVWEG+28LjjuODdzq5s+2Aofhz4h1vWspMbU mBFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oY7D8sXi; 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 a12si2341163pll.112.2019.02.14.02.31.16; Thu, 14 Feb 2019 02:31:32 -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=oY7D8sXi; 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 S2393880AbfBNCK2 (ORCPT + 99 others); Wed, 13 Feb 2019 21:10:28 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:38353 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726295AbfBNCKZ (ORCPT ); Wed, 13 Feb 2019 21:10:25 -0500 Received: by mail-qt1-f196.google.com with SMTP id 2so5198658qtb.5 for ; Wed, 13 Feb 2019 18:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=UZUWVxCWrQrbsOUy2e1U0Sl4o1q/8Eqt6om0AFG+LA0=; b=oY7D8sXiNd5usUh9oroDx1SLTuG6WMdZ8aRWzq/0gECW9XLkvCKByQOspC1a4dhBio zXxoHyo5Y93itmx5JRrkv+K+jTGCo34/z8S7fIGws0tJMCTDzeVqMfAbVslVldkhjoDs wnbwrdGqGrPnUvsyYjPHt3Os1AFX3MiMio5VySr71ltsfl26ddIJpnTIJSfQuw5gFwZa p9FB0xliv7RzuJ1ZS6OsbXYGlVMPb3jAKb8k4vEd2mT1nKfmLEWENxSysIzFIVpUrAAi eKK5AJYzDxfq6+rdtdc/sxqsotL7Uu/FRdEuHtjtlGCAsw2+9+DR+VGZ4zF15kVxK9Yk lYTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UZUWVxCWrQrbsOUy2e1U0Sl4o1q/8Eqt6om0AFG+LA0=; b=HDucWxvYzeAKUcVBS4SK16DWrgZgZENfzlhAh5Aedt4t3qbTqbAoWyId8vnuU0oLoc xLUk3ODKM/JNO9PLNnc3uHxT8/wZexA9wMya16Om9n/KS+XuEQJOgqGaYAxMPb/Gngq/ MVLmpJHzFwdIhdEdJgh/eShU/iXAIdcz5cWZ3zzbuyPZ15URQWkAq3Yxi9cA+HONed1n mQ1pab6F/urHAjx7IT3xVC3go0US6fLrU0e1nlXMxqT6uy6jLXyQHD+hdlQFtbng+9I7 Z5vnaZSjxjZjioFeFIapuwk3FmdpeUOBmBheNV2Q34jhduUNgjRjf/LUTV6AF6vVN7yy wrug== X-Gm-Message-State: AHQUAuY6DhqGqQb28DeRZoP5Z1NkhT5nLAo+4Z6Iqm7FsNr+exf8oI2A muwBmQcJ0CmG/2jQPokz/21uqw== X-Received: by 2002:ac8:34ed:: with SMTP id x42mr1062166qtb.173.1550110224757; Wed, 13 Feb 2019 18:10:24 -0800 (PST) Received: from localhost.localdomain (pool-72-71-243-63.cncdnh.fast00.myfairpoint.net. [72.71.243.63]) by smtp.googlemail.com with ESMTPSA id d63sm1091575qka.22.2019.02.13.18.10.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 18:10:24 -0800 (PST) From: David Long To: stable@vger.kernel.org, Russell King - ARM Linux , Florian Fainelli , Julien Thierry , Tony Lindgren , Marc Zyngier , Greg KH , Mark Rutland Cc: Will Deacon , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH 4.14 V2 00/17] V4.14 backport of more 32-bit arm spectre patches Date: Wed, 13 Feb 2019 21:10:05 -0500 Message-Id: <20190214021022.5313-1-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "David A. Long" V4.14 backport of spectre patches from Russell M. King's spectre branch. Patches have been kvm-unit-test'ed on an arndale, run through kernelci, and handed off to ARM for functional testing. Julien Thierry (10): ARM: 8789/1: signal: copy registers using __copy_to_user() ARM: 8790/1: signal: always use __copy_to_user to save iwmmxt context ARM: 8791/1: vfp: use __copy_to_user() when saving VFP state ARM: 8792/1: oabi-compat: copy oabi events using __copy_to_user() ARM: 8793/1: signal: replace __put_user_error with __put_user ARM: 8794/1: uaccess: Prevent speculative use of the current addr_limit ARM: 8795/1: spectre-v1.1: use put_user() for __put_user() ARM: 8796/1: spectre-v1,v1.1: provide helpers for address sanitization ARM: 8797/1: spectre-v1.1: harden __copy_to_user ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc Russell King (7): ARM: make lookup_processor_type() non-__init ARM: split out processor lookup ARM: clean up per-processor check_bugs method call ARM: add PROC_VTABLE and PROC_TABLE macros ARM: spectre-v2: per-CPU vtables to work around big.Little systems ARM: ensure that processor vtables is not lost after boot ARM: fix the cockup in the previous patch arch/arm/include/asm/assembler.h | 11 ++++ arch/arm/include/asm/cputype.h | 1 + arch/arm/include/asm/proc-fns.h | 61 ++++++++++++++++++----- arch/arm/include/asm/thread_info.h | 4 +- arch/arm/include/asm/uaccess.h | 49 +++++++++++++++--- arch/arm/kernel/bugs.c | 4 +- arch/arm/kernel/head-common.S | 6 +-- arch/arm/kernel/setup.c | 40 +++++++++------ arch/arm/kernel/signal.c | 80 ++++++++++++++++-------------- arch/arm/kernel/smp.c | 31 ++++++++++++ arch/arm/kernel/sys_oabi-compat.c | 8 ++- arch/arm/lib/copy_from_user.S | 6 +-- arch/arm/lib/copy_to_user.S | 6 ++- arch/arm/lib/uaccess_with_memcpy.c | 3 +- arch/arm/mm/proc-macros.S | 10 ++++ arch/arm/mm/proc-v7-bugs.c | 17 +------ arch/arm/vfp/vfpmodule.c | 20 +++----- 17 files changed, 245 insertions(+), 112 deletions(-) -- 2.17.1