Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1084900imj; Thu, 14 Feb 2019 00:42:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IYVNSxb62FFdYbqVDUHTqD4Yl1HLt49blwM5l/0FvwOWDuVUN8SM7wNZGH0uogDi/n+/Vuy X-Received: by 2002:a17:902:b087:: with SMTP id p7mr963954plr.56.1550133742702; Thu, 14 Feb 2019 00:42:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550133742; cv=none; d=google.com; s=arc-20160816; b=WO999XdrOa3P0tC+zQlPi1eCKg1TVU8FPfqIYq3HYbd0+6vVoHAzmkEmid0BvUamK9 zKoeiIoBQMjT7Rh0DfA+K68GL9g4ql4j74NLm7kCR6Ip90P2+P3sgl1LUQz8EHVMZHKY nZKjJFJXhxLbMEVr4KHKMoYG3gVtVUcrKfOLSpx+ePedmpOJjqRiiP8lLBeq45KxohMF k6BHXsJy8fHdLR8yB93avTT9M9KyNn3usFTFIbqElWlmMn/kfVvykNCLRR5CMMWIxNIo xEdWyxr+Eb2gn7wYYGyzmHjNnPXWPlVXzvUHY8UWIYueVYBxoyVcbneRLJevd+f47wxc IYpQ== 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=jeR2I5IojtYAamul0y48I1Mhpe9MYXqM4mVdF+g8Y5s=; b=a0dxvzagvRv0RTw7ffJNHCzR5O1LOsumBcFem2W3vdeTW+JoPcf/e+4nytrZu9uWXb ewPslG47c+TYEk8oNy/3D4lfPQSD/12zN8TFYAAusnS6WJWzOnel+uLswM5HkENrVRPv Y6yMnf9VqU2Q4A8yeWxqMzz3/eHBnVqUGtpRuX8tAGw2MfcffwCrUsZzMdtokTq4y7Un cT4iPpQ7mqiJdZXuAvagf/Mq71Q+7vlRVLXbVSELNRo197rc06rL1OfhQTgEL5f5PaK1 v0NBEE5HJePJrq7ASCxEMRNQEp2oJqZHfHwTNBRgaUmU9s70Z+n3U+Xid/3ACrKZSCDO 6Svw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NrU5+qFQ; 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 q22si1853779plr.61.2019.02.14.00.42.07; Thu, 14 Feb 2019 00:42:22 -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=NrU5+qFQ; 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 S2394796AbfBMVc1 (ORCPT + 99 others); Wed, 13 Feb 2019 16:32:27 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:33114 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbfBMVc1 (ORCPT ); Wed, 13 Feb 2019 16:32:27 -0500 Received: by mail-qk1-f196.google.com with SMTP id x9so2362215qkf.0 for ; Wed, 13 Feb 2019 13:32:26 -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=jeR2I5IojtYAamul0y48I1Mhpe9MYXqM4mVdF+g8Y5s=; b=NrU5+qFQdXpZTR58bQV9WIf4d0/ZdwCj1mt0LprtsOc8Vr9XZd7/MSJgSu40k6+qXS td5VCvGcsxX5HdLsOptsYXpqXreUMM4pq7snvXh2W7ndqspqFtwFlK3yM65qtHpS7bj7 loYJIaLRCuBUx4r5uLZGaVNNf4h27hlBk7xMN578cfY+7sHrb8QPA2f7G8iSSTgWKlC+ qUzwd5Qm3JI4QshWlp6YFORUzvCnrayk4ydXpbWM+oCXBNIzRstW+7vuKcn20s2DwfKn 6RbtInr4emIhZb+Xm8JqVhoJWEDlWBldm0Refdvcxkb6paJMKUaa3Xp/gMftKNoXxWJ/ 9+JA== 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=jeR2I5IojtYAamul0y48I1Mhpe9MYXqM4mVdF+g8Y5s=; b=C0SIqhZ/abvu1CzwyOB0A7cVixJtr97X4J+8csI/Z09KtppM//W9dTGw8acQ33n4Tn HkHbAqoK2zF8YzZv80hrI+TIsSI4RcGXsSJDGDd1BOQgWgBlCPlA3tKshpXaSqJgRuog wbNbGq2fzH/uxN/A54YxrWvWHVdYGnWSpUOy0K0CBTzZjPJITm8acsRTC4fgO/0c5ZH5 pkAh/iFtEqe1uECDUzZaWfyZAcSp76aj2FfeOKb2VPdrhlHnkCVac6h6Pwj8HolWbQYs HgjhlrhzLQAZXTAM227xktlAK/mQ0L/i9RKk+Mm/bcb2J/i1/zzR7DCxWk1xFdOBUYzN 7BEQ== X-Gm-Message-State: AHQUAuaVJl0BK4QgqaCzHY/Xh+9FiNxWV1vKk8Q8LJjxPgvLWt/+EvNJ Df3SMCrpg6whFhK+EKsxwuxxWQ== X-Received: by 2002:a37:4701:: with SMTP id u1mr175025qka.357.1550093546032; Wed, 13 Feb 2019 13:32:26 -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 8sm382675qtr.7.2019.02.13.13.32.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 13:32:25 -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.19 00/17] V4.19 backport of more 32-bit arm spectre patches Date: Wed, 13 Feb 2019 16:32:06 -0500 Message-Id: <20190213213223.916-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.19 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