Message ID | 20221213165405.2953539-8-scgl@linux.ibm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp238499wrn; Tue, 13 Dec 2022 08:55:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf5i6efL/Tn5iqtUztOfdEuW2VY/1Fcx7pqwDTdihUppmXmqHrOc43G0gXWpSuJeesoi3AWe X-Received: by 2002:a17:903:251:b0:189:db2b:ac1a with SMTP id j17-20020a170903025100b00189db2bac1amr24467779plh.36.1670950554761; Tue, 13 Dec 2022 08:55:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670950554; cv=none; d=google.com; s=arc-20160816; b=miPLM00O98IHylSqv4GfvXQXzQeobbmDAlHIboA94P+xAI9om5PgG46xKdCBX0LlM0 A2ujApdcF4nXIdxh0rRbiA4Fkhvp+vbTfImrvL2bEv8GNS7PHf+0vtKNFlo22QfBQiro XOyi/oPd5HlJckeRip5G/oWmxYXE75T8+3fq7WPZWujTDsJN4nuuzhkf26EbS4xaGvqJ GWNdqJo1ALLCw9rPlSMkG6lOaTn5Psz/WReptifQ1s5J1h5TaalLPcL1eN9AHrYwppnn YgEVdiz8yZGqKJ5aSlBonczCn3ulCYgU0ofQNLncMNHBD2wowCntE2b2+dQDPakunlys DwcA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=G1c8sMx6bmsolmeGu0gkqWrPWZmrlhomQ5oUFPCE81Q=; b=HRYykH5bIT3zzJIVTYwIQmGs+Erl+WnjyRbzxi9J20VF2nZ4WIGqXvnKsj7AX3IV4r AIEnN50G2osaWrz+kyTmDHzrGwvjqGI2ep7rA/2rhR72Emp7RN8pysZ0IkpGqDzECy4b QsEBG/2kRYFA9G1UgImhgMH5pteU2jERGkzjk+ZqgqJso2XMJhFFhFBkdDudGg5fCBw8 mP8URtJae642W3QpaJxe/rNpHWqC7SW3csBe9anNzt+57/cWnF9Wl35aQEsZcQeLR5IP 2+S+34EU73LS+Vq0s8sJlhA8eYhKSBBWbJbCedfvcdt8T4/7ThopxuZUwR0Cwwlfaa32 yZ0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="p2Vj68/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a170902cad200b0018875900d97si259199pld.20.2022.12.13.08.55.41; Tue, 13 Dec 2022 08:55:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="p2Vj68/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235422AbiLMQzH (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Tue, 13 Dec 2022 11:55:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235428AbiLMQy2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 13 Dec 2022 11:54:28 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FC6E22503; Tue, 13 Dec 2022 08:54:27 -0800 (PST) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BDGqB31014074; Tue, 13 Dec 2022 16:54:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=G1c8sMx6bmsolmeGu0gkqWrPWZmrlhomQ5oUFPCE81Q=; b=p2Vj68/NVPtJYLZIt7fvT0+UB5hD37MMUAWDonviRt4r+0wPc6RlwXn6b0NTb7U/C8yp 7HSucq6AcGKQPLiY3+qpb5PX2uuhZTqkn3jgQ6tIg4vwui8UWk4ropUSPIhGu7cNs4Lm kYl4tR03BNFbaJ9sLB9QgM3EdjXdB+thveNZyjaD/1okkWWon1LHrq+GpiKkI/iSD/BE hSk6iYISeRQXQAeFNxt/en8yaUboEqpJq37wwU8QqpHjCVPB21Rx7seLSfhPZTwTeMmG HP6lX3ehlfa84da9P5t2NGzaHs2Apnk3WShgXtsYJgu3eUlhVbSPYCmkRKzvm5la9/Mw HA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3mesmxf8f1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 16:54:21 +0000 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2BDFttH2031452; Tue, 13 Dec 2022 16:54:20 GMT Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3mesmxf8em-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 16:54:20 +0000 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 2BDB3QOw013866; Tue, 13 Dec 2022 16:54:18 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma05fra.de.ibm.com (PPS) with ESMTPS id 3mchr637p2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 16:54:18 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2BDGsEcV45548014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Dec 2022 16:54:14 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C892220040; Tue, 13 Dec 2022 16:54:14 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 85B102004D; Tue, 13 Dec 2022 16:54:14 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 13 Dec 2022 16:54:14 +0000 (GMT) From: Janis Schoetterl-Glausch <scgl@linux.ibm.com> To: Christian Borntraeger <borntraeger@linux.ibm.com>, Janosch Frank <frankja@linux.ibm.com>, Claudio Imbrenda <imbrenda@linux.ibm.com>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Alexander Gordeev <agordeev@linux.ibm.com> Cc: Janis Schoetterl-Glausch <scgl@linux.ibm.com>, David Hildenbrand <david@redhat.com>, Jonathan Corbet <corbet@lwn.net>, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-s390@vger.kernel.org, Paolo Bonzini <pbonzini@redhat.com>, Shuah Khan <shuah@kernel.org>, Sven Schnelle <svens@linux.ibm.com>, Nico Boehr <nrb@linux.ibm.com> Subject: [PATCH v4 7/9] KVM: s390: selftest: memop: Add bad address test Date: Tue, 13 Dec 2022 17:54:03 +0100 Message-Id: <20221213165405.2953539-8-scgl@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221213165405.2953539-1-scgl@linux.ibm.com> References: <20221213165405.2953539-1-scgl@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: dBppJMYJJNl_yhq9Qn1LtVyGxBWEk6lh X-Proofpoint-ORIG-GUID: tRb-J2nt-sZQILx8lSltndiilU3IBdUo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-13_03,2022-12-13_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 bulkscore=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 mlxlogscore=999 priorityscore=1501 phishscore=0 suspectscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212130147 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752118649284881894?= X-GMAIL-MSGID: =?utf-8?q?1752118649284881894?= |
Series |
KVM: s390: Extend MEM_OP ioctl by storage key checked cmpxchg
|
|
Commit Message
Janis Schoetterl-Glausch
Dec. 13, 2022, 4:54 p.m. UTC
Add test that tries to access, instead of CHECK_ONLY. Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com> Reviewed-by: Nico Boehr <nrb@linux.ibm.com> --- tools/testing/selftests/kvm/s390x/memop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kvm/s390x/memop.c b/tools/testing/selftests/kvm/s390x/memop.c index b4e5c7016047..23a935cd8832 100644 --- a/tools/testing/selftests/kvm/s390x/memop.c +++ b/tools/testing/selftests/kvm/s390x/memop.c @@ -965,7 +965,9 @@ static void _test_errors_common(struct test_info info, enum mop_target target, i /* Bad guest address: */ rv = ERR_MOP(info, target, WRITE, mem1, size, GADDR((void *)~0xfffUL), CHECK_ONLY); - TEST_ASSERT(rv > 0, "ioctl does not report bad guest memory access"); + TEST_ASSERT(rv > 0, "ioctl does not report bad guest memory address"); + rv = ERR_MOP(info, target, WRITE, mem1, size, GADDR((void *)~0xfffUL)); + TEST_ASSERT(rv > 0, "ioctl does not report bad guest memory address"); /* Bad host address: */ rv = ERR_MOP(info, target, WRITE, 0, size, GADDR_V(mem1));