From patchwork Thu Jan 10 17:51:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 155244 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2175957jaa; Thu, 10 Jan 2019 09:51:53 -0800 (PST) X-Received: by 2002:a0c:8b64:: with SMTP id d36mr10572468qvc.233.1547142713030; Thu, 10 Jan 2019 09:51:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547142713; cv=none; d=google.com; s=arc-20160816; b=EHpk+tNIaUHCv/CnmKT5E3MILECphHM6kDiREv0ta45gc3EOXS4/2fBZoS2FnYbp3p +XhBciur03gdEXVtmyDKuX0TXPaV0MdqBqNUza5RunLJ3OMZfcJvxdlJKpcAN0a3nrTt hNp0mmuBoUBZGWoQhhIdcBnRDU7UpAOOsoWSGx9z1vHGz8JrGXsAjCiHwAQ0uHlYgKnW PnOu4JA7iXHo+DUC3KNfdjZf5u5QsuAg349JrbcE+5Fk09HTlYgp/Ipwz3UfEQHs/r82 9zLXvIT1zbBY6WamXudIAqfIRv3rEEDK7QvJRslydowXh9CG6h7ExDouDHsLZPP6leLt u6LA== 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=Z24IuJtq56mYQVYDe63xwmln6Rz9g5OGfWKiAT9e1uY=; b=D6SVVn7MyrWvTBRw/FUmdw/zKdpPFW8U2RCyBpTVsW0tKfw2Xhqf0Pt8wXB9gvRpS5 Gg3puRkXJvtGZ6zk6QcHVxSqtdHUdyXyRmLjMqkWasPhryZCtpbazJqGtcXXpNcpoq9W oM1Xxrexw5LG0O1ideRTd51oygjY2/gFFahgOxNpOJCesw+2dZvsb+glSh84Lb2ukIsr y0KphR+5mor93G/k8W0vk770H1DOxVJAJylXmb7QPWNB3KQlcwEhcwcpQJE1NQfZE+pr XqHjqN+AnYDieLNJOiBpGaushn1lnHhZZ3PpKZmoDbpWIhOFm7FEm42/qPI6Jo5CstXK sryw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dt9vNr+V; 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 v7sor36722301qkc.125.2019.01.10.09.51.52 for (Google Transport Security); Thu, 10 Jan 2019 09:51:52 -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=Dt9vNr+V; 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=Z24IuJtq56mYQVYDe63xwmln6Rz9g5OGfWKiAT9e1uY=; b=Dt9vNr+V01bWda5J9bDpxnyeB/ejWIXFeo/gNNtMQxQP2EDorlOf5N4nOrQS7Z+nN9 KF2tda9XfwLHUtv4MwUnkvIe2GQsVCc39W0dNUGDiS0X30h5MFsrsDaDkXTAUBKdhmh2 o39zQfqBACJ4/fwuQPIJad/8ncvVKmK/4H3ZY= 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=Z24IuJtq56mYQVYDe63xwmln6Rz9g5OGfWKiAT9e1uY=; b=JVhtl4e70TZRKyTg5n+yUvs3GbDdarbCVLGETSw5hRVBtkdcstJqyIOqlUdCet0Zv+ dsCQMgbHO8N2e96DSVT2FjT2QB5JI4fBD2pBfKDL5lhCXizLzNy7bWwsckdK/ci/lN2B GMpmlTVbwKl9/MOWNbf/fbESmWrjz45FKOfkF2YjENOHtTTINnaC73dxeS7Gf5+dGmhL O1Gt2beVt43fSHWusqWafU+3o6D0gOwjNHxB7Vqy1CIx7vg7zdch+wkhFQ5EP0h0anfp fnwy15pnYFv/jw42L88rmLvhQDa+AQyhLWgp6I7FWevpdiPpQHoUmgff+2dyVizddZW/ I8/A== X-Gm-Message-State: AJcUukcE8kE4MW7FxrBgYYBd+awCnpt6BOPugqvQ7n8ZHWorrbTxcxW0 b2OcvXQmDKmE3zNzMwQKPNasgGMkMzhj4A== X-Google-Smtp-Source: ALg8bN6yfOTr8Brnt57cggDYrosNV70sxzpRqaZ8f12dhU8LAskU3NzgUR5nnW908TKzRnVz+kFCSQ== X-Received: by 2002:a37:1f6a:: with SMTP id f103mr9910481qkf.138.1547142712593; Thu, 10 Jan 2019 09:51:52 -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 b8sm41815904qka.79.2019.01.10.09.51.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 09:51:51 -0800 (PST) From: David Long To: stable@vger.kernel.org, Russell King - ARM Linux , Florian Fainelli , Julien Thierry , Tony Lindgren , Marc Zyngier , Mark Rutland Cc: Greg KH , Mark Brown Subject: [PATCH 4.14 00/17] V4.14 backport of more 32-bit arm spectre patches Date: Thu, 10 Jan 2019 12:51:33 -0500 Message-Id: <20190110175150.5239-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. 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