Message ID | 20240619154530.163232-26-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 B9C5FC27C53 for <linux-mm@archiver.kernel.org>; Wed, 19 Jun 2024 15:46:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9CFFD6B00A2; Wed, 19 Jun 2024 11:46:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3B81A6B02E6; Wed, 19 Jun 2024 11:46:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0526D6B02E4; Wed, 19 Jun 2024 11:45:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id B9D4C6B02DE for <linux-mm@kvack.org>; Wed, 19 Jun 2024 11:45:59 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 6C8CEC1428 for <linux-mm@kvack.org>; Wed, 19 Jun 2024 15:45:59 +0000 (UTC) X-FDA: 82248064038.16.8DA60CA Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf16.hostedemail.com (Postfix) with ESMTP id 3982B18000C for <linux-mm@kvack.org>; Wed, 19 Jun 2024 15:45:57 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=SsKZn0cK; spf=pass (imf16.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=1718811952; a=rsa-sha256; cv=none; b=LOoXaWPmJ1vjvFIeuoCpGJxzdnpVKGyeRXCtSzHvoGrYTND20zdDCcqM2kGMmpz4hV12a7 AiJNOiHqapZw3hTphoFjxM7TURTXt/r2fp/vUmk45XArhdQRy2eIdiAd75/Ympt8OshWMw DPhtx4VQDjLefuD/b0nQC7+1OTEpotc= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=SsKZn0cK; spf=pass (imf16.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=1718811952; 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=svhSlz44CE/Q1dcUno+H6unnREMTRpt1JOp730pyrKQgergZJXay8jndTeziN30tuyJA4t rB0RyMezFhkOeTSyQxpm5OUmNTCK4D7ZUzNhRftF423o/0CFgEYKmqIXJV5Z0C5MAV2Yxd k0L/SLUahDOHb48CvYmg+6RNDl9I8I8= Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45JBtn0b013583; Wed, 19 Jun 2024 15:45:50 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=SsKZn0cKLgdIX3sPQiOmvLkjObQmZ PnefpCpEP4K17+hbawNfB+uz7G1zrOWA3KgrsxMIW95EzSoJdM1ouPPK1xj/N368 gMW0uKDSLChKDOk9VLW3whBDzBSJfIDtttQZyQpZddZUWe/dLKmdgO0KDcEQXDVC Y2scRcAOWdi7Dd0rL8fkCvGhFkTCFoQd/PX2SVHSAbV6DNTefZliSH02qszgy6wl jSll7KOjuYUC6/0U0gU0DVIwBTstXllBX8sAljJkyo1I+h1i+rdNAkS/ikkuNcRU m+hEcQFhhVmyzls5xiEj3BekLxEHE61gEa4fay86AXqmvjaj6KZ0YcYPg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yux7j0tcg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:49 +0000 (GMT) Received: from m0360072.ppops.net (m0360072.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 45JFjnY1028879; Wed, 19 Jun 2024 15:45:49 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 3yux7j0tcb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:49 +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 45JEK19d011052; Wed, 19 Jun 2024 15:45:48 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3yspsndtnk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 15:45:48 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45JFjgNr33948062 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jun 2024 15:45:44 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8C6D92004B; Wed, 19 Jun 2024 15:45:42 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3DE1D2006C; Wed, 19 Jun 2024 15:45:42 +0000 (GMT) Received: from black.boeblingen.de.ibm.com (unknown [9.155.200.166]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 19 Jun 2024 15:45:42 +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 v5 25/37] s390/cpacf: Unpoison the results of cpacf_trng() Date: Wed, 19 Jun 2024 17:44:00 +0200 Message-ID: <20240619154530.163232-26-iii@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240619154530.163232-1-iii@linux.ibm.com> References: <20240619154530.163232-1-iii@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: eRJ1Fir0D1OliqMOkMThbCdRt-m01UDf X-Proofpoint-ORIG-GUID: sHcrT9dgmrwcrd7AfF1kVUbgkO9GX7zc 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-19_02,2024-06-19_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxscore=0 malwarescore=0 clxscore=1015 impostorscore=0 adultscore=0 bulkscore=0 phishscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=780 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406190115 X-Stat-Signature: y1pz9pzfiasfnregqawkj87zzp986m4q X-Rspamd-Queue-Id: 3982B18000C X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1718811957-919936 X-HE-Meta: U2FsdGVkX1+1zBzQEHniNzdJRD1Fco32bI6j8EL8sKw4MbKE3bjzsw8BibssTQDQFJZ5H3aNLDWw9nMHqcKL3y0E8IiS8o+LoGKC+rldscRV8tyQAf/KOm/XnAkfZ/kenqPnphjyBzzRkf8xLYrsDJGb0eIfUBsg9AqKmzxZRgChI2lm5P36fX0MxLg2u0T/mxvFilR10Bj5+VniMGqkmM3fKlNIJB5vKsPNlqlPBxBE/ERODZYnD4ovApbOgaWkmvEE/ObSuSbBrHwJMe660MAK27//NkVPQLpHIWPsDhOlhX6EREQ8Fc1ss2OinrrW0BQwweCKdrTDi6gd/VPXSg8GbzWmVmZfIaTJDdWQvCrzt9TlKpD2pmArtbgikCpgtXPhWm0HVuP41qY85m2knqecSIuKgAf0ubuVlHxIl9JvsXL+ueRsdLQ6ZznYg/QvVfd9jDO/V3LAu7RlV948XevPhKopyi0OKKil6lsIjMOsYW8PT5+GzJwkcInqAMTgJlCpNoXS2Wsr5vqIfdE3ubtJIsx7THMoY4WH6vYYWHiXivkBG1Xhly6XAOsFibfRwzdgHZwBvjJdPYhi8ShgEo0Ss3E00it1l0Zl23pEBlV/wM66hYfFo9QV98UGPJF3Gvw8MJJBCT1S+DkF0fusntiYJcYlJbUr169diIzsX2D2M150JuoUCf2GcEsDQQrwurfAXZbBcY5WH6Anq57JgdVSOkhM07D5jCLG0ykB04FWufV3qK5y/3mA21CTXfsPETgFacveXafy7S/uWyisQff26BTt/A1vTLZRO5LukHQ+4zF8wI72P2N6YhlKWG05K0eRMBO07qikDt/WoOn4owQpL4jRzm/QFGxMk+CRq+zCtKI8cMuZMtcfNNKq6BgjFFnzcAUOC+6AwLq8V2+xGp0GLFMREBWFCwiNDHsYKU5Q937rt64abN5ejb2FUUCBk5Fsz4YNG5fGOXyFkWw bgYTq6t7 e6y5lUYNxnCMW7ls2/u62yHNbrel+qr4LqcmlOYAjcdcKt3rCzmhrcU1+DKJJxHGi9/YiYaQyJSZ/IbzGS5JmmNCZ6YUTMuzgrQnH2sDFoO4bKo89WNgBrDM3/yft33MHVVZoUO+gtZF3Jt+3eQgMyr5NP/B7fAavoD4+gM5Nnm9iOsQzNAQh64SAKTGcqjEv+aqKNjJUNY4fmbi/WdwO3PtojOhjlIs1XrxXVSZ/3vxBU40u24YIApZYIufw6SMuSloB96Oy7JfcK1VyV8LlVULYxlPE1cMEc2hAfDtLnfGhZhXcLMmbsrELvl8QTZVDQlO4 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, 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/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); } /**