Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp559100rdb; Fri, 17 Nov 2023 06:39:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXkR+JNvzxKENNs3zIIO8o36mQsSd5UWN4bRXwlU3xcKK88yxiSQR9IkHBJh1cYvzRADLt X-Received: by 2002:a05:6a20:6a03:b0:17a:fe0a:c66c with SMTP id p3-20020a056a206a0300b0017afe0ac66cmr7194508pzk.2.1700231962637; Fri, 17 Nov 2023 06:39:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700231962; cv=none; d=google.com; s=arc-20160816; b=VXvX6+mwEy0o88KwcbCcXJHHeYbH1vzYQl3bVYCkz8/XIZ4B2r12raN8J1OZ+ReKNM sJYNlHoqe8CcUflqJSbMT7AMX/i1/tWuFJlW+WXVcrJzR87X41IFh02LOBA3LohzO/ln iDhQHDdtNkUw2/eh9kUg3WxjLId1Kv5zme5jA4G96UwP/JIP5FVEjHwk+Z41khGReEHZ VYKlQ0vcvS3h/RNianS42qTZ3e0rjtD/0t+SeHvWjZUqfN02Cysry0YQX0ZXZ1DKVwGB c87lSdeejoBfkMA+3IlPbqn5YL1EF3kudeBTimdJJI6wzJbpcoNHqYLRXsyTyI2PBWBc XfvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WM0V+hyIL7XQpkQLI7/vp+KVsKdSoxJq5T+sk4kaJp8=; fh=0NPvEPSZYnEx0+tQAm1Pj+mVBHmaQ3YEr5maMaBgjqo=; b=DFiMlc7nTN20Z1zzY/q7XW98ny0pIDNHVizYLNSR5VidPGk38SZcDC6KX25BPuS5X2 J6kt/Vrx1TgQOn5JlhyPPz+GVgQU9YUjy9i+AA0UyhPH5oZgGeV9AyVypY7BZ1L0UFmJ IqgrwLX24fzl8pqsr3duH7w+acwgJG8/quHAzwoOx0srbj+kNgdRNSs88y5xGtXopiYF iLkWtQDw9SqCB4GXnhNZW6RiybZpGlZIpu8jv6K51jJI7fF8OLMqHUoNPrXJHp2D2mbo u6fOQh0fXbOVLU6opYF7aaUcgeBn2RiRRzYEIloz7PJyniZUxO92I9Evpgqrm9+u8yyw bEyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=byYTbKI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id f3-20020a631f03000000b005b9519d9e3esi1995548pgf.242.2023.11.17.06.39.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 06:39:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=byYTbKI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0AECF830F578; Fri, 17 Nov 2023 06:39:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231683AbjKQOjC (ORCPT + 99 others); Fri, 17 Nov 2023 09:39:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230513AbjKQOjB (ORCPT ); Fri, 17 Nov 2023 09:39:01 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A984B8; Fri, 17 Nov 2023 06:38:58 -0800 (PST) Received: from pps.filterd (m0353728.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AHEbLvY016889; Fri, 17 Nov 2023 14:38:45 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=WM0V+hyIL7XQpkQLI7/vp+KVsKdSoxJq5T+sk4kaJp8=; b=byYTbKI2+ALS/X8OP5GE4Oeq4ZDkPwQYCFsPI9xCo1O/TbpHwHgpQBGoqYAceddmZb2Z BA2Op40jyAI8w0v4bEyTTihpiUrT2+Hu9Bd+lmq/EecLLymPs+RbOLb/jX81kuDXar+h FbdmlEzqY7gPuUVrE0EEQKfI456K5hvzp3/xd27YFE6ayg20wZk/Wbkcj+FwoML/covo 81FU0kQRCtvbfaq5H9kI7l1/2At5ttb5O28FN/ac4PdBvdVMc8gDfS1FEFQn61r969mU TJF8UzyLtqeTC6rQ/sq4I48KgSoQAMiss2v3T4ceCF9oYCCXRWpooUUeJMZQ1u84nMWR Rw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uea3h82e3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 14:38:45 +0000 Received: from m0353728.ppops.net (m0353728.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3AHEbqoK019193; Fri, 17 Nov 2023 14:38:42 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uea3h8249-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 14:38:42 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3AHD41sa023047; Fri, 17 Nov 2023 14:38:33 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3uapn264wt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 14:38:33 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3AHEcVai22413826 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Nov 2023 14:38:31 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6462F2004D; Fri, 17 Nov 2023 14:38:31 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 860F720040; Fri, 17 Nov 2023 14:38:30 +0000 (GMT) Received: from osiris (unknown [9.179.8.115]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTPS; Fri, 17 Nov 2023 14:38:30 +0000 (GMT) Date: Fri, 17 Nov 2023 15:38:29 +0100 From: Heiko Carstens To: Heiko Carstens Cc: Steven Rostedt , LKML , Linux Trace Kernel , Masami Hiramatsu , Mark Rutland , Andrew Morton , Ajay Kaher , chinglinyu@google.com, lkp@intel.com, namit@vmware.com, oe-lkp@lists.linux.dev, amakhalov@vmware.com, er.ajay.kaher@gmail.com, srivatsa@csail.mit.edu, tkundu@vmware.com, vsirnapalli@vmware.com, linux-s390@vger.kernel.org Subject: Re: [PATCH v5] eventfs: Remove eventfs_file and just use eventfs_inode Message-ID: <20231117143829.9674-B-hca@linux.ibm.com> References: <20231004165007.43d79161@gandalf.local.home> <20231117142335.9674-A-hca@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231117142335.9674-A-hca@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: NvQfGLlneGpQnZcDGAkndaGx_UifV0TY X-Proofpoint-ORIG-GUID: 1hU4o4hwC7tmD3FWJvrLhd2SjgCKapbg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-17_13,2023-11-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 suspectscore=0 bulkscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 mlxlogscore=555 clxscore=1015 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170109 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 17 Nov 2023 06:39:20 -0800 (PST) On Fri, Nov 17, 2023 at 03:23:35PM +0100, Heiko Carstens wrote: > I think this patch causes from time to time crashes when running ftrace > selftests. In particular I guess there is a bug wrt error handling in this > function (see below for call trace): > > > +static struct dentry * > > +create_file_dentry(struct eventfs_inode *ei, struct dentry **e_dentry, > > + struct dentry *parent, const char *name, umode_t mode, void *data, > > + const struct file_operations *fops, bool lookup) > > +{ ... > Note that the compare and swap instruction within d_invalidate() generates > a specification exception because it operates on an invalid address > (0xffffffffffffffef), which happens to be -EEXIST. So my assumption is that > create_dir_dentry() has incorrect error handling and passes -EEXIST instead > of a valid dentry pointer to d_invalidate(). > > But I leave it up to you to figure this out :) Ok, wrong function quoted of course. But the rest of my statement should be correct.