Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp95074imj; Thu, 14 Feb 2019 16:06:44 -0800 (PST) X-Google-Smtp-Source: AHgI3IZURI0W0m/pRW+ps4Eev+uZ463Zv2YKR/494tsx7nM+4JrW+5/SeAmlZ5E32xZOy0R2GUV1 X-Received: by 2002:a17:902:930b:: with SMTP id bc11mr7145658plb.101.1550189204327; Thu, 14 Feb 2019 16:06:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550189204; cv=none; d=google.com; s=arc-20160816; b=pERabSMoi9IFfEKwA9yafUfTV8UEueucv0og6yS4kLT31OtBVhNwvPUfcJCLrEBTGv HU1pYTEa40O8vdnPZim3wCTvZrg6xnvRi1X8yb5BhxCY27l7j2Axd48nwrn4YZZeJG2A Ln5OpmNypTJn66nBLaMdNsNE3Mot5f5dEn7l12bFM4WqnmFrsLmDQVBRLQHhkuM0HS+V hzlA7JZRLfKabN4ZElbbZ9iLc7ML+oW/elFD+XXDgxVnOk79voyZDKeK77iFI0FJpWO9 ZH8I8bTllulVkj+zjNinBdayiKX/CXLHtO0R23EPAQiGLQhgHlrREBHBry3de0V9+c1C VDoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=njKhqNVW1q77dfnJouybYtAijgeLOYBipkp1AnzUgE8=; b=cpx+ySv0Kg6p7J+6/lx53SCCwQVI55utpCQkaKGIFsVIfx2ROooqIDUc49wQmC1dIV EJ7Zt6ra0+EiC0BHUIBxJCk5UORb/Piwtb8w8Zv887eWW/IczSGU4mSQwhgLm1v80zvC 2i/dA37hVXBgj3aEl8jbOwnNk+WvFvH8LevVb4y8u9JuTL1LA6qHLTnd+9mdoGmuzXtT Ggr08HtCwhYSqg9bQfRXbFcmhmANhrGQEBMKg35SYaL5iZu2Wh+mANtqUIbUQtgpZuVA 7m0GVZ421qmgSc437RsxbXDZQdMvJPPkpkyiMjfffViug66z/CSgsAdvxYcL4uqoz25a 9NTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O23hPUmT; 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 s13si1039361pgp.347.2019.02.14.16.06.29; Thu, 14 Feb 2019 16:06:44 -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=O23hPUmT; 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 S2439348AbfBNOtv (ORCPT + 99 others); Thu, 14 Feb 2019 09:49:51 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:46738 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407270AbfBNOtj (ORCPT ); Thu, 14 Feb 2019 09:49:39 -0500 Received: by mail-qk1-f195.google.com with SMTP id i5so3677410qkd.13 for ; Thu, 14 Feb 2019 06:49:38 -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:in-reply-to:references; bh=njKhqNVW1q77dfnJouybYtAijgeLOYBipkp1AnzUgE8=; b=O23hPUmTPYxoo3uILFDTZz7epP3dts+rXc5g2YO4Xz/tEc2cf8SlFWmqgKsqzOpkCd 8RBuDUOwA0twNEt3dO2wtdVMNPPit1eRPwVmmhQ0oAWqxlyYpbAFbl3Ilovh8O52ZTKK zI2yh91q+EKI5ApQZUUoOzkXeZxnOeKCa+1fOVzL2oSEfnXaFBZndxC0O5/s5QgINz9E Q6yMXfMljTgsLB7Ko0g9vF8A+r9iPjYtzQT+32+Ps6qictWs8/LFiUbXBj21nk8q4hsQ 799ypVQ442qrgjiQFtSdCTUQ6ST4jpdR9zjctiKdZck3dOjGA2kgaPK0WF2JeoxY3eVY 4BHA== 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:in-reply-to :references; bh=njKhqNVW1q77dfnJouybYtAijgeLOYBipkp1AnzUgE8=; b=OJg+jHlMgo6eX1oLTUqCeq61Pjav05MhJk6HIVCBpAUyNBdX1Htx2QH6M9dsOX8iLY ImfNTxGUTTd4CIDfZy+6zSQHWwDEnp1Y4vplHcMcoPymulFtUhkAMdGGd13ABDNnYtOS eYVYLgcO2QK7ZEoazBkHw/53KL9VkPFpAvdcGFNaZN9UoTdYUdRl4laY4mgMwo4gvBVu gwe0ygbc/fJndAXXlXRth0v6HTo6Fg5kA+T136vLb8RNDeSGPc1Fto+Ok3L9j11MiqbP B4KfMpil0fcZgMGD0Y5zopvOE6r0hXyAofUem+FWUwiU/G9N4j+yVYPR+by6moTaao/Z N6jA== X-Gm-Message-State: AHQUAuZlmXCO6Cg2CL0BPaJKvyQfQjVH8gk7WlZuEBs0yvA8MJjZ7rMT pm/RDvUV+TYve2kcaJTwYjrZLA== X-Received: by 2002:a37:8443:: with SMTP id g64mr3129866qkd.334.1550155778416; Thu, 14 Feb 2019 06:49:38 -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 k66sm1498919qkc.25.2019.02.14.06.49.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:49:37 -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 04/16] ARM: 8793/1: signal: replace __put_user_error with __put_user Date: Thu, 14 Feb 2019 09:49:18 -0500 Message-Id: <20190214144930.27539-5-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190214144930.27539-1-dave.long@linaro.org> References: <20190214144930.27539-1-dave.long@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Julien Thierry Commit 18ea66bd6e7a95bdc598223d72757190916af28b upstream. With Spectre-v1.1 mitigations, __put_user_error is pointless. In an attempt to remove it, replace its references in frame setups with __put_user. Signed-off-by: Julien Thierry Signed-off-by: Russell King Signed-off-by: David A. Long --- arch/arm/kernel/signal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index 135b1a8e12eb..0a066f03b5ec 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c @@ -302,7 +302,7 @@ setup_sigframe(struct sigframe __user *sf, struct pt_regs *regs, sigset_t *set) if (err == 0) err |= preserve_vfp_context(&aux->vfp); #endif - __put_user_error(0, &aux->end_magic, err); + err |= __put_user(0, &aux->end_magic); return err; } @@ -434,7 +434,7 @@ setup_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs) /* * Set uc.uc_flags to a value which sc.trap_no would never have. */ - __put_user_error(0x5ac3c35a, &frame->uc.uc_flags, err); + err = __put_user(0x5ac3c35a, &frame->uc.uc_flags); err |= setup_sigframe(frame, regs, set); if (err == 0) @@ -454,8 +454,8 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs) err |= copy_siginfo_to_user(&frame->info, &ksig->info); - __put_user_error(0, &frame->sig.uc.uc_flags, err); - __put_user_error(NULL, &frame->sig.uc.uc_link, err); + err |= __put_user(0, &frame->sig.uc.uc_flags); + err |= __put_user(NULL, &frame->sig.uc.uc_link); err |= __save_altstack(&frame->sig.uc.uc_stack, regs->ARM_sp); err |= setup_sigframe(&frame->sig, regs, set); -- 2.17.1