Message ID | 20240621113706.315500-22-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 ACEA4C2BA1A for <linux-mm@archiver.kernel.org>; Fri, 21 Jun 2024 11:38:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E4D338D015C; Fri, 21 Jun 2024 07:37:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D39E38D015B; Fri, 21 Jun 2024 07:37:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AE9E28D00DB; Fri, 21 Jun 2024 07:37:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 6693C6B018B for <linux-mm@kvack.org>; Fri, 21 Jun 2024 07:37:38 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 23FFA160D90 for <linux-mm@kvack.org>; Fri, 21 Jun 2024 11:37:38 +0000 (UTC) X-FDA: 82254695796.05.B2983C2 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf16.hostedemail.com (Postfix) with ESMTP id C7070180004 for <linux-mm@kvack.org>; Fri, 21 Jun 2024 11:37:35 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=h2ird5e7; spf=pass (imf16.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=1718969845; 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=AFWrF8ZVRwZjBqvLKIqvXIGBDfR4WqNBUbHN46iLSkf55WTsof11kHTEZ2WeXOfbmUgQSn GVd18EmH6mjU4+0U9R6LPn2/MlqXO/+/G5JXZUsOS/UYjo14kPyorRF569/PIWyhhoQFjK kdZ/lN7gV/fW7nYWA/KdlRXHS7s733s= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718969845; a=rsa-sha256; cv=none; b=4uy2RVV8WIXfPsvRZT6fa+2iaBDQoK0cttOMu7tO0yHsjxZ1mQfMexRmhQJ/QzCitIZgdz KAxjQL/dyI2Kqg7s6AyEDWTpIFIg800v0s3RrgUtAofbNYkjLzxPmn9MCq0DbyBqXs/G5X gGJ1760A/ABqUXb5Y4qf9Kl+0T3oEac= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=h2ird5e7; spf=pass (imf16.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 Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45LBQeuM012239; Fri, 21 Jun 2024 11:37:29 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=h2ird5e7i3JfLYpr9qwt1Hy5roSMh S1i6MVoeXZOyEHb43HFhpraS2JGEJL7PA7xR6Wz/veG3J/4vm9DD9t12ia8ZW4i1 a8X3NSf+uEXLnYATLQBMdoSdbX9hA8GqDKun5x13hRRuQaM94NKcEDa2LUyHif4K QSgPVCjb8qr9cAN8/gllJBa1O8WIwH85kF4FLXR2MQ9OnnXjLLvm6IPs1KJlFigy 1TIpjfaSFPtDdpoOBiI2xFuNIAt2gGvOULWN4W2IFhQMRMSKOELGn2XpryVttXAv QkgSbopYoSBfllsm1TWtE6z8ZdAr2z8S7KysuUUulY7rZFni6CJsEo/fA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yw89g0290-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:29 +0000 (GMT) Received: from m0353729.ppops.net (m0353729.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45LBbSS1029851; Fri, 21 Jun 2024 11:37:28 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yw89g028w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:28 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45L9DLqD031890; Fri, 21 Jun 2024 11:37:27 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3yvrsppv5u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:27 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45LBbMLp56885692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Jun 2024 11:37:24 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F0FEF2004E; Fri, 21 Jun 2024 11:37:21 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6786E2005A; Fri, 21 Jun 2024 11:37:21 +0000 (GMT) Received: from black.boeblingen.de.ibm.com (unknown [9.155.200.166]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 21 Jun 2024 11:37:21 +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 v7 21/38] kmsan: Accept ranges starting with 0 on s390 Date: Fri, 21 Jun 2024 13:35:05 +0200 Message-ID: <20240621113706.315500-22-iii@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240621113706.315500-1-iii@linux.ibm.com> References: <20240621113706.315500-1-iii@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: toFATofS8B9_Z_taxWBad7ov9MB1B9Uz X-Proofpoint-ORIG-GUID: 9wCxo3our9e3SLqooNZeo9rdl58xG5ZV 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-21_04,2024-06-21_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 bulkscore=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 clxscore=1015 impostorscore=0 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406210084 X-Stat-Signature: jned36zrf74icdj36ymiza1dxmw97b4s X-Rspamd-Queue-Id: C7070180004 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1718969855-389386 X-HE-Meta: U2FsdGVkX1+uJ6dVu5NvKFC2W0hxecSxyqaFtY8kbrh3qn/+Bjc+PYB8hC6Aoo3o+2NbHCFV/L7wz+IRCjUypxlJD2lcTx669N9QDOe2PAzfbX5F0HPyZttb+WGYeIrlMzcv84Qh5ZddsiIq87inPlkk2m6LT+7F5posjb8Aa6dJukXoZgD9Epe6kshqKLX7zyf95ddq5EMFfA57t6MUNT0O211Wxu5BXUoAuN8pn/h1pxT5Dk/jQajlMXAdatRLGVOFaYCuPFX+lp4r/KJOHb04OjH9FMLFhh5lIPoKdzbFI/6l4/FgkGGtm1NA35hg9G9U7bsuFncQ4iHvWF4CbWGpIomduWBS/XJy8+SOgh6TZHsxNUOhx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osity: 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);