Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1611631pxb; Fri, 22 Oct 2021 04:30:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXQKd0ThGvSXBeHXzf4E1lQdGzvHSbf/0oTJfxw9uquGDWTNQl32bgN2Oh5pg4NxozsGrV X-Received: by 2002:a17:90a:d984:: with SMTP id d4mr2348543pjv.65.1634902254759; Fri, 22 Oct 2021 04:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634902254; cv=none; d=google.com; s=arc-20160816; b=V3fnC/f8o+YAEO3mXyyWK7ijxTzFmN7szAyJVLVwpA99KOe8cs1EECvShD4iCOhJNh aftheQic+bs6v+2n32OQBMlFCQDOBJOb6S8FRxI/Ir0loJEKbqMceyuSVhagxq3JTQOX B5gyHWJk+4RD6i9mVnVeVrzfZlluS0rxoLbdv/u2uUDQ4rzbEQWSlrj6uqK6lq/yckYZ FJDRIdTfWWqTtikNWSo1cKCp7YWP5JLXHs+Yx7YEUoTmCfMCe6tz6+ggfLLR8BhxubhC KixNaTw3teaIl0E0d6ctCOzQRvSTJ9zdv7tnSkzWXRseKzFT0Bm2crlI5wTPGvWQUZjB a3QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FeJykrf3rqPJ91QtZTkBoDSZYSrLcoyIwQjwfjO8QtU=; b=WpAZfDlBQHrHuhNkNh9Ewf7h2oRVoPj76qRLAW5ENj7B4aSnPKI2Ir0EYEzU6SZb+A OdcVIZ8mxqw5KNBmPn9SvJxsbuf+tQ/AvZ/JEPh9FXpi+mY53LvOi/4vCGc8/9yQKOqI YGMOgwuXpJ/F2gKWG/ITC4lKRcTjXXolqIhd8bTDvZVF+Ygj3tWXoivwziE8WT5CpUf0 phMeulpNON0tATqweJKcjm3lSfLpbN+aGKTMaBn3gOafq7tCyRQp0lu7GLE87r/SjjBk whAX+uMNyAG1yvsA/fYZ9gOYycOhld/HkAo8lYeil4gl5V743hg6CoMpDBp5smKmtXPE NKBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=s9sz87rQ; 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 m10si10662160pgv.643.2021.10.22.04.30.39; Fri, 22 Oct 2021 04:30:54 -0700 (PDT) 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=s9sz87rQ; 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 S232714AbhJVLbo (ORCPT + 99 others); Fri, 22 Oct 2021 07:31:44 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:11086 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232539AbhJVLbn (ORCPT ); Fri, 22 Oct 2021 07:31:43 -0400 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19MAARvm006048; Fri, 22 Oct 2021 07:29:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=FeJykrf3rqPJ91QtZTkBoDSZYSrLcoyIwQjwfjO8QtU=; b=s9sz87rQsQm0r4kiSUChFkI5NllCNeP8hGcYSn6PUDzaxZFeeEs4CLJAONREWNd8kgtf lG26s7nhn5OVfLPvSOjAqR/7iuOin58TmbVkzBoy2jxn3/2SEEWo9Hvc1zk4CEEMDMDB CVus3VDRxyAczRZAMPoRLqOUukiODMTFsaTUTGRPZO9lZSQ0zLv/xTpu6N4gEqh3eU3E JYNSVraJ4dqKD9ZqJx+OVBEF+mdfXKWqklD1orFdan+xyUydUtkz+3Jy/yXFF6dybiUR BOMuim54/gfT1thEVy+8Crk3o0hS7OLrD/qbIVQK94lI5sjmBFxuhRuLv7Acvq04B2Ak Qg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3bursfvn7g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Oct 2021 07:29:25 -0400 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 19MBK1Cu039572; Fri, 22 Oct 2021 07:29:25 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 3bursfvn75-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Oct 2021 07:29:24 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 19MBE7sG013122; Fri, 22 Oct 2021 11:29:23 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma03ams.nl.ibm.com with ESMTP id 3bqpcaqqn2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Oct 2021 11:29:23 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 19MBNLra61211024 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Oct 2021 11:23:21 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E305B4C059; Fri, 22 Oct 2021 11:29:19 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 85CC14C052; Fri, 22 Oct 2021 11:29:19 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 22 Oct 2021 11:29:19 +0000 (GMT) From: Janis Schoetterl-Glausch To: Christian Borntraeger , Janosch Frank , Heiko Carstens , Vasily Gorbik Cc: Janis Schoetterl-Glausch , David Hildenbrand , Claudio Imbrenda , Alexander Gordeev , kvm@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] KVM: s390: Fix handle_sske page fault handling Date: Fri, 22 Oct 2021 13:29:13 +0200 Message-Id: <20211022112913.211986-1-scgl@linux.ibm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 3cd-u47AHZarFz0owiG93s5D1NmvEBih X-Proofpoint-GUID: sIpUT2Ev2SYMvIDpQcexsvib0gNSvRQz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-22_03,2021-10-21_02,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 priorityscore=1501 mlxlogscore=999 impostorscore=0 suspectscore=0 clxscore=1011 malwarescore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110220062 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Retry if fixup_user_fault succeeds. The same issue in handle_pfmf was fixed by a11bdb1a6b78 (KVM: s390: Fix pfmf and conditional skey emulation). Fixes: bd096f644319 ("KVM: s390: Add skey emulation fault handling") Signed-off-by: Janis Schoetterl-Glausch --- arch/s390/kvm/priv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index 53da4ceb16a3..417154b314a6 100644 --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c @@ -397,6 +397,8 @@ static int handle_sske(struct kvm_vcpu *vcpu) mmap_read_unlock(current->mm); if (rc == -EFAULT) return kvm_s390_inject_program_int(vcpu, PGM_ADDRESSING); + if (rc == -EAGAIN) + continue; if (rc < 0) return rc; start += PAGE_SIZE; -- 2.25.1