Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6589773rdb; Tue, 2 Jan 2024 06:57:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGjvQavpsQTEOEAquROCR4uUGa1f4dGHNmElcbIi0GM2qUR5cm1Bz2prV9cjro/RLJBzEB X-Received: by 2002:a05:6402:1283:b0:555:204a:beb3 with SMTP id w3-20020a056402128300b00555204abeb3mr6259986edv.59.1704207449953; Tue, 02 Jan 2024 06:57:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704207449; cv=none; d=google.com; s=arc-20160816; b=POlhPNXUD5HeQqE8ntrp5RY5n4c3EQke9he8NStkigwpjUFC9KzWjoHIeOOp37Gsg/ z7MQYmcRcQ9krZNKjqSqSYgooRgTSLR4kLVrmjqL5LKRPAxryOS3RJ8ES0xUpz0L+nP0 E3M+nVa93dDxueEtxa0Ggu6JzyCqSpy/1Bl5SpCOuF1ZoiITPFUlGon1frjNqTZbbOA5 Csbs8oL+JUsEIaO0vnVCF75YTye/ltPIfFOkRbLq43O9d2vBZNLByw9KX11HSpbViwLC lYGnYOGQ96HF+JRdBa4CA3ugGwdir/eFpqvOaH13ZbApdMUyW10Q7TvO9L21wDy09WfU SIgg== 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=lsm9Z8oSWVZr6wzE5pLu0Eka6uF10LkWTmR40tX3qI4=; fh=mnX3wLuzTrkmgdlNsEgQXOForHn3WUzT3G0xt8tsRls=; b=MMSDo/zC4fnmLumRaPhrXOMN3SOAAbnbU4MgCHVCDx8OtUOrqCtztjhNgaKl5ZKYCb dbHp4/eH9grp1voCZ3EMJoypcq1DjdgbhJKvGmesgGkqXGIBxhHo0Iei3dsYard12umj XqXGUzmPyf4EJlPu3R8KJosVyTDBQwC0pAqCB9mlWw1e1UO5jnAr0UZkJ5v+DmyRk93S JOwz2Sva3zkIKqNiPy4FHBUPAcJFPjAGnemUJLwf6Kr4Fc9XQ/kbxQNb/0COIjcTrvW9 0ppyUUIj1QWX6e33K1E8tWPBTZaSVgsYTk44YSQkKuBQi7Vn9pG9zJ7ruhyX0FOeYrFP GyNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=UPkFrzD5; spf=pass (google.com: domain of linux-kernel+bounces-14516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14516-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. [147.75.80.249]) by mx.google.com with ESMTPS id r28-20020a50d69c000000b00554bc9e5857si7756130edi.147.2024.01.02.06.57.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 06:57:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=UPkFrzD5; spf=pass (google.com: domain of linux-kernel+bounces-14516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14516-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 AFF691F22E30 for ; Tue, 2 Jan 2024 14:57:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1D5612E63; Tue, 2 Jan 2024 14:57:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="UPkFrzD5" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 B722914278; Tue, 2 Jan 2024 14:57:19 +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 (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 402DiYWJ028306; Tue, 2 Jan 2024 14:56:57 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=lsm9Z8oSWVZr6wzE5pLu0Eka6uF10LkWTmR40tX3qI4=; b=UPkFrzD59Aq9QpPotaEKCmGGdd48wOVkpsN/+sKlWlyzH/BgAL+J8V/hik+EZZ19tTR5 IcMaxoe79klGubMjJBol10TIoDSWV1xZ3IQCd1TYnkEM0rw6bhkNvCxbCdk5x8U87qO3 ErN6FRxXvGfjzUal1+zT2Itf5pUGDtalbQ9iu1gpNk2KFhxe+BbMfryaFGxS5P++memF J2XrJZYcMKt8gCPKyqV4igNdGdtJF0a1W/zjcJgFu6EcIYkiI+eOm4wCvto6HQSnsZZE YEwrSVXgSYcXjmTnxR51KDWatQAh/8+J22E+SttKfA8OD4ptVWiAiaZTHv73bftBAhpf 0g== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3vcjquu2mv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jan 2024 14:56:57 +0000 Received: from m0356516.ppops.net (m0356516.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 402DifJu029532; Tue, 2 Jan 2024 14:56:56 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 3vcjquu2kf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jan 2024 14:56:56 +0000 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 402EUC52007568; Tue, 2 Jan 2024 14:56:54 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3vaxhnwena-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jan 2024 14:56:54 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 402EupRq9503450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 2 Jan 2024 14:56:51 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 752C820043; Tue, 2 Jan 2024 14:56:51 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 582982004D; Tue, 2 Jan 2024 14:56:50 +0000 (GMT) Received: from osiris (unknown [9.171.22.30]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTPS; Tue, 2 Jan 2024 14:56:50 +0000 (GMT) Date: Tue, 2 Jan 2024 15:56:48 +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 26/34] s390/ftrace: Unpoison ftrace_regs in kprobe_ftrace_handler() Message-ID: <20240102145648.6306-D-hca@linux.ibm.com> References: <20231213233605.661251-1-iii@linux.ibm.com> <20231213233605.661251-27-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-27-iii@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 0mYsWeZo8_mKnSAkujm5HJyJGjjC43NV X-Proofpoint-ORIG-GUID: 8KZKMcBNnDM3yBYkxj3czEh8Z83hu_tr 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 clxscore=1015 phishscore=0 mlxlogscore=704 suspectscore=0 adultscore=0 priorityscore=1501 impostorscore=0 spamscore=0 bulkscore=0 mlxscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401020115 On Thu, Dec 14, 2023 at 12:24:46AM +0100, Ilya Leoshkevich wrote: > s390 uses assembly code to initialize ftrace_regs and call > kprobe_ftrace_handler(). Therefore, from the KMSAN's point of view, > ftrace_regs is poisoned on kprobe_ftrace_handler() entry. This causes > KMSAN warnings when running the ftrace testsuite. > > Fix by trusting the assembly code and always unpoisoning ftrace_regs in > kprobe_ftrace_handler(). > > Reviewed-by: Alexander Potapenko > Signed-off-by: Ilya Leoshkevich > --- > arch/s390/kernel/ftrace.c | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Heiko Carstens