From patchwork Thu Feb 14 14:49:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 158394 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1462056jaa; Thu, 14 Feb 2019 06:49:33 -0800 (PST) X-Received: by 2002:a37:bf81:: with SMTP id p123mr3023547qkf.125.1550155773272; Thu, 14 Feb 2019 06:49:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550155773; cv=none; d=google.com; s=arc-20160816; b=eq4sBMqzhn+c2L/Y2bO/x4jK2nWTBDrtlg8NWZFujHMkKjyeD5ajoIlWp+qyBaMikO n9PCkndmCyL7G+HzzolpdVwgGzOgbi6Gyyt0yRxWQG0WB9HrorpUm9QIs+MlHDqO/jLa 4jee8cMrO7jopjHKDeHdeU/RhnfrNs2F+anOGtH2FvF/5uIGMgLtMZdYbS8qyJ7uIklw zIPsjILQDFuGPHVn1UqVm82wBjk2pT7rstUvF4L+Lf/SeJdof4zfZ3npoHzNPl8nfSh1 9a4Khs+MqCQ1mu6Zurknuf/S57cgSk+SKjUbh+zy86E+qM6qUl5Vi/+9RwGB3lcyOHVA 1hPQ== 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=4OMBVou4qebwFqB5VwBh3FlAvgT21K5AaH/tbF5iY1Y=; b=UGXHg8WFtzAUSAR5+vVK5sJKMdLbU/vedOqGsYaWRzWoFTkl363W3nYkIPe8Xu1Kp9 XImUhArAgVh4Dn+Wh64OtNluG3vLNi2YlC/HjHKO/xeTQhCM4xBkw2030fAJFi9WUclP F7Gp1bipxou4L85PvdqnyzJbTubj0lo+xUjcq6v7S5UKk5CdREhimBPOt9aqaxek2usb zdXqTZ11AbvQ5R0RRJ7VfA9h7jv3op24jAp8d6NWSD/C+AL3oORGtpqRaboFezt6wKGw CkD6aaAixCOVqqI+BOQ0EYKUlpruk3ki91fWI6aQkGZ6AwLdWYHCanHnxrq0ZxoF/RJE /Cpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y1iEwJhy; 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 q7sor3414299qtl.9.2019.02.14.06.49.33 for (Google Transport Security); Thu, 14 Feb 2019 06:49:33 -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=Y1iEwJhy; 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=4OMBVou4qebwFqB5VwBh3FlAvgT21K5AaH/tbF5iY1Y=; b=Y1iEwJhyidP/O2f5pszWUmSXx0GZ2nZ9z4jJB1hIXquDGcvmpyuuzISOxVK4cf+j05 0zr1eAv/Pl6+cFlW0CgKImM47UjXPAd5nWrxkk01JfC1JIWxwzVGBheMaHkBkbLt3eoW n/PRV3I1H5rmPNpre0hdblJ+8nl/JBGg7grabgllOSuIkSo66A4tsfHpZR5Fhlee88JQ T1ZhGlth3sNpjuKBfMLqJf6Dr1PIqK/xurdTC1On0P5Wcak0EJlsvUSxr96Ld5ITJ+tt 4Zh7I20OzvMQCY1eMJz+6gbv58RrAQoUL4bZVL5LdrioHe7hNxqpZcEDfFPs/ftE+v4O eUeA== 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=4OMBVou4qebwFqB5VwBh3FlAvgT21K5AaH/tbF5iY1Y=; b=QqZ8bQzAaOtqGMadO+IVQGLFe1izEO1F6LwOVessFwEvjakq62z2cleo1DK5rbeXZn FSe/yxaHJY3va/9UiQvtErTz8s+gwp0I7+UnJ8vLxIEYqVft2roAb2yD2i6fN0KZerBl vJkXQGMdUCaTQI14anqRHUKSR1K8O+H9ngmD4kDK/isz3u29ldMslI+xDkUo5p8Dn3Vy +tuIOFPJ+68yEDwq6LcPlfR12ChZ7+rO2+nSR1j6JrYCo424I1InVLuefxAc59+nZiUZ 3EFXG//mEvckICvpcubakUlVS42s05S6o0HonrJ38vSbh122oN8ff3pef0Wsk4kOalX9 R3oQ== X-Gm-Message-State: AHQUAubo3iZ9RJMkFR6F3Ge+cw0BBYhX8hxxu4TLjpUZPCmN3g1Sd0Gx YBMc5YeJMe6l9VknycDaE5jqFuN7 X-Google-Smtp-Source: AHgI3IbQ7KUrWBYl394zB9/w7jbXgXWb2dLvxyHf3BYgHGWVJLfdBhK7TPIkp1JTT4sBv1+YRZgtKQ== X-Received: by 2002:ac8:1e84:: with SMTP id c4mr3304948qtm.181.1550155772912; Thu, 14 Feb 2019 06:49:32 -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 k66sm1498919qkc.25.2019.02.14.06.49.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:49:32 -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.9 00/16] V4.9 backport of more 32-bit arm spectre patches Date: Thu, 14 Feb 2019 09:49:14 -0500 Message-Id: <20190214144930.27539-1-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 From: "David A. Long" V4.9 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 (9): ARM: 8789/1: signal: copy registers using __copy_to_user() 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 | 70 ++++++++++++++++-------------- arch/arm/kernel/smp.c | 32 ++++++++++++++ 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, 240 insertions(+), 108 deletions(-) -- 2.17.1 Reviewed-by: Julien Thierry