Message ID | 20240619154530.163232-21-iii@linux.ibm.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85AECC27C53 for <linux-mm@archiver.kernel.org>; Wed, 19 Jun 2024 15:46:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B9BF96B02CE; Wed, 19 Jun 2024 11:45:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B000F6B02CF; Wed, 19 Jun 2024 11:45:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8DB076B02D7; Wed, 19 Jun 2024 11:45:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 58BF16B02CF for <linux-mm@kvack.org>; Wed, 19 Jun 2024 11:45:58 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 03C341A07D7 for <linux-mm@kvack.org>; Wed, 19 Jun 2024 15:45:58 +0000 (UTC) X-FDA: 82248063996.22.8F1EAE9 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf12.hostedemail.com (Postfix) with ESMTP id B5A0140020 for <linux-mm@kvack.org>; Wed, 19 Jun 2024 15:45:55 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=mNNtOrw3; spf=pass (imf12.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=iii@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718811952; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=eOJVqKOJuZasA86pPY8j/wtn7XC9Zj2RO1nXjWn3Mgo=; b=XtFOA1kZRGO0Q5TaubOvj78Adwwb3jakly4PkQdHufoPvt67RNA6eamO5zWl11rlpuLKQk UWA591q3VmpVYWxE46Quiep71a1nC8CJiRyIFSGnQ4C8F7zKKMVOtOFi7hghr/IQkLGr1+ FLu0jsnk+q1BNZxH9Swp6KqE89sDbxM= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=mNNtOrw3; spf=pass (imf12.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=iii@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718811952; a=rsa-sha256; cv=none; b=Bvf3ajG/7ZtjXIZKlqkR/LZOlytWxBI0yfSJ//vtBdKok1CutfalmSb7x1hlVrZ7SwdTuH 4eUCvqTPxGw7qKxo1/YqgTVBhMd7mqq0JcnaKsBXRfpcpjOUp/GIVzESO/AO//V9swr2v2 3JfF2CXYOZxYZnPfzVklgYaErD0ReT0= Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45JFQuTe018094; Wed, 19 Jun 2024 15:45:48 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=eOJVqKOJuZasA 86pPY8j/wtn7XC9Zj2RO1nXjWn3Mgo=; b=mNNtOrw3A8QMki60SWVnRf/+LtcN/ VmQ3kHRWBg4LceGBIHpme8YPyuDLra6JnxSbhTYurZn6BNuseDbRCkl9cDnOnXWl EuK18jCbIeL3YSUl2s2tgdeQEn34oYqG+vfYGWB/YxtNLm9OQJ0cP8J5N36QM2jP RXQB6VHBMAImFNq69VqNvPIw0QGdTD1IqReZ32/zaoXwS1Bg8RADMTMmDkDmchEN aF2glH5NrYCjRqAoHRTSWY2/SCovz6PJTPZRPjAkbpuuW+yYQ3giNl4KsI4zSYL+ vvgNfrgf27LdPdzkf1NxUZ1cun4+Xfo496R/jMPV5t5CQ9pK9KJnW+gRQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yv1jg8540-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:48 +0000 (GMT) Received: from m0356517.ppops.net (m0356517.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45JFjlVE016329; Wed, 19 Jun 2024 15:45:47 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yv1jg853v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:47 +0000 (GMT) Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45JEdT04009433; Wed, 19 Jun 2024 15:45:46 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3ysqgmwmn0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:46 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45JFje5c46596572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jun 2024 15:45:43 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CF52D20049; Wed, 19 Jun 2024 15:45:40 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 80CC920067; Wed, 19 Jun 2024 15:45:40 +0000 (GMT) Received: from black.boeblingen.de.ibm.com (unknown [9.155.200.166]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 19 Jun 2024 15:45:40 +0000 (GMT) From: Ilya Leoshkevich <iii@linux.ibm.com> To: Alexander Gordeev <agordeev@linux.ibm.com>, Alexander Potapenko <glider@google.com>, Andrew Morton <akpm@linux-foundation.org>, Christoph Lameter <cl@linux.com>, David Rientjes <rientjes@google.com>, Heiko Carstens <hca@linux.ibm.com>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, Marco Elver <elver@google.com>, Masami Hiramatsu <mhiramat@kernel.org>, Pekka Enberg <penberg@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Vasily Gorbik <gor@linux.ibm.com>, Vlastimil Babka <vbabka@suse.cz> Cc: Christian Borntraeger <borntraeger@linux.ibm.com>, Dmitry Vyukov <dvyukov@google.com>, Hyeonggon Yoo <42.hyeyoo@gmail.com>, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Mark Rutland <mark.rutland@arm.com>, Roman Gushchin <roman.gushchin@linux.dev>, Sven Schnelle <svens@linux.ibm.com>, Ilya Leoshkevich <iii@linux.ibm.com> Subject: [PATCH v5 20/37] kmsan: Accept ranges starting with 0 on s390 Date: Wed, 19 Jun 2024 17:43:55 +0200 Message-ID: <20240619154530.163232-21-iii@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240619154530.163232-1-iii@linux.ibm.com> References: <20240619154530.163232-1-iii@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: t-6NhsbZHDQnXiNF0uBfPW5-9PdLjO1W X-Proofpoint-ORIG-GUID: Kj9sxnPHfaNJvrcvSASovW9PrvrbuQr1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-19_02,2024-06-19_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=990 adultscore=0 suspectscore=0 spamscore=0 phishscore=0 bulkscore=0 mlxscore=0 impostorscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406190115 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: B5A0140020 X-Stat-Signature: j3xx7g4ccduhy65bjptwhehdaa7erp31 X-HE-Tag: 1718811955-349027 X-HE-Meta: U2FsdGVkX18JIbLCkPvRFSzZlZV2TOe2j1f9GDMPUA9BPbZ7woeRkpmDwZl6CCV9HzdHZwsc3c3zhOYL45G2unyxJdOE8ShSEd2rzxynPfTPxXwRtUfRX8xTitqMRg7nAXNE0XEKbRHb1Acn97WNH1HS2vOIM4MRIfalu054ZtuQdcc9slsx5CG9BguvVBLXCs2UpfdFbBs5gfoKvyl4l7PZ2GjVFWjzJzxW5NlU5Ht3K7lVSJu5wbSeXbOOARUOQIiYSad/sX0RMA9cDcAeX1GWnejaTEYaKNtPfpTkoLXfDlJxZBhKh3tH5gyxj8FOBna8uVvMXbmMo2k4HUzCP/Yj19Udv7hb5X0Owpa/exAkhFY987Dg8FFdD0IA+M3s0BRY2W/BeG4toy+vJH7OeFP2PO/33Ppq4uXf55rZRHXSkh9tEQtS1bUhcvHHT96fLBNMyPMtoJFi78GAlNL8QY6cLi8NI4bNRG0tVh/XGynrZ/iKpKSlXuzDv2s+ItsphcurMFfk/yIPzxvnzns7pYfJhT7GsP5eVFh832VsVhby+a2ugVhqp/92LSoc4FaEnC2i1R06U82sHWxryqPFIich9Y2AUNLNEo3fpzfFj04oRnZUgkDGNxAvsTPNYTPyPX+62V+mEDTLb6rD25pRftYDkOlbCdn4TrjymQ5PI8eKt3AQb+q2nFjyi/u/wWDQ2bQFkXMi3hfiGZCgCXejcLMLLk7uZEfvOEY1DctoKBV6/Z/7TVH4cR1+348WXpIe7Pfv7nyHbbYXLjGNoa9yUajqGCpPjRdeX4aruMYVkFG8rcK7Tgw30lthVQNfSiXXHMAle6H3um2ieBtjEx6hxcaMGzTTciBhJexXujWzC15aKz5o/NDwUCY44WQSIp3iPg9UVcPFlgbVh02x5BazMGFtHPDo4uvhJEWa+/ubl4J5SrnQ1O9DeuO+PCYsweEMCZJOUBzlIPLa7MyP48y 4pdBN8gJ VdOqCGL1TVinRS/y3z/TKe/ks5SVQt7HY+NmRarstcwMWgBKvPrwHQZwXSST0BBREwlvW7PqYTG/QH5WDWLUpdSRepu08pzttmzVXcr8Aq7oFoMVdIUCts7Z422DRHZsb4ei2H2N5izUVYcXpe0WQlLfhVQ2+m1l3mtWyztUHh5Pc+UGzpzR5SUKN36tU1+gO5rj2ZN+S+Jf0bmYp6/r0y/fGi4wekIfRC9HIjR+VkBandtWXIVtGrVhdIq394CrKxMBGq3XNsLEMCLv0oJjNV5KTE7nr4SIhH6tySVavYADuqWt0MpzQJhsIHWtsGnnTOVmd6I1qL7ELZHc4OtC04P7EkGXNxgvBvIBQCV8CXmq3bp8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
kmsan: Enable on s390
|
expand
|
diff --git a/mm/kmsan/init.c b/mm/kmsan/init.c index 9de76ac7062c..3f8b1bbb9060 100644 --- a/mm/kmsan/init.c +++ b/mm/kmsan/init.c @@ -33,7 +33,10 @@ static void __init kmsan_record_future_shadow_range(void *start, void *end) bool merged = false; KMSAN_WARN_ON(future_index == NUM_FUTURE_RANGES); - KMSAN_WARN_ON((nstart >= nend) || !nstart || !nend); + KMSAN_WARN_ON((nstart >= nend) || + /* Virtual address 0 is valid on s390. */ + (!IS_ENABLED(CONFIG_S390) && !nstart) || + !nend); nstart = ALIGN_DOWN(nstart, PAGE_SIZE); nend = ALIGN(nend, PAGE_SIZE);