From patchwork Thu Feb 14 02:10:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 158273 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp793623jaa; Wed, 13 Feb 2019 18:10:25 -0800 (PST) X-Received: by 2002:a0c:ba1f:: with SMTP id w31mr1029806qvf.81.1550110225248; Wed, 13 Feb 2019 18:10:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550110225; cv=none; d=google.com; s=arc-20160816; b=yAUDvqSpUNN9QXs5gvz3Q0lM1t/ASYENQwa5Ek7/1knQpoZgyEBKExcedwnKU2a5+Z 2gmr5U8PNFe2GZE5Rf+1427LHEX487jHzwIMyJcXWTRV4qoVU2B9zScl/Zju33QP3RZP GN5eHsz2tJKcYIeYEAbyHB0INwnx7oche21p2xUcZu1oXk/srhOxvSxp0XFcfgzTv0ac yY2rBNltYGFjBigZCleep/ypIuc7VPEh1+djMjsF3fJtPBhQLOafKGpKkJOdfo6ZqJcq bZIhXJH7GpIYcdo/ljuDssT7dyZLykN8RaM9vYnIfQayibXv8q4GbepZkHbe2KqNaMKz 17Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=UZUWVxCWrQrbsOUy2e1U0Sl4o1q/8Eqt6om0AFG+LA0=; b=xcTHb2I92nlDCAF1Z4i99IUPty61vsgnaIaWnmTjYSzTuygZDhzQOgvzMDN0rGTijQ RL6/usLL75Qj5f578DrJ0mhVsxm6E/GcV1/cuWxTAkChAUxXn2/fm3j7G65A/fI5xsWa Dymr54vEtYQxqVEEQtaS77Ps+3X/j7h3YsNpA/ttxnd0S9LvRh/g116jbe7Ofr3e8rbl nk88qG6+3Yy+bxYBEkQD/WNT5Zwga53QLh6YAzaBjyJOg+B5nl7ve+iw6DtGQLvGgawC 4wVWD+QrMXWwWxXM40WYGzhaEtL4BIx/CV+S4GrNAEKmoD2AupwR+hNNh8fgAzOGg7mM idhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oY7D8sXi; spf=pass (google.com: domain of dave.long@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dave.long@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id m2sor1273841qti.39.2019.02.13.18.10.25 for (Google Transport Security); Wed, 13 Feb 2019 18:10:25 -0800 (PST) Received-SPF: pass (google.com: domain of dave.long@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oY7D8sXi; spf=pass (google.com: domain of dave.long@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dave.long@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=WO9QLkwa4mha7p6hiJT1g/UMgQI04UTw5q+EbfBWFrNSwwDYNTkdn6bWVt1HAKY7OW JCKAAClHznRx+Yapvvlwo/CnMy8oOwHjq7UP2WCOAL0/xC2GqQLSPfa8FUN8y0vtdlMD vPQYPjwuIVXvqCLD1r1V6fR3Qn7dP9+3hEzzaOQW0JaqaZpgcYP4NYVUT0axTOOPLscf l45tE0VybQtou3hYefchcs5XQatJLumXRdupQAKIpTz5dfpgQYHomaBciUac3eiZEQxq nQSZv7ban1nSsAwH3Zsb5tn3e8LZAxdn4lvDQQffHVmuaQCJgvYl8xsMLog0Nc/vkENB unAw== X-Gm-Message-State: AHQUAuaQBiStZlm1/WWR24tBXLp6CK5JZQunUkebOgAkGo6LtmYJJntG 3f4uZr15EfJzfWNCtYe5RfGq463H X-Google-Smtp-Source: AHgI3IaLt92oYaVZkuv6T4gCnR1ZEbRr+1YgRVeeMfAfms8j9SwmuqJbT+MIWEqDE5tO80szMUZKGw== X-Received: by 2002:ac8:34ed:: with SMTP id x42mr1062166qtb.173.1550110224757; Wed, 13 Feb 2019 18:10:24 -0800 (PST) Return-Path: 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 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 Reviewed-by: Julien Thierry Reviewed-by: Julien Thierry Tested-by: Julien Thierry