Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2474638imj; Mon, 18 Feb 2019 06:39:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IYh7soCCLEAyWXWZVv+6/U+93bBGUudMVdXZkkoMuU2fVoELeccCfiBRQtUihOMXhKjtWUm X-Received: by 2002:a17:902:7889:: with SMTP id q9mr4845295pll.305.1550500764475; Mon, 18 Feb 2019 06:39:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550500764; cv=none; d=google.com; s=arc-20160816; b=YnMxuUctIW/NZZ9zCRCJP2zp2AjLou9pwgOTe/UkzF6gXaWoH9i0diVepeBj5Xyv9W UouJapm0ImLaSyVcXV8IAmn7HwY0R8y/9zkRA4ZnBFOvRTsceS4IYG3XL46IXEuh7hyV omVTYX/ezeVJG+nsPFIGmiOa0UPR1SwFV0qbeus4twXR1DRqaqdPOU6BI02mK/SAcEie REk7ynNfWzf+gh5f47FPPomKQR+7jJlC5EzUQRCLqZU0tBNxRFAOhfhAvV4H7RNtR6p7 eX90UZf6HEsCc3f/ahj1W4s369rKXfXYGp/ZbV4bqnwkUYq4ndAVu+2JaWZYSjKBsy46 7fEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Uv1dVlIYUuPd5Ph9QIto9a3P6qviI+7sJyTz3Naz8YI=; b=B8o5QRVRlT5wK1dr19d4puIVXV50gPaqzkGerXQMDaK42WatYxjDTopnzcVrOGM9yI 0L+zPChCAV0sfCtNINW3sqMFm1orD2rUYdH9MHYLjuJndhga0bgM3byKLCC7B0+0uOrl 75FaC6Zt8Tg1pErcZaG6IGZQBRFEWZZCEv0VwFNmiUGxHz+boVXligS7h4pNvoB9VJKt IMQFcWqeoE4YJC1Gsyan0AndVAHoulJrIeh1y0PW6pyKz7OOiGJOgnWyfnb3nyR8XGSO wkq6yRKF0qm5ztMDyA+2bXxVgl+uW6gYf/ktXgjZJQnwhx4GRVL6FoGj+qIy4XZDibOt 5wZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=H+vV8XfJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v206si8927947pgb.138.2019.02.18.06.39.08; Mon, 18 Feb 2019 06:39:24 -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=@kernel.org header.s=default header.b=H+vV8XfJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389802AbfBROg4 (ORCPT + 99 others); Mon, 18 Feb 2019 09:36:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:35266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387478AbfBRNzP (ORCPT ); Mon, 18 Feb 2019 08:55:15 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E974920842; Mon, 18 Feb 2019 13:55:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550498114; bh=F1tCQTmk/wfW1At715d2KqK//xBYl4LXBVKGP7NW8w4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H+vV8XfJQohovQ2DwBAzSvQUvZN+nb6s7IlPNGYr8FImhwUmL/ssw5v6cYg65i+dF uhAfbRWR9IjDYXWeYxILv2Ur3AmaukMw7PCd0uxT+yyfBS/ZSqHBCgwl/Zey7syqn+ ak650L6pu6+oTlzyTU7juSdvjVgYBCi1DfGBilTs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Julien Thierry , Russell King , "David A. Long" , Sasha Levin Subject: [PATCH 4.14 09/62] ARM: 8793/1: signal: replace __put_user_error with __put_user Date: Mon, 18 Feb 2019 14:43:15 +0100 Message-Id: <20190218133506.623694641@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218133505.801423074@linuxfoundation.org> References: <20190218133505.801423074@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Reviewed-by: Julien Thierry Signed-off-by: Sasha Levin --- 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 1eb83ee7e1cc..02e6b6dfffa7 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c @@ -344,7 +344,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; } @@ -476,7 +476,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) @@ -496,8 +496,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.19.1