Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6602680rdb; Tue, 2 Jan 2024 07:15:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvSe+iUSyJ4tR7Tq5YBpnzL72jxFx4xPKq+ehuFlCCPdfDQIVgVwwu4iskhQsZUuu6iMg/ X-Received: by 2002:a50:a6d2:0:b0:54c:4837:75a1 with SMTP id f18-20020a50a6d2000000b0054c483775a1mr10005951edc.77.1704208509387; Tue, 02 Jan 2024 07:15:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704208509; cv=none; d=google.com; s=arc-20160816; b=j/rmWjMgBdJ4+0GduR4AtsmK5zL3veoWIJoIh59PCm7wnAnkP86aOc3RbHFP2T4ux0 CuMUWyC7zczemUhlWyb0pV2qb4Z6VC/cfa8cGWdS/DGELciKwbOqeaXLgvYEIaKdIYQa 9ELw7IDnZlVthtURYMbTsYP6hc50ejl2s3AG0JjEsPwV4AzoX7YDhJlS64gAkbePdL60 2hY0jGd8stvfUHs3X4uYlZPJZZCn4u19ISR8Kv7kQuKVzSmy5/ohVzWPUJfZA2rT2JHm QWux4HBHnkqMG+hNWhhQ9gFFEOMjq+5CB+ZxPwInI9J3mKC+/4f23XVfIVkwsuOa4RAu hayQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1BKcmG2jscOIY6lh3Br6/Mb1pJ/Vi1UOVkNOh1YtQSc=; fh=mnX3wLuzTrkmgdlNsEgQXOForHn3WUzT3G0xt8tsRls=; b=pZ9oPX7GDLImOV9oxY+vTtti6v4rN0nH+2WIW2jNLo3qB+PeOfFDaA0320IyGcqKAw G40Bej72Rz7smEF16inz6veNrsWlJQmCAR1kzCdXjzrZrm6YI2Y/TPoh1diZic99rTV+ vsWWIxt2qZoQ70iUSpskrOYRN/nv8/YFVkMdGfZtgcT0bJ+Fl9PmQrcpmdKc7xZ/9VJB 2pqNfTsuwQAFeAMsQGExZwGB7Zo/UKJUZ7pruFRTV3FfMhkJYp8UxffNwvOg3UuS+FzS HSrHLC/8NhxUo+rDkhZH/zjVwau3jw4MEiUiJaET2jjm4taBU+WV08AuSUBDMoH4zCyO yPXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Zq3EYYWP; spf=pass (google.com: domain of linux-kernel+bounces-14547-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14547-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f19-20020a0564021e9300b0054d8c12be8bsi11121168edf.467.2024.01.02.07.15.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 07:15:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14547-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Zq3EYYWP; spf=pass (google.com: domain of linux-kernel+bounces-14547-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14547-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 261571F22F89 for ; Tue, 2 Jan 2024 15:15:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E84D13FFE; Tue, 2 Jan 2024 15:15:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="Zq3EYYWP" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12E4312E7E; Tue, 2 Jan 2024 15:14:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 402CiIn7000998; Tue, 2 Jan 2024 15:14:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=1BKcmG2jscOIY6lh3Br6/Mb1pJ/Vi1UOVkNOh1YtQSc=; b=Zq3EYYWPNc4UgN7L+mRwnUV4SVWsszAF6dhEQYLvxmpIJwvy3wjO9Pf0JusBYQMzETqE /SlYWFZe/4i7GdnfgUnvggZuf98pdyX7RXdAnS4HsFn4UYY+4gbokrI14Huh4mSXnBZE GfcBAn5EgZxpmOyi7WBNmh+5GDrCm8lJuDDyrcVIUq/3J24YPTGjmGKu6s5k604jbfyA Zms5o23hAHx6RuD9goA19feUczcbAsbyPJEuWfRhVFXGdVe6a+Zlb7WvoT381+Ag5lw+ 1VyuCpobO8MxyocJ3gySwJAVpJqX3+Wk81nTIqX6/+aL06t7+j+71UzM79CtQnnqPM15 UQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3vcf2j7wws-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jan 2024 15:14:42 +0000 Received: from m0353727.ppops.net (m0353727.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 402F7f8f024070; Tue, 2 Jan 2024 15:14:41 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 3vcf2j7w1d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jan 2024 15:14:41 +0000 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 402F193C019167; Tue, 2 Jan 2024 15:06:02 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3vayrkd7h1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jan 2024 15:06:02 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 402F5xup42336898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 2 Jan 2024 15:05:59 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 733B920040; Tue, 2 Jan 2024 15:05:59 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6701720043; Tue, 2 Jan 2024 15:05:58 +0000 (GMT) Received: from osiris (unknown [9.171.22.30]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTPS; Tue, 2 Jan 2024 15:05:58 +0000 (GMT) Date: Tue, 2 Jan 2024 16:05:57 +0100 From: Heiko Carstens To: Ilya Leoshkevich Cc: Alexander Gordeev , Alexander Potapenko , Andrew Morton , Christoph Lameter , David Rientjes , Joonsoo Kim , Marco Elver , Masami Hiramatsu , Pekka Enberg , Steven Rostedt , Vasily Gorbik , Vlastimil Babka , 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 Subject: Re: [PATCH v3 29/34] s390/string: Add KMSAN support Message-ID: <20240102150557.6306-G-hca@linux.ibm.com> References: <20231213233605.661251-1-iii@linux.ibm.com> <20231213233605.661251-30-iii@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231213233605.661251-30-iii@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: O5QiWeQIJAvGTp7EVYQbU-a0u6juWUh_ X-Proofpoint-ORIG-GUID: aPmHxOhkMHaWwlCr-kgZMDd0ueILkEpz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-02_04,2024-01-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 mlxscore=0 malwarescore=0 spamscore=0 mlxlogscore=910 clxscore=1015 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401020117 On Thu, Dec 14, 2023 at 12:24:49AM +0100, Ilya Leoshkevich wrote: > Add KMSAN support for the s390 implementations of the string functions. > Do this similar to how it's already done for KASAN, except that the > optimized memset{16,32,64}() functions need to be disabled: it's > important for KMSAN to know that they initialized something. > > The way boot code is built with regard to string functions is > problematic, since most files think it's configured with sanitizers, > but boot/string.c doesn't. This creates various problems with the > memset64() definitions, depending on whether the code is built with > sanitizers or fortify. This should probably be streamlined, but in the > meantime resolve the issues by introducing the IN_BOOT_STRING_C macro, > similar to the existing IN_ARCH_STRING_C macro. > > Reviewed-by: Alexander Potapenko > Signed-off-by: Ilya Leoshkevich > --- > arch/s390/boot/string.c | 16 ++++++++++++++++ > arch/s390/include/asm/string.h | 20 +++++++++++++++----- > 2 files changed, 31 insertions(+), 5 deletions(-) Acked-by: Heiko Carstens