From patchwork Wed Nov 15 20:30:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Leoshkevich X-Patchwork-Id: 13457284 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 9FD3CC2BB3F for ; Wed, 15 Nov 2023 20:34:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DF4838002D; Wed, 15 Nov 2023 15:34:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D794180022; Wed, 15 Nov 2023 15:34:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B56888002D; Wed, 15 Nov 2023 15:34:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 9A8B680022 for ; Wed, 15 Nov 2023 15:34:29 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 6BB2A140998 for ; Wed, 15 Nov 2023 20:34:29 +0000 (UTC) X-FDA: 81461341458.07.285D1D0 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf30.hostedemail.com (Postfix) with ESMTP id 1AE0280003 for ; Wed, 15 Nov 2023 20:34:26 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=XJj4gqRK; spf=pass (imf30.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=1700080467; 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=/jeu8ikBdkG3zT8cTTXDudBR3p8yyOmYypD5+KnSOCc=; b=fG0GlUrrNDeVkhQO/AeI6dYkPuJF6ERYLbWSbhmIXEbtJQxrRBeNxSTSUCJ/q1f9ncnHgx SfRcl4Gca96p3W1nQz99RX0wN2nA9dHoJgXbRbEPUBQE+W6aLu2KrE25skLqejhMB7r9YT 46hDMbgT/nw7jonmwkLUEgsgBXUTBBg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1700080467; a=rsa-sha256; cv=none; b=TfWc9R0p/QWwSQUUlr2StU/2Q1rY32J/duTpwLUsyxgDCZdN2rPrNETU1KJ04zIu3UgC+y FkPb5i9gLyjXkHETh41ANVlRbH7QOV+Xmt3q6YTd5KYateCK1bXC022FD3XKGp1w1bPPtO pS9gXqJw2fZCYYYdM/5UWcyxaW5ZGQw= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=XJj4gqRK; spf=pass (imf30.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 (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AFKCEbw020024; Wed, 15 Nov 2023 20:34:20 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=/jeu8ikBdkG3zT8cTTXDudBR3p8yyOmYypD5+KnSOCc=; b=XJj4gqRKmolO6HaPwamZIPxiW7a94DubZ3Lh4Zo3ERklwMevuk9M6ZdOd0MqGJlJ8zOY ILwoxdECXoBgf0MIp+j7SFeO8MAC+ZwSHAuC8bFhucruxiW1t2O8mGBZ7lCS8wvjmNTG ZnLMcpG3px8DPkwcMgVnK+gQwRM5b86Q5Z6ho2/jN/xnDebeNFcbE9uYAEvcsuTOjiqC TImOzxLm8zqUFIuMYwclvIOrbo25ssWXv0fAvlq9A/bgYXB3BPJVSzZ8TYP1Y38oF8eE j1eX7rAEskNY8O7ms8SXmF+6uko9S+a34cqDzepPYk5VYN0DzCU9gUFcA3c+cZhFP2fF YQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ud4thgjvk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 20:34:20 +0000 Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3AFKCaZt021252; Wed, 15 Nov 2023 20:34:19 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 3ud4thgjv4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 20:34:19 +0000 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 3AFKIxFi024837; Wed, 15 Nov 2023 20:34:18 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3uapn1sj4m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 20:34:18 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3AFKYFGK28639744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Nov 2023 20:34:15 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3A8DD20040; Wed, 15 Nov 2023 20:34:15 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E4C8120043; Wed, 15 Nov 2023 20:34:13 +0000 (GMT) Received: from heavy.boeblingen.de.ibm.com (unknown [9.179.9.51]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 15 Nov 2023 20:34:13 +0000 (GMT) From: Ilya Leoshkevich To: Alexander Gordeev , Alexander Potapenko , Andrew Morton , Christoph Lameter , David Rientjes , 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 04/32] kmsan: Increase the maximum store size to 4096 Date: Wed, 15 Nov 2023 21:30:36 +0100 Message-ID: <20231115203401.2495875-5-iii@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231115203401.2495875-1-iii@linux.ibm.com> References: <20231115203401.2495875-1-iii@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: iSRl1qDbw0UxpkQf1oYEu1Z8v5dlxZV_ X-Proofpoint-ORIG-GUID: 2IYbA0_0cM-XcK8HWULf9sl6eCYS08q2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-15_20,2023-11-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 suspectscore=0 adultscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=693 clxscore=1015 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311150163 X-Rspamd-Queue-Id: 1AE0280003 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: p1i4y67b3d3pahwpc1dt5s6rrhz9cs9m X-HE-Tag: 1700080466-428961 X-HE-Meta: U2FsdGVkX19VocjlJ4kq6xBh4eRbK69dBrobOf0pA6GQYoSlWpUWx/ZmJPyB9fhfzNHIcg8qEtH/kdVvSu4ewtPj452X++gXXB8narDp+vuG+oqeYgSf73Dn3KNtnHvcxABZgeVZGp9B+xrIw7a1hPPTQgJ7isV4/TGpulKAG99SbFUNAD7TFeGoBTRnYgA0XKpZtNLkOL6wXCOu0eIch5IFzaM7RkW8LrV5aHFS3VGeJPqq157uH87nGo4YaPHa3/ASOQj37RGRESaGJLLfQd+B22baO+/SdklFs7BtDgEoJq8DwbN3njp+iH3wHu1SYKSWPcEPmKCR2ZFl3xryx4+VXVVPDl6HYkVQYcSjbIiKvYwLRozpdijcjD7bgDQ7PRDxNHjcVMqlrB2EFb9Tk6UmmpHlsxvlV/ol0ia2DOYAWDqQfnRSfl3mWMAA26OsL3XJlSOt05MFZhalDwTbX3Rvv5n7k33qM3WNBHOKVbLvZIlg+lySoOE2sWFTb8CXCiXrfZA/WtfL8ZYB6P93ub4eEQM1mYveQQ6iaJ5RSY7Eot/FsrwogytpnTfpL7syyF2LPAEvy1Vx+yqt0aLH9zPLi9t2Ufo2w7SVIEnv2WCCrjbWww8Nzi3ONZH8O58CqpCTEpFNx3mkoB+pqCQbwLxMwY1ZJerwV6PD00iYxtM7jgAY+c2yH+2M6bAMti6TtwgokyLIabwLlp6ZfZj00eOZ1x4sNUue6cLtNevxT89GAczSuzkPWriowN9lyNgfwl+AGl3brAx95YkcJiyzVtEk1+9X7krMGCCuDPKVBFqw/yYio2RxihhRzTETB1kYLNCyGfSwivdPF35/92wMh6iv21ef+u5hY1A9PObib3xfWhp111bvmWWgbsWhewGu23exC59U/SY4FEsSZsHJJg/e2/jEU83J9ku4x3AKk/IUpJVM4aVmCl5f/7dnzo3lXh6jS/RbQyNKzY/QpAZ QSUcmVLk 1UsKf97sORhUspkWXJg7q8JUldgmEXdi6SxYfPRYazqfCUw3fsNu8oKIEixWfhyhPE62zj1AYW6+8zFAhUWGYZgi9XCp0PnRsVQkSpfOR3+UCAsrNnxZzw40Vm1f1k8wtfo2OcjN1vtnf07MX75KS4/zD8jkJCFPKK3UHvXU2chGFp838YEcJF7O/wj7o4L7UxeqdjNPe34vvME/arWc2AI+d09DN+JjZRDRBVMbWFkdS5+gvAZap4XNZWaLvzCS1oeUOhEkIzltk1SKbb9dnT4epMd0hnQpDMQ7jvFl4PFJn1lbUsG2V3INr9HSE2EQu9ZEWKWASFKaeWd4= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, 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. 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; }