Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp445344rdh; Thu, 23 Nov 2023 08:06:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyN4tHw9qgs0e4yN8v1QGmGZqyBIc9YBNGjYl3WDX+VGvC7USqy1GZgDw/yHBNc7CMN7z1 X-Received: by 2002:a05:6a20:1612:b0:18b:8dfa:8946 with SMTP id l18-20020a056a20161200b0018b8dfa8946mr85094pzj.13.1700755612906; Thu, 23 Nov 2023 08:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700755612; cv=none; d=google.com; s=arc-20160816; b=fT9BcLA3Xd9uU2gmkRej1hvO292fXUs8JB/yU3+6PZ1+P0hXSe5TnTgkdVyPmemZPW PELIiVKVZKAp9ArOWLSuuSElC3Fd69Ven022HTAf+tiIOkgK61cReS/DzSW9PIBKfJwl oDmLIVZEZn02KGHZm2bp7z0ECk18KGaJ1KuXmjqvUiFG6iJlNTo4myCskOMFQiEzArHT 4P+oecc6fse/MxkybHMvfcNHgtYbE8lJKFL27wNYCO6zEo7E4iADcJxX3SBESoxqA2fo T6j6Q8EzUdADsWgi2Zs47yl7IznqFSej7K20CPeXtA0isGzzF9rDCQrilJeB5+uectQy I0Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=K+Wh+d8J7rh0s3Lq2zXWuaoXUK1T2X89T09eukRww1M=; fh=iXjQeftcL/F9WNR9wXDjVtYKv7doUmeh0GBmWBSTSXI=; b=q3sR27rUAXV9KBBLTEZIwPuuqBZVAt9/yyCg9gUbDMZ8TzrjeplPSoTPWPOtDl2tLp jPYDt7g2hXW9BSGuuOlX43QEgit+PsX61mhvBqs8e7hvF248weeFhSfkPxePda/2SFzW i5p55fP/SRpztHWSQVn0ZecDUEi2zK39RKjo+kNhio1F6xFZFZg0hsM+pF6jb5Bklomu 3O+JSrNwhWQFu0KrzxBjJEg6LnBtF7WfLpL0c70YzXH2b3K3OVo2S4cMezCaHOmk4pR3 oCX+n+EP42PGygJCwq9gUTtRdyEiM6Ixv2c2SNMXj2aa5YXzUKvZedhlGM634F8S/E9F s8fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=MLL3UYjo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id be14-20020a656e4e000000b005bd3ca6c394si1687836pgb.43.2023.11.23.08.06.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 08:06:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=MLL3UYjo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 F158A832543E; Thu, 23 Nov 2023 08:06:36 -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 S229744AbjKWQGX (ORCPT + 99 others); Thu, 23 Nov 2023 11:06:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbjKWQGV (ORCPT ); Thu, 23 Nov 2023 11:06:21 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3F3110C2; Thu, 23 Nov 2023 08:06:27 -0800 (PST) Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ANFDGa7031479; Thu, 23 Nov 2023 16:06:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=pp1; bh=K+Wh+d8J7rh0s3Lq2zXWuaoXUK1T2X89T09eukRww1M=; b=MLL3UYjolqNRHyEYsKtnAvSX1s/BwBqQO/wo519WlXa1BoXsEhYHsu9V5wA8qqjnvn3i hA4UpfuwrbEGJ3NhbgDwLoDwaybiXe6A+LCfX6/fXcvSCwon10w7rQEasfGSf2f1rUDW 6dVyoW5zBO4mBnTQPBsTGwB/9MHanyFi2tTmMr6bWXoe3KIu+YMDI/KoMkU0cFvOUixa E4ctVMZWIvmRXCscjSxL4RJfHogooXsyZ0aIFplWMtUQiQLd+55A2u0Td/oyHxF57k7E DNphXWUd6dy32ZC/lzmaNiraByBLFK/CctChKvNzC8z7JuxFr5aRYY0oVAU+nFLLb4+R 7A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uj969hev3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Nov 2023 16:06:08 +0000 Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3ANFcTCS015116; Thu, 23 Nov 2023 16:06:08 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uj969heuu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Nov 2023 16:06:08 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3ANFmjWs008996; Thu, 23 Nov 2023 16:06:07 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3uf7ktgb8g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Nov 2023 16:06:07 +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 3ANG65QW66060694 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Nov 2023 16:06:05 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8717F2004D; Thu, 23 Nov 2023 16:06:05 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 971C720040; Thu, 23 Nov 2023 16:06:04 +0000 (GMT) Received: from osiris (unknown [9.171.55.214]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTPS; Thu, 23 Nov 2023 16:06:04 +0000 (GMT) Date: Thu, 23 Nov 2023 17:06:03 +0100 From: Heiko Carstens To: Steven Rostedt Cc: 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: <20231123160603.9603-B-hca@linux.ibm.com> References: <20231004165007.43d79161@gandalf.local.home> <20231117142335.9674-A-hca@linux.ibm.com> <20231117143829.9674-B-hca@linux.ibm.com> <20231123112548.9603-A-hca@linux.ibm.com> <20231123102349.110e4525@gandalf.local.home> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231123102349.110e4525@gandalf.local.home> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: uqkeVX_uUbIjzgxUDUo7AiPsxkAaIws4 X-Proofpoint-ORIG-GUID: jBs3tPUlKG22GKF_qg4qexeGNwefmy1E X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 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-23_12,2023-11-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311230117 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]); Thu, 23 Nov 2023 08:06:37 -0800 (PST) On Thu, Nov 23, 2023 at 10:23:49AM -0500, Steven Rostedt wrote: > On Thu, 23 Nov 2023 12:25:48 +0100 > Heiko Carstens wrote: > > > So, if it helps (this still happens with Linus' master branch): > > > > create_dir_dentry() is called with a "struct eventfs_inode *ei" (second > > parameter), which points to a data structure where "is_freed" is 1. Then it > > looks like create_dir() returned "-EEXIST". And looking at the code this > > combination then must lead to d_invalidate() incorrectly being called with > > "-EEXIST" as dentry pointer. > > I haven't looked too much at the error codes, let me do that on Monday > (it's currently Turkey weekend here in the US). > > But could you test this branch: > > git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git trace/core > > I have a bunch of fixes in that branch that may fix your issue. I just > finished testing it and plan on pushing it to Linus before the next rc > release. This is not that easy to reproduce, however you branch contains commit 71cade82f2b5 ("eventfs: Do not invalidate dentry in create_file/dir_dentry()") which removes the d_invalidate() call. The crash I reported cannot happen anymore with that commit. I'll consider this fixed, and report again if this (or something else) still causes problems. Thanks!