Message ID | 20240621002616.40684-30-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 136DEC2BA18 for <linux-mm@archiver.kernel.org>; Fri, 21 Jun 2024 00:28:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 242F58D010A; Thu, 20 Jun 2024 20:27:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0B6138D0106; Thu, 20 Jun 2024 20:27:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DFC8E8D0109; Thu, 20 Jun 2024 20:27:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id B59098D0108 for <linux-mm@kvack.org>; Thu, 20 Jun 2024 20:27:10 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 6C29DA03F9 for <linux-mm@kvack.org>; Fri, 21 Jun 2024 00:27:10 +0000 (UTC) X-FDA: 82253006220.22.F2CCC2D Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf03.hostedemail.com (Postfix) with ESMTP id 3950B20008 for <linux-mm@kvack.org>; Fri, 21 Jun 2024 00:27:08 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=sUnHME64; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf03.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=1718929620; a=rsa-sha256; cv=none; b=JGyNSbIbSfWm3WCchD6pAoKz1aXPfGtfZRluqCxoRzkAef/8T15AE44XcPPUaLhXZnGZ9o nZCD+o99+j25yv4Oj/7L778BipDgLYuviQ79aM2J66QG7uYkhexh4ncMhKwLPvuDzLi0De c76jVtpS4J0BoYinwRgSmCrRVBphb0I= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=sUnHME64; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf03.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=1718929620; 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=lwqEGphQg9/N4AE+qTFRbf/COwqV90p8RxwOJfRaDvM=; b=cydGYCBLvXy5bwxnaLLeIPgIhyA+qsDvAhnmnIEPFZI7OZYf+O3yTlBNdbkEFyWeXhJgfq 0xCoxpx/WEdnryWFS+EzILx5nfMHZKRYbgxY8yR3On9Jlo5lgKCLXkFrdZuOMAKX3GW25s XeU+d7cGsgNKYNZcyRYZbDDw60ImKyU= 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 45L0R3tp023355; Fri, 21 Jun 2024 00:27:03 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=lwqEGphQg9/N4 AE+qTFRbf/COwqV90p8RxwOJfRaDvM=; b=sUnHME64zAR07GeAsCP+tfFazMxF3 AvF9W5UCwUx7LoW3WzAZfnxwWYON8fjMhK7kfN4JALZ+xlEgs5BsX/6eTrPpv3fe 9RRDK1FAnCTwPEjVN6GimR9wgNkYooDDWBPrtls4oszTTtcjE+CMn+Yz26QHa2Sv az7WoSlOb+sdcqh4z9iNwgdbzzDosvUCxXj55ZBlTFWgEFm0qIQAKtu/RYe/NbBL AVSFc8h+aLsCsBo267JOfd34MeDoj8t1pcjwCrxsRY39Xo/gW9rp0pm6YBLfFloI BqVKccJOkx3zRqBMooif8i+FsH4jOO98EtqS6RunC6DVPHHW+mncS9Tug== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yvvs6g7ss-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:27:02 +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 45L0R29o023301; Fri, 21 Jun 2024 00:27:02 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yvvs6g7sj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:27:02 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45L0DBDN019999; Fri, 21 Jun 2024 00:27:01 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3yvrqujnyv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 00:27:01 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45L0Qt5m44761488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Jun 2024 00:26:57 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7DF2120040; Fri, 21 Jun 2024 00:26:55 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5BB6820043; Fri, 21 Jun 2024 00:26:54 +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:54 +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 29/39] s390/ftrace: Unpoison ftrace_regs in kprobe_ftrace_handler() Date: Fri, 21 Jun 2024 02:25:03 +0200 Message-ID: <20240621002616.40684-30-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: N3pQcZOmYYu02d0GkX16fhENd3yleyOu X-Proofpoint-GUID: f6nbbUMMpzabyYE5l2CvSVqR2_ItvZYT 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=999 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: 3950B20008 X-Stat-Signature: dpkwydq71683pf8ujpmp4raxg8pzmn7f X-Rspam-User: X-HE-Tag: 1718929628-248737 X-HE-Meta: U2FsdGVkX1/D4xsEEmwu+bvhGMFi4WRq8ce4txv74krdiiHDCKcvJbKHUVqjsXklyuvzZWvj+M+4F89MCjudHtOT3hzY6ELW6u4ET3+DSF+RMaHVi+dpXzSKYD1vQYqN0USS80qep16UrqYLDCu9njn7/JczfGqQgClBhEr8E86P72Xrpcy4KCXELD0UjF/WyQMfD/+dCdhRp5UVonSnEm5NmLnfpuANoQpQJkI4Bf/RLnvaG2m7FOvvL6H/2LeVkwulDlSlNmcr0XyWBje52yfFIyDb8Vg+AVbUrPE6WAtACTNqsiXAEmY1/fIqirzo8Y2xXJCMWJWihAgEeIQPG4Kh8J+r286mQlnpyL734JAvdKBsJpqGbuc1JGbNzNnPQtN8qLsUeVVllV3xhTfL/QuNy1YPOhPHGDCHmnTm7Md8wdtSZkxJSU3htEMsWs/T67qVfaTdUSlMegNIG592GXZTLFk9FdVPvrURsCQgybOLRIKq7vabci43DwYBMvEsd6Vjnu4/p2NFzN1OH8bltBWFFGPYYzvizZf2T1dYBN2iY9CaMfJ5IC2Xpy33dIQlri79gQzwdJZfc371jtiQgkKebgaZyKOQzuZVnQlZLasAbm8tHUK2/DxdFfrlClaWb3SUAbkMAZs31+bRUjUCqSjTO/WFkRZAn2uxKIZfrB10AHqdHy7RWjGXTKkL21FS+T+HX79kg+nxiRjkihtFKFtjaQZl7umAVm2Ry7pYQMQQpXLVETAMJ9URMLT9NR4Vn2n/glvAH56F7T88SG9kcCefDR5NkphBGRfxT7nQcbxHV8poxouE9IAtfh1YPt2euzQUpdnhSg5CiX9E0t1l5eAEz8NYC7DalYO68EX+ag3MdBsB/FxD7UYAGaPv6jz7+tpTWfQde7ZyldJ+wFXKwXVVHjahEsFyOcgNzg+1Y8vYchsMpXfXa+7Zduk95FHIB0liJYN36EftDYpx4LT 8SJgLmGg N7la5QKinWxUnJ4nlZ1LSv4JurIJT8xItdSNYnfE4p+eej0S973NMLgIZuzaG5DGf1e4HuOkfdcKqKg1A8cdAENvyLyBIEvpiaLy+3ou+7G43zUwAKC1TA2m+x2RLp8hLI6shwPj6IUBDlmzC9ZujaoJST4Ifi74JtpGANzgMAozrJ4mm6ww+kDxdnG7OE//rlaARq80S8OYZLT/HQHCYZcGRNqPRSxT4qlE4jnxNiGNNPRu3k1uuw/iGpMstkvF5pTW66lk0fd6JihpEPgDln4zWKv/xyDCu5wjq8WdzehWObzgK6NCbnie8BKZFAJB7hFXE 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/kernel/ftrace.c b/arch/s390/kernel/ftrace.c index ddf2ee47cb87..0bd6adc40a34 100644 --- a/arch/s390/kernel/ftrace.c +++ b/arch/s390/kernel/ftrace.c @@ -12,6 +12,7 @@ #include <linux/ftrace.h> #include <linux/kernel.h> #include <linux/types.h> +#include <linux/kmsan-checks.h> #include <linux/kprobes.h> #include <linux/execmem.h> #include <trace/syscall.h> @@ -303,6 +304,7 @@ void kprobe_ftrace_handler(unsigned long ip, unsigned long parent_ip, if (bit < 0) return; + kmsan_unpoison_memory(fregs, sizeof(*fregs)); regs = ftrace_get_regs(fregs); p = get_kprobe((kprobe_opcode_t *)ip); if (!regs || unlikely(!p) || kprobe_disabled(p))