Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1092492imj; Thu, 14 Feb 2019 00:52:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IbuKDd5xwBKWiL2s3cJYwmY8Q9JTPmoIkEYfY6EkB6qJnSPXp7piVfKt2CE2m10dl0f33xe X-Received: by 2002:a17:902:346:: with SMTP id 64mr2975570pld.337.1550134328062; Thu, 14 Feb 2019 00:52:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550134328; cv=none; d=google.com; s=arc-20160816; b=IOC/oLs1UGVjJrD9BMkczVlZom2LA+WsEmvqgksog+snNkQjP7MQiBUMJZ/XnIEUiC vCbHJKwRBDutztIU6UiSH6ZqXLi78481M/fiav0N6yY6z66os/3xqADf7LDk9LgekM2H q/3zuifeQH2M/eMBQEyUyPaJhqO3AQ7ozUZ+1QhJ7w4gglElHUQ/wT/H7o7j25ZWCD+0 sEoIepPKiHZHtEkq3Q9QLE9BeUk3QLzz5v58BI81QAQrXj1JZ2eNq2kf5Xd5eZOECPfL /zVAwDNox+3WTIvMDzk63Lk1Mn/e4B26P9ImxQXblOIMbTi8c77uOgjke6TAIlQbl7Ni T4xg== 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=DKiPUgce4JTheoGvWXbyBEIdokTDXbYrmiEYcaxz36E=; b=HPf3cP6bQrwFSoUFgWGZInXeLxIdB0wN9hJ/ndiQI/RdpM20U25cjIRYOhDdVCDCrV 0SwHHbj2Cr4NebA0uQE8hehIlOmiVKHnr75FPEmANO6JpJe+fk2qeDg0ZscXZmj2Zh6t NffqR9Mmviug3oaYG5jetaytUGABT5J4+JiJkQ2X6exNF5K7+L1f+9F8v09ls0BbmxGi eKdIo2zmOkFq+XfUrJ1Vvw3LEsY6FKEviEWw7S1ru5h0Sr2/Kwnhrkv2rcGURsL/G+GZ 66lfZjpWx9Fia8UaVPa+CetQxUkTSQ7fYYKQ2ug0F+JFi3hF77PhWVY11a4sWQqWKZSw h0VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DbAPnFK7; 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 y22si1794514pll.284.2019.02.14.00.51.52; Thu, 14 Feb 2019 00:52:08 -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=DbAPnFK7; 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 S1732936AbfBMVdt (ORCPT + 99 others); Wed, 13 Feb 2019 16:33:49 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:41370 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394819AbfBMVce (ORCPT ); Wed, 13 Feb 2019 16:32:34 -0500 Received: by mail-qk1-f196.google.com with SMTP id u188so2325922qkh.8 for ; Wed, 13 Feb 2019 13:32:33 -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=DKiPUgce4JTheoGvWXbyBEIdokTDXbYrmiEYcaxz36E=; b=DbAPnFK7wOOhgCkSXvr0rLYtTRXuMZoONdFu6iHTzWBB/el8BuICjM2pTFOqGm9uUD MzehSpAKMBox9yPh88f2hG4Knzskm9d/Uq8PuLOjVRmRyw5HfRE6h65JxG1hWs/jgzb7 ep/kP7umpWmHAL7RDckVkr84vFvbcl+65Eci/o6yk9AgDW1Ho6YpNC0KPJG4GyO4KOof qU7020prSwEjhrPdjOhv0nTnfZ7UB3eFEgtPH/+g/B13w+swHlEWHm6+9ejg/Yh4evoc YKL4JtBxJiSaOeonz7KnTt4HCuTAV2YpOxp3PrVTmVy1PE7u0Hl25MccfI52IVcaCcLa sAew== 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=DKiPUgce4JTheoGvWXbyBEIdokTDXbYrmiEYcaxz36E=; b=TulGEV+RRbeTcQ2C0lUPIbsCjc2mLJLkT6L6IBWXijtw0d+sK6lQz2X3u/jw72J/YM KdabpBxhqptapysSivXgByZ4t8o3A2fnSkgYzK2codadBM/bRQg/kz8mhJ6lol7x/27t WKjSJg2DlywFdb+86u2WWKuVvHHg2/6ubBDKzMomGf8UTX9VwcLIDbfPPfgv0k9ZQBla WFEsfN9Y/VCFeHAscAk3r+CEEb4yGFEPbKkRul8wRBGdrKjsfdubDMQV+Za9XZIxRj2O tvJ1CXeqrfHkjqIR3kfFMBu4mw6+TnGVnwFHyYKbz7vwFEBLocUmZYeSXZSklpKYalHg sP2w== X-Gm-Message-State: AHQUAuaOxQb/JJIzeNlVSlcKT0rehpFkDkdWFZFTXFweha1A5f7asESE fWx1+g1XU2+NeXy4kZNvvrAAyw== X-Received: by 2002:a37:a14d:: with SMTP id k74mr216780qke.242.1550093552772; Wed, 13 Feb 2019 13:32:32 -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.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 13:32: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.19 05/17] ARM: 8793/1: signal: replace __put_user_error with __put_user Date: Wed, 13 Feb 2019 16:32:11 -0500 Message-Id: <20190213213223.916-6-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190213213223.916-1-dave.long@linaro.org> References: <20190213213223.916-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 1e2ecfe080bb..b908382b69ff 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c @@ -336,7 +336,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; } @@ -499,7 +499,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) @@ -519,8 +519,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