Message ID | 20240621002616.40684-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 ADC84C2BA18 for <linux-mm@archiver.kernel.org>; Fri, 21 Jun 2024 00:27:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 157FD8D00FE; Thu, 20 Jun 2024 20:27:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0921F8D00FD; Thu, 20 Jun 2024 20:27:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D16DC8D00FE; Thu, 20 Jun 2024 20:27:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A877A8D00FD for <linux-mm@kvack.org>; Thu, 20 Jun 2024 20:27:02 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 4BFB11606F6 for <linux-mm@kvack.org>; Fri, 21 Jun 2024 00:27:02 +0000 (UTC) X-FDA: 82253005884.20.34E15CD Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf26.hostedemail.com (Postfix) with ESMTP id 0ADC9140011 for <linux-mm@kvack.org>; Fri, 21 Jun 2024 00:26:59 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=QLTiuUgz; spf=pass (imf26.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=1718929615; a=rsa-sha256; cv=none; b=CqrACiEAkG7SpnITNesy8iUPl8oHp5mHldC6311LV99skZ3zzD5L+kXeG7lJSIclgGYVYD DXO4hADFzvFY7GV/boe/+xCZ2T94fYlL1XsTECZlEhTzLjBvFd8/G7k61kGUoB0gxXXEEk wIBh7uCTghlwr9YBPCHM2trZYB2AEvU= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=QLTiuUgz; spf=pass (imf26.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=1718929615; 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=8cy75rs8jmhkpo7xQC8V0ut/aJ13UlzXCswV/hx+7HmuOPMSe2qgI2NlmvmUkuVbkFuLRr gtdGpd1WoDyZ6oNu3YbWr28mhg3eJjF5P90Xob39otvEYypNzh0cdAb/HYKwYS/+KjQb4E hMg0T6akeX1Z0vVqrmet5EUJSIi2srg= Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45KNQYUQ017245; Fri, 21 Jun 2024 00:26:53 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=QLTiuUgzXynmL4R8k3l8VgV5LpnKj 37WqWbZdaTcyLbk0LawbuAtMlwCgR1WespmbPcd+J7LIoO1ArRt6qaT/l5V4BdQp TnkYsbO1PAhOULLGbls2dkd3+N3mF3fwbj+6gwWtRtN5P8M3P8f0Gt2j60gHoBjF AxvQU/hXbvY03B4enkqXzuoC5hiBjYDQUu8WSbql3MRt4SEu+bM8MoQO34QIDQTw BiP9qpgKuAsWgzemjsc2DGG237JgursXHPizRyqAVA7wuq8fNTP6shwu1sfBpKfQ p0yStIsUkZIBV+8sd/cxW9jN5HvhJBEUG/SqfMNFn9YP2ain1U+Nco0CA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yvvrdr8ax-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:52 +0000 (GMT) Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45L0Qqh9009543; Fri, 21 Jun 2024 00:26:52 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yvvrdr8au-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:52 +0000 (GMT) Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45L0Htw4007678; Fri, 21 Jun 2024 00:26:51 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3yvrspamq0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:51 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45L0Qj8Z56492412 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Jun 2024 00:26:47 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A787F2004D; Fri, 21 Jun 2024 00:26:45 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 848A620043; Fri, 21 Jun 2024 00:26:44 +0000 (GMT) Received: from heavy.ibm.com (unknown [9.171.10.44]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 21 Jun 2024 00:26:44 +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 v6 21/39] kmsan: Accept ranges starting with 0 on s390 Date: Fri, 21 Jun 2024 02:24:55 +0200 Message-ID: <20240621002616.40684-22-iii@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240621002616.40684-1-iii@linux.ibm.com> References: <20240621002616.40684-1-iii@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 1AqOcpwzwafdX484ppd5O8j1ZYWTiJo2 X-Proofpoint-ORIG-GUID: FgwbXccNBqEcPSn3Bplx5nbUcnlWVihd 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-20_09,2024-06-20_04,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 mlxlogscore=999 spamscore=0 adultscore=0 phishscore=0 mlxscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406200174 X-Stat-Signature: xfx51cn3psh9z6t61t93mpe7mjk856ge X-Rspamd-Queue-Id: 0ADC9140011 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1718929619-904801 X-HE-Meta: U2FsdGVkX1+JPq9nSQORfsr9miX5zawzHF9yRHtlJP9l1KKYsNeQ5PfcGbv3RP7dKnDtDRPSpcSgMEytFkkRqOqXt1p91fcHHEMp4skaIowbR9vOlfQ8FbWSdZCRH8PvasYU3eKx839JhFOSeyMylf2GaHDDSTQ5Ff4npkoGZJZ/CMd5KKp1gtpdTM8WID6DRzRafqqRfFEKnHWdo7xY+VGDopkHbpohyqvIWo4p1M0IQuh42NbfqAH92nSFUdo9qpTY0PGBIJmfGt9K7YD/zr1bbIU9JTy6l1MTEL8/ONRhhZLF5wX5QJyozLiAtpYAA2Z2dXesIBXdUJ9ZCn3ZhAW3Y/bIN7JtGEO37CF5hTl9FDJU1npeONLer2ph8wyC9GUd83AF8QCiR7qaD4/7JahfWyVvK71VM7mrVyABsWaDGeIz0xGvHY/vwNi62WWDuXkMxDHyLpB+HDZJTNoGo7RvRkE9V18q6E3lKgEvM31JC86O3xj+hZDCMhzjWWOT8xx693WbIy5jGIO4hTxk7HZv325tYAKGt80aZcBE5BcLj2OU+i/B3fN7Pl4ZSxtCnnUlkQ4WgVOXEeWsqzrm8XcTyWxaVR82tG/2Gf3dyVJUpOSHouqrBmUKq9vgJb/Spt+Fasqg0PpKPbEsQmOqlEHVKEzwKuyt9XrwOqY0b8MpRT9TxU2C6nrEIjlHcnkULf4+NzxcogOsrIdDt9y3f1teryHFLBjy+DHqevKPn/lITY9MeKpmuSGeM4dJAKcDWZhiyn8BZ1+t1dWLEChDkY1lBZCznJG+dyL9FtmrCE8QSgR9wtE9ZE0yYvEiCamfYnuvQJYe8xSZ7MeNEcY87YDbjbskT2mnA0FxmdZNGMwvXD6zh/LzH6wQQU0GMXr/pS/AJITIeS3b7ADgRduKuDuKWRcQt0J9FTuOLZxq5wx9/+vMfwAlI1sbtVQtSMBfgOahYPCvwJQdsvgTZV/ PegY2u9+ VyALjeqqOG9yJT/t3/8KXgei1cBhoy+d6VV0Ey5NVn0YlxNOJmN65ZACNEdLIldHaOiXQkzUL/ngmmOwKkZMNbNuivZA9SPQJHUfH47haF9lQgJLmec6HZqbQmkhm3sMnmkNTUG6r5q7cXnvBvAgTxq76uvbPYkWMxeeDk92pbsZSKcnQwnfZdIZgJ66a+BUya6Tx6Qf2dDhMjGRe/mnFtSIEM9T/ueJY8OZ/8YPAKBZv9Ou7/9HS2feVw0kvLXCeb6eppWVlEFDOX8Qukifgob8659a4LXWafHXWRUv2c/ev/6p6m5hvVSGm466BGifWPshSoKPiIiNb5lg= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000003, 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);