Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp513633pxt; Fri, 6 Aug 2021 07:26:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgx9DdYNNQYouyxA0ou0/d2uAin6yngezrVg0M3k4m8ChPAjRoHFW1sz3Fjzk7sTE1/vV4 X-Received: by 2002:a05:6e02:13b3:: with SMTP id h19mr1047206ilo.218.1628259984989; Fri, 06 Aug 2021 07:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628259984; cv=none; d=google.com; s=arc-20160816; b=vqoJHD946PASsyvMlaRaDdx04ffUwNA1CqU7TXM9BIMRo7szJU+6ShQ1GWqByD12Bb P/x+tIvf2fP0plp2KzZj4NeK5sYFTwukuqEjUbrx70sRy001JC23YzL96L1H40Rd2Kvf dePdcBOUrrq1weeYvDFQNlrwBcVYyyDK9d9CyQIdZrL/6R0sCbfOKf+SLQH5Q+LKwc8G 91G99htNiL3sPOYIjVlUhaabc3E3rvBHxtp8rXgbjoEuGFqNA9XxfOIN6dEw7Y3ZEOVh i8QesUxx6fybhN/iGAVpjH2RQeyLtZ86bXLjCCWZaGWtQrq7qCA/Q+gqgsztJQohl5GJ HjuQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=Es24adhOplHrbQpzTAx/TK8IcWMvknJcpk9DIPx9bPc=; b=W2dkRCKOzfCbt7M1MUGt945QPlVo9ciFdzH2/HVgCEHvTeQbmc5YOMw3dQawncFtws vHFsDBa5dR4Qht0nyiP82UsTB0cDTjAYD130qBC8tCk0gP1Gqee4/+YK9d/pLSJNv/9B mp4lIUgbvriZ7c/l9Y4Z0AXAR3qGgS94Vh00NpfH1kDfaIqA32P/695DNxO3jBOXs/hR Sw+mhGqAy6SFQW1UOa73vExTAxh9SWoIAVDR9OYJxwg9h9aC0O9LfNdxpWwatn/1GEb1 dsW3ojiV7KVcu/CA22nkeSHrBcYUjpLooKW72BWaWeB1553AVSp69j7gNHA5nA/AG7T4 T6gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Yp1536M+; 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 c126si2076244iof.49.2021.08.06.07.26.09; Fri, 06 Aug 2021 07:26:24 -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=Yp1536M+; 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 S244605AbhHFJkR (ORCPT + 99 others); Fri, 6 Aug 2021 05:40:17 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:29106 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244184AbhHFJkO (ORCPT ); Fri, 6 Aug 2021 05:40:14 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1769XdLs095633; Fri, 6 Aug 2021 05:39:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=pp1; bh=Es24adhOplHrbQpzTAx/TK8IcWMvknJcpk9DIPx9bPc=; b=Yp1536M+UoTaAJ3cjbrt374gU67MAGzPpOtrKAQ9yG4q5G8tpnYBBNlSFkJiSzylegYp S5d9ecllj750efumwlUf1BZlNYA99XWM5MbgLUdZ/s9czYI77u+WMVmiVk32lYZaEGyM 4g3KKkU2zg8d2VNLCbDYywmSK+9oxnC2LRb3GOQwgFICvZj6fdFcqVeTD3ToGVbz3mq0 DVtyW7JJJA3AJ4cXGK+o3poBe8d+S8ddhGxxv/X2yebXejdEy6DoT6Zr6ZCsJ200a1Sl pMkuzu0JVgKj1bV7EXM8n+o9zKf0WaUyPzVyh6uXldagoY8GRLLfOF15hSE20O17z1Ng hQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3a8r5qwx3k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 Aug 2021 05:39:58 -0400 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1769YVkn101646; Fri, 6 Aug 2021 05:39:58 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0b-001b2d01.pphosted.com with ESMTP id 3a8r5qwx2f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 Aug 2021 05:39:58 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1769Vh8m007601; Fri, 6 Aug 2021 09:34:56 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma06ams.nl.ibm.com with ESMTP id 3a4wshvyf9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 Aug 2021 09:34:56 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1769Yp6228836220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Aug 2021 09:34:51 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BD55142056; Fri, 6 Aug 2021 09:34:51 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 52A704204B; Fri, 6 Aug 2021 09:34:51 +0000 (GMT) Received: from p-imbrenda (unknown [9.145.6.208]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 6 Aug 2021 09:34:51 +0000 (GMT) Date: Fri, 6 Aug 2021 11:32:44 +0200 From: Claudio Imbrenda To: David Hildenbrand Cc: kvm@vger.kernel.org, cohuck@redhat.com, borntraeger@de.ibm.com, frankja@linux.ibm.com, thuth@redhat.com, pasic@linux.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Ulrich.Weigand@de.ibm.com Subject: Re: [PATCH v3 03/14] KVM: s390: pv: leak the ASCE page when destroy fails Message-ID: <20210806113244.4d0712d2@p-imbrenda> In-Reply-To: <6b75cc71-b996-cf3d-ce57-dbcd475ebc3a@redhat.com> References: <20210804154046.88552-1-imbrenda@linux.ibm.com> <20210804154046.88552-4-imbrenda@linux.ibm.com> <6b75cc71-b996-cf3d-ce57-dbcd475ebc3a@redhat.com> Organization: IBM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 383vxRM3eEFQr1HkCojJn6nzT7c4RSec X-Proofpoint-ORIG-GUID: 7GKBbEyUDX3-Aax2ZTLr8Ea1xTGqDHn1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-06_02:2021-08-05,2021-08-06 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=999 clxscore=1015 mlxscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108060067 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Aug 2021 09:31:54 +0200 David Hildenbrand wrote: > On 04.08.21 17:40, Claudio Imbrenda wrote: > > When a protected VM is created, the topmost level of page tables of > > its ASCE is marked by the Ultravisor; any attempt to use that > > memory for protected virtualization will result in failure. > > > > Only a successful Destroy Configuration UVC will remove the marking. > > > > When the Destroy Configuration UVC fails, the topmost level of page > > tables of the VM does not get its marking cleared; to avoid issues > > it must not be used again. > > > > Since the page becomes in practice unusable, we set it aside and > > leak it. > > Instead of leaking, can't we add it to some list and try again later? > Or do we only expect permanent errors? once the secure VM has been destroyed unsuccessfully, there is nothing that can be done, this is a permanent error > Also, we really should bail out loud (pr_warn) to tell the admin that > something really nasty is going on. when a destroy secure VM UVC fails, there are already other warnings printed, no need to add one more