From patchwork Wed Feb 13 21:32:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 158252 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp560709jaa; Wed, 13 Feb 2019 13:32:26 -0800 (PST) X-Received: by 2002:ac8:2847:: with SMTP id 7mr197151qtr.335.1550093546408; Wed, 13 Feb 2019 13:32:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550093546; cv=none; d=google.com; s=arc-20160816; b=00UKJvTdOZKmMRIY99nwhRlJuLZqNba5wCcBAMFA/DXTXhnMRJL5mFPPyHoncKInfV lkPmw/K7eCu6SOMxlvpbGESBdse2/cw0x1dxgiDjb5fgurlTY6oB7IXw+9+RM2i/BNb/ KxituhS9JyOJVU6dTEi+tonNajmZLckPVzmM6eofiNUpaOSW7p+5+NjFYsPKDFvqxSSH HMGw+H+XbeReewNBNjWP4OVTRDWUSOPkfuQ3dATZQICotNWr7h+/3n2js/NxubymDj95 PrYGA+uPVVdgbXyOHytxMjLWZ8pJeliH/1G3Tp1SJCdg6wZYwKye1n3F/Kmpb2jruV5t e11A== 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=jeR2I5IojtYAamul0y48I1Mhpe9MYXqM4mVdF+g8Y5s=; b=eeITibEWnx6vV/ZFZF1hR0j3eD9XVR1OwuLYg2dOb6UaXQ6xw8PvbKtbe9ARZJpakU sf791nFPiUQT6R5OQcjbwdJcg7mrMMEEvxmT9nGeTkSWQCtJBYbXt8Q3YXBKxYBeMKvj 4CkMBe30uywaiYL5ETrVO++tARJFKx+2XEBd79WR0j2Eixn1ke77khA5CSLCfm1BS+F1 7nQCtbiBfnbYrsWVCo33wA2HgB9wqsDH/KtJMw04KHKPacgwjMnX8frI7JYRrmINgyCI kWCUw7ERa6iP5mZYYMAdG0Dm/uXZ3yDBej4g0PEgH67zQr87xXc6/IuBbOY+unoSLDB3 1tHA== 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: 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 t123sor251171qkd.113.2019.02.13.13.32.26 for (Google Transport Security); Wed, 13 Feb 2019 13:32:26 -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=NrU5+qFQ; 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=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=YAG5QaPfbrGWG8HyycsjShfY3up6LwTH9lD1YhZzVCTC5CRIK6ktyVQu4FvQfCuOQo dxKY5xn8syb0/RO7oWWyzlwjwvVqrkNViAB5c66id+09neQR2WKMbmq8XrsMkYylRzZn pP9Vkb3wU7If3VhWqMNf30Vz+dtgqaytHyvtjgXYREXjkVCD5JnzDNFfukcM7x8EVsdx 9roDRJ5JfGgQPR5QYzTECqz+tYN1VpuvNsgAaJZGqP8cdoC5VueDe5Q05Xnx7iWjNFq6 Fd7Bzi5jDPzxOZ2Z7Aumn66mNB9A0FdEr3RCQQh6dooRebdRc8stbUcSC5ms/ydDleOc XeeA== X-Gm-Message-State: AHQUAuYaozkjPBJNv0O5mJ6ZEUHjq6shIr6mN5CWi0m4cXVe7ZuVsXk9 KE77clg6iimGqcneO8eEjjIukmz+ X-Google-Smtp-Source: AHgI3IajxPNIjcLo2SapeuwjtwO4nAnrbwdq/eflzWSra88S+jdpn2lZmuxPhphtbWMmAL+bYc5Zqg== X-Received: by 2002:a37:4701:: with SMTP id u1mr175025qka.357.1550093546032; Wed, 13 Feb 2019 13:32:26 -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 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 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 Reviewed-by: Julien Thierry Reviewed-by: Julien Thierry Tested-by: Julien Thierry