Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp417288rdh; Thu, 23 Nov 2023 07:24:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQGGVng6FkY8X7TspcCviMgrSfyFKWOBB4FigQ92SgrakbI5HMuM91WSdQHTqSN6tPG495 X-Received: by 2002:a17:90b:3a86:b0:27d:198:fcc2 with SMTP id om6-20020a17090b3a8600b0027d0198fcc2mr5826818pjb.33.1700753065803; Thu, 23 Nov 2023 07:24:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700753065; cv=none; d=google.com; s=arc-20160816; b=aeWbyeInaJSdzEMq6SZIYpE8+hJm9//p6ApVpnZBnZif6VxEOVXndBShsCWRRvA5+f 1d+3+cBeBlz+L9dXLNNg4c1sjmNeC/KSQxL0VcxteizU1xqgeklDXSEhVT1UrTrR48C5 cn2NbGg6Pb+QOzJsc/X0RyOoHi3QvnzUS494151s93QM9ZyvtRq7q8eILZ5ZHo/DXo3U BhAB2sxWQhkjx6a+yZbeTsNWjx8bagiGVVZTVKuW7S6nD9vGPASzRrHYq4UsB0FG8nTv lSSJ+r1+IcaU3BJ1g0oy8Y1tVt2h7U9SrnaNaqSLhF+bgatPtKDElMEQfob4YyXGugcu 6cBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Yarur39VkEFu9KFbYTVc/zv3Ck02WKO2DwkXSe8dt4Q=; fh=sZ36CY7baQymMiFSLVRE3Gx9SFQY4ZhlavSecLj+lWw=; b=cuWRB0MTjlSpOhXhn2TZ1OyV3unJovTF5kpkUJQuFe2QIzwYbt72+NmBW38Av6aJ1y bn0n0uIP4yv01ITVNzy6tIyoi21qzs294UVG9qjPxLfOyOHDteNI4aCVYIwoguwD0IkO n/puJQOGrJ1A1gyHNsrrKR0nWB68DXEAYj6tVWYoin4UieSHXkVLGfXvCYSh+Lbjx6uu A9ChX7S/5g/kHZ1v6pJ9ysVRFR4c7qXVJRn/JlLrer4jbiRwDsJq/EnJk6H8u+ioKXad cFyOLHieo6ZeGRsZpOnHmilrz6a/QnTPpmguyGJbjiiwYf7JCYmT8GX0w5NekdmYMmLD slgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id mg6-20020a17090b370600b0027b0aac2191si1468966pjb.15.2023.11.23.07.24.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 07:24:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2A6AD809778C; Thu, 23 Nov 2023 07:24:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346066AbjKWPXd (ORCPT + 99 others); Thu, 23 Nov 2023 10:23:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346051AbjKWPXa (ORCPT ); Thu, 23 Nov 2023 10:23:30 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9171010C0 for ; Thu, 23 Nov 2023 07:23:35 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BA4CC433C9; Thu, 23 Nov 2023 15:23:33 +0000 (UTC) Date: Thu, 23 Nov 2023 10:23:49 -0500 From: Steven Rostedt To: Heiko Carstens 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: <20231123102349.110e4525@gandalf.local.home> In-Reply-To: <20231123112548.9603-A-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> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 23 Nov 2023 07:24:23 -0800 (PST) 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. Thanks! -- Steve > > Now, I have no idea how the code should work, but it is quite obvious that > something is broken :) > > Here the dump of the struct eventfs_inode that was passed to > create_file_dentry() when the crash happened: