Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp64575pxb; Tue, 2 Mar 2021 19:19:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+Dti2ETE9P1Hh1fB65wrsuHC1RpOweeG9sgTFb5v8ViouM2vSDp+8UVNPrWBMk8rHt2ox X-Received: by 2002:a17:906:bcfc:: with SMTP id op28mr7095842ejb.238.1614741563875; Tue, 02 Mar 2021 19:19:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614741563; cv=none; d=google.com; s=arc-20160816; b=wooLEQM24lNhFSnt7uSdqOud84sHwVeM6pS5RTlPpPioLqEK+1dF0DJ6M2sB5dVtYq auzSuBrmjanODA+Xq6EnGV0/noCRqK6Jb83eocLtzsRWD15ZAFr0YZPaxNeNtJcObPa5 gEkmFsttbw2vlu8VFrZmiwfiBah+QzuekSwpuCvQcP7v6g6qf1lHyQnqUU5wLXfQ7qsz NnA2C+Jjid+nk/8Qfg6L+eAOPUQxjAJsPwkZwZneNnFM/CUrmRa+x3XvNNS4WtV6QRsl KzYgfhzEHIcRT4+XcBT6DLD2i6B30PmAAYs4wKGl+93lhiHTWPUWG9ydHrQgD6SnD3n2 pSCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mUHX0OdekiPeVkj4z0QODKN3mlJJPyK/azho+6myROk=; b=wnsJCj1A19T5t6WxeZC0nC6VDbYxd2lHB5MAPgwv4LwZ+MoVaCYxxhZccZaHS4Sng4 PkdJ2UpbXOdF/oP13sFJjs00ouTD2K6zyOFhLDxRVCgxhar4q6TTY4jOTB7uzxgNLsIp qWrxAY8UBqZ6H33dIqNjyT+3aKR0em66qDrLT0uEJQifoO/Oje2rp70lcUYqLAc93A2/ C7/EXCA1KXIb6LEYvcsLE4ImDJIKS5phzHVNOpC2rJ2CacMtmqhXlOxpxj+3IMEpGaIG 3yf1Aaglt+bWSw+bRHdwjqY/3/oPRLRypvYb5nSsQID6oEo4PANDKB/ElewLf/YEKcFV BxSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=pkwkX3R6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si14369328edt.564.2021.03.02.19.19.00; Tue, 02 Mar 2021 19:19:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=pkwkX3R6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235554AbhCANQ6 (ORCPT + 99 others); Mon, 1 Mar 2021 08:16:58 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:2822 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235521AbhCANOV (ORCPT ); Mon, 1 Mar 2021 08:14:21 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 121D44tH154301; Mon, 1 Mar 2021 08:13:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=mUHX0OdekiPeVkj4z0QODKN3mlJJPyK/azho+6myROk=; b=pkwkX3R6G1wxMTRim/gdBz1HQjSJkKaEeg7jOlUnLI68VxOESr6r7754wode3rx+zPob FCaP7deUcS6noJpjQyv0PDlZr+6s91CQOI0ySi+WxueuPyRH7kQbt4/+rmf9/i7piSlb gCVy2XBgx9mRvdUWXcgbRVMqZt69n7cvr9Ydhx0HdOJ1eO+7VYsu97kBjCmdbILllASQ 52wsAbvApx9yJtP6xCEtU04fzs3Cu7YF9ENClKx5KJCJLL2iYvIMxFSO3oHj3IOGRJCz SVevC+LyIifRwlQ2a2CK7rtCHi6LT+ekW5JJHnvPmEB3AZNatdXEZweu8FcOV6RoGYHv Kg== Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 3710tk0cfm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 01 Mar 2021 08:13:40 -0500 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 121DCkuQ022779; Mon, 1 Mar 2021 13:13:37 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma04ams.nl.ibm.com with ESMTP id 36ydq8hwnk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 01 Mar 2021 13:13:37 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 121DDYaq3015256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 1 Mar 2021 13:13:35 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CC021A405B; Mon, 1 Mar 2021 13:13:34 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 60712A4054; Mon, 1 Mar 2021 13:13:34 +0000 (GMT) Received: from osiris (unknown [9.171.28.2]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 1 Mar 2021 13:13:34 +0000 (GMT) Date: Mon, 1 Mar 2021 14:13:32 +0100 From: Heiko Carstens To: Wang Qing Cc: Tony Krowiak , Pierre Morel , Halil Pasic , Harald Freudenberger , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] s390: crypto: Return -EFAULT if copy_to_user() fails Message-ID: References: <1614600502-16714-1-git-send-email-wangqing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1614600502-16714-1-git-send-email-wangqing@vivo.com> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-01_08:2021-03-01,2021-03-01 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 suspectscore=0 phishscore=0 spamscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 mlxlogscore=943 mlxscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103010108 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 01, 2021 at 08:08:21PM +0800, Wang Qing wrote: > The copy_to_user() function returns the number of bytes remaining to be > copied, but we want to return -EFAULT if the copy doesn't complete. > > Signed-off-by: Wang Qing > --- > drivers/s390/crypto/vfio_ap_ops.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks!