Message ID | 20240621002616.40684-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 E9638C2BA18 for <linux-mm@archiver.kernel.org>; Fri, 21 Jun 2024 00:27:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 992C38D0105; Thu, 20 Jun 2024 20:27:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8CE3F8D0104; Thu, 20 Jun 2024 20:27:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5C2138D0105; Thu, 20 Jun 2024 20:27:07 -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 34B618D00FF for <linux-mm@kvack.org>; Thu, 20 Jun 2024 20:27:07 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id DDFB9160702 for <linux-mm@kvack.org>; Fri, 21 Jun 2024 00:27:06 +0000 (UTC) X-FDA: 82253006052.09.3D65C01 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf15.hostedemail.com (Postfix) with ESMTP id B2DADA0004 for <linux-mm@kvack.org>; Fri, 21 Jun 2024 00:27:04 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b="cy2g/IQJ"; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf15.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=iii@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718929616; a=rsa-sha256; cv=none; b=iAFK8sI8o4fTl62HixeNOvnNTGRsWJn2LgSiyQWH51jqlpP7HHUukAkmTWzIgGV3QjlUvE 3Wvfq6mw8mSN6u7RAuYiEufUIch6tV19snKMVa98Cu7zJLtMFTa7S28bjQBR0Cd/i9hWXQ PIGgsitAWEcldSro+yLHFiY+G+rsD/w= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b="cy2g/IQJ"; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf15.hostedemail.com: domain of iii@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=iii@linux.ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718929616; 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=45IpU2Jit5c3uKirDM03NvybFusl3cyCYXD0VP+M2DtVDwL5lWh0UR02/ddG4PsZA7Kceu MghUloefoAnaUb+Mm6h9pFik+yUrNGJjpQSOSKjohUhCl3O7TPgWVqgpoCTT9EnoUKdjj0 b5d0mWWmmy+YnkfQbPNjUD1fXVkYlXU= 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 45L0QxwU023263; Fri, 21 Jun 2024 00:26:59 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=cy2g/IQJ/rIC37eXKJgyjCiCGbIyu tKRrrpl7nuQQiFJlc60Y2DCFhvK+PLKi44YCFJbMvtAjwlWiPFKYltlIIlqOMCtt apOdrkBvxP7xc4GeTA9BzQ6JurhS2n0M26WmiHIbRV7VmdxRmxAABkgIe6jp2eKS irqQGxXyvB21z8fT3F+O2kF2un7qUzrmPn8oKQBidhQwMrQx5kd9o1gOsIVL7Fyn KiUSY/KupVXdQp72xf3m2yIC6cwX17/4e90+4IF+0tYNAiUfsW0rgy9RIcwl7N+4 xp8iT00GDd3vq5s0wvYdPdHNo2v00OrILQF4pRSUuClEIt/lALkkXqasQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yvvs6g7sd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:59 +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 45L0QwpX023250; Fri, 21 Jun 2024 00:26:58 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yvvs6g7sa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:58 +0000 (GMT) Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45L0Mhnm030888; Fri, 21 Jun 2024 00:26:57 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3yvrsstn39-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:26:57 +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 45L0Qp3M52756748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Jun 2024 00:26:53 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CB30E2004D; Fri, 21 Jun 2024 00:26:51 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AA86420043; Fri, 21 Jun 2024 00:26:50 +0000 (GMT) Received: from heavy.ibm.com (unknown [9.171.10.44]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 21 Jun 2024 00:26:50 +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 v6 26/39] s390/cpacf: Unpoison the results of cpacf_trng() Date: Fri, 21 Jun 2024 02:25:00 +0200 Message-ID: <20240621002616.40684-27-iii@linux.ibm.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240621002616.40684-1-iii@linux.ibm.com> References: <20240621002616.40684-1-iii@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: pFMJ3VX5eByn_XhL8lU2OEpij4dBIlvJ X-Proofpoint-GUID: RTniQi-mQ5NH7pBqPS4RncFDW36QzFEI 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-20_11,2024-06-20_04,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 phishscore=0 impostorscore=0 malwarescore=0 mlxlogscore=780 lowpriorityscore=0 clxscore=1015 suspectscore=0 mlxscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406210001 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: B2DADA0004 X-Stat-Signature: 1qx868tn5th8jybg5apjrfh3q3onth3h X-Rspam-User: X-HE-Tag: 1718929624-725731 X-HE-Meta: U2FsdGVkX1+uLRT2EEbgk8JjHAnA9wRKa8iAngT1zjbx1/7TjpBfguUpO6bJ28wp5ym7fXU4hGwJgWoEXRyqqvJ42XZYraSZQnfv2PA8w24pyxLrMvwFLvmkgei7x8hTCCK92+Xx9syzgRS5T1uu3z3fEeijPVgDKUTpKFMRK6FKclhVy+KXiVNd3QZmnxFMRnb80YisiISaeuS3tCTFlntMYIhmf7P9HLVcD7B7hOR0HY/YnQVhKIrCxf+Gb5Tf/GmjwnxyG7N0JXOfC9mnV6XJY3A+iKCr7OsLGQUi8LnG+8tJYhihgujto5ys92EZmy7EchD6IbRCVylIWdznXoJfA9r+pyQVSkWebqBY/6bwnxrYifmYM6vnDyFJRKHKtQyWvpolsuPy74/Jt6ZPQIM18xHb1rlCFdu91CuB0D286Hw6K1Cy9m7xryuMSaYGAhYjSuLVPNkjxjPmrLtGTob/4cFz9cCowR24rsTvaHq/O692Tt2UQ8XCQUGDk4HbzG4HcKoToWTr2iS8iZPTDybr7O74eFw3yeDNXbcXZV7PTg8+2URbww/qFlGqOhlcwYFHZ+hUDN43DSq8BDGlHUBNTi7ErYHdSPU8j+w1INp9J9FK6Q1lQTL3FYZb1o08Jq0HbHlEx4z+FLHC25JpvpL747p8fNEGDY/qFavuPIbp8er//wMVj5itO4wqR3SQ8Od9chcIK+RYtc85O2aOGJ0Ms51zgp09MdES05AqaWq6nu+hl4eFn/9NLBYqHQkLpwdFa/BoTuJj4A1MN6h/tarYuUG4Y3kUBv53G7DpMyWiS33DwCTCvJBJvluN5IUzUh9RPJTcXE+ye1wozV8ToDIwc95buk0QOoxQqTo/MWps3NTEmhY0IkhTTnh/94uxuIMGpJfcyPkvjFOTdVmRIC9hZQtb0cZwRd3v/HP+1wQG6E87RJKOIWETThpCK8N8WrJIzKcewZJWj/iT4LB EY/dVSSY kAQ/70hatL+p/9xrU2gm0w+rEcyQicuhs97XR1WwX0N+t1UwnKqlq6nk532pAWU3PUDQuXodhaDYvg5CQIctjZ43mPa6lkijsJCLeBx5pTxhXFVgpOW2z8HFtnfJ/PiE6FEVPxo7kK9B43hUaE0IOjDnII5RhBiKtUf5c8CyzRbGI1EDTRI1p1KGfw5Vvr2fj/OFhTHg6nOwUrpVr/ZuqfSICKPw4B0b6LSx9sFKeksyIK8SNVe/Ae9srMvZRnz1awDbcbVUpxP8x/5pKjDuOHm9GQrpw5NlL+ljUcgWbwI5e7+aup+VwmqRK4l2FfQWwEGF+ 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); } /**