From patchwork Fri Jun 21 11:34:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Leoshkevich X-Patchwork-Id: 13707327 Return-Path: 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 9B662C2BA1A for ; Fri, 21 Jun 2024 11:37:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5C4916B011D; Fri, 21 Jun 2024 07:37:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1E9A38D00DB; Fri, 21 Jun 2024 07:37:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D33A98D0155; Fri, 21 Jun 2024 07:37:30 -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 9E16F6B0114 for ; Fri, 21 Jun 2024 07:37:30 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 53F041C2006 for ; Fri, 21 Jun 2024 11:37:30 +0000 (UTC) X-FDA: 82254695460.08.79F8785 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf03.hostedemail.com (Postfix) with ESMTP id 07D7D20008 for ; Fri, 21 Jun 2024 11:37:27 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=cs9bGDLb; spf=pass (imf03.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=1718969838; 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=Scz6uta8wJUcmkDwOaiOL8UogdsQpVaK9UJlhoWG7HU=; b=y84Zlu0eri3QuvDnV0G+u7A6nczJUjo6iQ8hb2nqJgY0JHtujdOt6Bog49L6daPaLmIz/d iVk2LQCCn7D7kHjcnjcKq4JCv/zidhApxkuHzFi0i8X6mj7ooTz1tYbf9p9UWI73gWWHLX rtrUvE5iKNOlp8sjY1YhrbKZQbVhtow= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718969838; a=rsa-sha256; cv=none; b=vU9QRcbLa0AgzF1srJi9SfWjHuOFIo5TJ/l7YKNeAG+2SMk0LpdnasZh0xsIXiJRImK20I hGM7SraopJv1Xd7SB6v5KPVtdiLgCotcXlOAPMSLuKwc2WSxONTEJyFkYAbeI5m/J45myr WX/SyUsDFLR2iDTzFfxoUDkZu5UeX2g= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=cs9bGDLb; spf=pass (imf03.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 (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45LBQwae018581; Fri, 21 Jun 2024 11:37:19 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=Scz6uta8wJUcm kDwOaiOL8UogdsQpVaK9UJlhoWG7HU=; b=cs9bGDLbNr75bSEtSCFKfu+8mc/7f oPv3JU6q6qgeO0hi9gQNwS5O0I+3mVeSh5/dXj64sA4nYIi9KiFdzl9IouDYmLi4 ByG1zBxAd2aVUQ+0zuiVDUn2ue58IZFSrk98kIJCR8vU9NI0kXGIeO1d/nlNAZJC fs9GEfvKjhcQM0NrxFReFqzsYuBvxZULkGd5okEwBrzCnHxOdMeVj61nzrKnv+8y vS6b+srj8GoBUyhp//DxBru+WfeQ6ccieMavQA/WYQUpjdyCX/cuYJAA1t4zaLpQ mM5BySOu3XiUIFHuFLbxVbxhRfvkY1cMDgILdXHJJO0pbWp36+GpXjCZQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yw6ws09b9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:18 +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 45LBbIND001489; Fri, 21 Jun 2024 11:37:18 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 3yw6ws09b5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:18 +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 45L9L3lJ007687; Fri, 21 Jun 2024 11:37:17 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3yvrspeupg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:16 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45LBbBuE21037512 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Jun 2024 11:37:13 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 888FE20040; Fri, 21 Jun 2024 11:37:11 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F30A82004B; Fri, 21 Jun 2024 11:37:10 +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:10 +0000 (GMT) From: Ilya Leoshkevich To: Alexander Gordeev , Alexander Potapenko , Andrew Morton , Christoph Lameter , David Rientjes , Heiko Carstens , Joonsoo Kim , Marco Elver , Masami Hiramatsu , Pekka Enberg , Steven Rostedt , Vasily Gorbik , Vlastimil Babka Cc: Christian Borntraeger , Dmitry Vyukov , 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 , Roman Gushchin , Sven Schnelle , Ilya Leoshkevich Subject: [PATCH v7 04/38] kmsan: Increase the maximum store size to 4096 Date: Fri, 21 Jun 2024 13:34:48 +0200 Message-ID: <20240621113706.315500-5-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 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: wZIRW_dUwx-rNNfZ5WtyHnlnrpg7gkD4 X-Proofpoint-GUID: 7MrfeCQ_u52NejmfJE-8AosTU22Np6aR 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 lowpriorityscore=0 clxscore=1015 suspectscore=0 malwarescore=0 spamscore=0 phishscore=0 priorityscore=1501 adultscore=0 mlxlogscore=742 impostorscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406210084 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 07D7D20008 X-Stat-Signature: 7di3nqir6jjjedy7whzseryte888wy77 X-HE-Tag: 1718969847-544293 X-HE-Meta: U2FsdGVkX19bUCrT4GPuHtx6M5BQLXLd2n91dWDx70yaSzMJZpw0QpMMefrenE3NUqrMypuPXJMFCZG8dotWwKD1JUXe7hFHNpbMPkenIlHb7MunvS9iLn/25tLox8vrQe3FfsLgwZnyUzEX3w0IoOT12xtNNpY1AlVhD5Scv5gaK6cLMWynkc8BFf3gL4hGMW4KSXo18RWOifxx4bBRabRn+LMU6Qj6BEz/3A9E+3KgEIdYUoqMAXXCvi5AjpPF5H4X8+WKW+4Bl0didfMFLv8DlX2qf4v798sGZoUjV0L0NKiaYs+ec5KAywl2kyJggNYk2Lztol1VQK5NIRBdInjn0GA9K4Us4AH+J4ElJbMPXy8fbx70nSJ1ELLFEY4eKoG34aPlQjfvn9/eYQy5KuihJUAuZmc/7H23Va5OaTFvjBtvWGEHkWxx79McBDMmbO/TfgrP2VGohCtYH4ObTlNz9PwyO+43gXhzFFq/SGqKBEzs9p2xLmwjwHQtT7W14ZPj1zMunpb0eUUExl/4ZrsG1amnK8cnj/bMg9HxFWbGBFjhjXOTSUikvKizw36XaaYh8q2xnGurBu35OQyjY1VL5cYxwpin+bP5tPzuYivAwOhF0a0leEduBi8gtyOijFwt4m7dddvGKMy6oD5vwYudA5aOvNtNCnCB7YTWQE1+pZk+N8RDGEOH60vlSVbcGwubdGSuGXrVHEPiN1JaJC7pE4y/qyCe10Ysvqph/90kHSDPTsxT3uBOqqw6xWBm3iz7B6dw+kjsEKlMb7Do1Br0cB3D2fQxGi2+yn96DDkpjVcCn0fTcuSBI0GIfMzwWbmO11bfJETYD2vnMYywTD2Myu8j9IzVjBufXdCEqfRPRP81PbzM3qQnZmG8mKc2DR5V2rdW5P1y2NEp8tQ+JFI2InLjBuA8Pk7avxCIdGECnIS5SA0eCo0IXsLq71IBtQLqEdSIUck/TxWUQRr Bis8Kvfy Pw0Mh/Za86eETxmLWRcFBzIiEqS14XHvy0Pv2n/SHkjQkNp6IPUcgv5h26PowxmyKA4V+u2NtVcTkj4z7jaFx5tbglPDbvFJiIbFkR4O1JTk2+3MC/7zGsBGbQeqYRUl6ofIVCpPP4jwE4pnPtD4irS6WW0xZjOFeM/e6FlAGLPrYNpaIEibsP2oXE45YO0/Dy3kwZ3SBghWl2ohU+WxZR1I1cCtOBBkW/CT2Haflqy9+Fl1iwhZkOlOFapdmUd/hBzVi/jJsW0zYj2LRjB+ALc1HXUZJTL+R0TzVlOshvyBlvizDoX9fn/68ixS94bKuonE1k5f2Solbhib4W5dXKOlCJqJhFcwPkqoXqDoeGwe0TLK0uDyJ+2zbKwykDY2nbWE5H0F10puwBDcq5WZXBh83tQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000016, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The inline assembly block in s390's chsc() stores that much. Reviewed-by: Alexander Potapenko Signed-off-by: Ilya Leoshkevich --- mm/kmsan/instrumentation.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/kmsan/instrumentation.c b/mm/kmsan/instrumentation.c index cc3907a9c33a..470b0b4afcc4 100644 --- a/mm/kmsan/instrumentation.c +++ b/mm/kmsan/instrumentation.c @@ -110,11 +110,10 @@ void __msan_instrument_asm_store(void *addr, uintptr_t size) ua_flags = user_access_save(); /* - * Most of the accesses are below 32 bytes. The two exceptions so far - * are clwb() (64 bytes) and FPU state (512 bytes). - * It's unlikely that the assembly will touch more than 512 bytes. + * Most of the accesses are below 32 bytes. The exceptions so far are + * clwb() (64 bytes), FPU state (512 bytes) and chsc() (4096 bytes). */ - if (size > 512) { + if (size > 4096) { WARN_ONCE(1, "assembly store size too big: %ld\n", size); size = 8; }