Message ID | 20240621113706.315500-27-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 B1E58C27C4F for <linux-mm@archiver.kernel.org>; Fri, 21 Jun 2024 11:38:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A77EA8D015B; Fri, 21 Jun 2024 07:37:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A00738D015F; Fri, 21 Jun 2024 07:37:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7DE558D015B; Fri, 21 Jun 2024 07:37:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 51C2D8D015F for <linux-mm@kvack.org>; Fri, 21 Jun 2024 07:37:41 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D2CCDC0D8E for <linux-mm@kvack.org>; Fri, 21 Jun 2024 11:37:40 +0000 (UTC) X-FDA: 82254695880.23.BBB15A7 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf23.hostedemail.com (Postfix) with ESMTP id A004514000C for <linux-mm@kvack.org>; Fri, 21 Jun 2024 11:37:38 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=iYs1hdzC; spf=pass (imf23.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.158.5 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=1718969851; 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=K/viBy/PeNICITSZpD3tBAO/npQA3ucnq3Zo5JONrlk=; b=oQ+FBWQi++9Z0TiuapeeZlfn8rfYl37vwBTd6OI/4G4r5h+ixb2z852pST9Wq8RWf0y15a RMT187B8y8pCDl5c9Bl5x90x3YAzPaCO2Sh43FkVx5lz6jPnPLPT4whCmJKnkcli7Z/QaV Z9MMQ3QbL0mNoj5rqrPcU4aHjKg/B0k= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=iYs1hdzC; spf=pass (imf23.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.158.5 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=1718969851; a=rsa-sha256; cv=none; b=lmFdx/Nxs8yeH/6wB0PvAjh9aTEkAjckUqe3Wy66LuevG42jn7A1HafQnuDavMLOLkGHEC GPIhEEkR8AL2ZgvcMut+6BUnx7s+CiHa4keBCeZEf6k2RXPKgF/ymyIW00NOB6Ofs+GXC/ MWMPCxK4S44m16co6WMSuVCNNRmx0zw= Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45LBUfcr008189; Fri, 21 Jun 2024 11:37:32 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=K/viBy/PeNICI TSZpD3tBAO/npQA3ucnq3Zo5JONrlk=; b=iYs1hdzC5boJxwq7/S5rhcLPcqTTj tZGGqlLP19xQn1K58V0/wzSB0ye2Hrebi+x5BhZRFjnBfS2ES894o9mF6FepcnY1 WzkK0JL3EMZOgGwxFkqkZ/LqA9SvXU1aVXZkuJ/8ARJCiRnKKW/5EdsxD8EoaiZu 4AXFeMB4rHp46+9WA4XqIo1gi8c5zgZjsfzuQN4zmZmlL0u7PL3UD6H/bZuAA+Wv ceriske3cK2KnpfqkSf0CFPVZ2FkC2ukoJz1uG6bQiYBDn79R9wE8yNmTJ93R7Ag AM6lIdcXwxjAw/3pLid9Z+OR3PqkdxS5gkGfYGuawm7L3YGLM3ivxp7lA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yw7t50467-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:32 +0000 (GMT) Received: from m0353724.ppops.net (m0353724.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45LBbVkE017536; Fri, 21 Jun 2024 11:37:31 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yw7t50463-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:31 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45L94RmU031319; Fri, 21 Jun 2024 11:37:30 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3yvrrq6vg1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 11:37:30 +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 45LBbPFO18153734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Jun 2024 11:37:27 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 020D82004D; Fri, 21 Jun 2024 11:37:25 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6B5152004E; Fri, 21 Jun 2024 11:37:24 +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:24 +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 26/38] s390/cpacf: Unpoison the results of cpacf_trng() Date: Fri, 21 Jun 2024 13:35:10 +0200 Message-ID: <20240621113706.315500-27-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-ORIG-GUID: I7H6xZfZqOjODjPNPTm_ct-_p8FpZMwq X-Proofpoint-GUID: 3FJaVmD-eWbIAIcr6r1ict5AbgqpNVvY 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 malwarescore=0 phishscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 mlxlogscore=780 suspectscore=0 mlxscore=0 adultscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406210084 X-Stat-Signature: nrd5pbp67armomgonzjqph7me55drfxi X-Rspam-User: X-Rspamd-Queue-Id: A004514000C X-Rspamd-Server: rspam02 X-HE-Tag: 1718969858-231015 X-HE-Meta: U2FsdGVkX18GFRHD8HJCB8P+/QhTuXD2UjUOJQ4r6rHo9m2uiEZNPIAGI5Cpu8jvQP+Wo0Anv0pS5cAfkb/Xh6dwbRy/O5KBl/zvUGnLW9AaKqA/j0jPlVTMv0qNGSO9CFeEpzX154U8HmxOlPdwv8O+GbZjyKdfIiBMRfNwUB1LLQ2CkZWmk9R0tj1C2kaNK/zdSkQ6v/7W2KpOoBxFUhktscsDjRejhvduoYtsljdwtUzsIC/qst/A9sBbroxbgQkDGRHjVFtXRwW9mYFOQxyVw2+JWywfu45I5g24G5JuuHIaVk/hpKNuL7UY0db7sSJ12ps75QPpmp+xt1Oh0SA9GdaRl1BFbC656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.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/arch/s390/include/asm/cpacf.h b/arch/s390/include/asm/cpacf.h index c786538e397c..dae8843b164f 100644 --- a/arch/s390/include/asm/cpacf.h +++ b/arch/s390/include/asm/cpacf.h @@ -12,6 +12,7 @@ #define _ASM_S390_CPACF_H #include <asm/facility.h> +#include <linux/kmsan-checks.h> /* * Instruction opcodes for the CPACF instructions @@ -542,6 +543,8 @@ static inline void cpacf_trng(u8 *ucbuf, unsigned long ucbuf_len, : [ucbuf] "+&d" (u.pair), [cbuf] "+&d" (c.pair) : [fc] "K" (CPACF_PRNO_TRNG), [opc] "i" (CPACF_PRNO) : "cc", "memory", "0"); + kmsan_unpoison_memory(ucbuf, ucbuf_len); + kmsan_unpoison_memory(cbuf, cbuf_len); } /**