Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp227179lqq; Thu, 13 Jun 2024 00:52:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2om1r8+IdJzJkWlP+5aTpNqDOFFmyEsmp4IK9dF/KYVwz9vlDiEqUGW0MaBA7yF9mbYr6iz1sg/+E2nj1m4rn5ZerMIYQNcZK3ROuLA== X-Google-Smtp-Source: AGHT+IHUZdg1MwuELjBti1sk+8WiKuERe3peNlWsIgBlZc6VN06Lv4S7yrSxO6fNFsh3C9nWouEA X-Received: by 2002:a05:6a00:c94:b0:704:3491:d753 with SMTP id d2e1a72fcca58-705bce43ae6mr5318859b3a.16.1718265165217; Thu, 13 Jun 2024 00:52:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718265165; cv=pass; d=google.com; s=arc-20160816; b=o9jHMHPQkhqv50Ftqk43HWufP5Czc/Qiq7DBA8L948oLjAhnrwIbQKawaK5tVZnfaA k2KSd+8ljrE1ubgDztbemN3ZRDo8omAJa9jhdBgNPX/cDOdfe1a+xKmWv4KJscUZBqyT LfH/d5aQPXzgytUkXLiC4yLU0wq941aJVmf3wyyKflkNd+giuw/IqhfvVwpDNhiuQkeB PDIeGFSD/qnRQT0BbgyO8t8MJ49+XORfj//NBxFMp6V8Pud1OJz7cHtqL/gSz562jgB4 gBe/zF+XaamytmjKS4WeYI8241MPcgHN3GZdnoJW84cmIm4of1jyh35byCkETfll+xQS Ejhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Zjr+VSpN2YOV8SzNhgW0HxlJxurFf1+bVKCUe+pa/6g=; fh=cHIv5tevoVGBw+EObJpSlirlEOirz1K4s5WbOGttY2w=; b=k62dP5mPBVKHKwvg6c74mIuoiXjUqnQ8dGxZO2f35DTvop5buSdGRLiYUPgfUhl3jW zRfjn6fzMOAyQZbwo0leSTtaSGEbYGb7BJQoef7XaWCjDqJUZIDFt/DiEtRTJ8760yyy d8w30r/ddfbufx2RlX1q/T5tretWwXkKyRFZkIfepFGS2hC1aE4OSiQ0OtD5L/UcR5dh zgaqUBr26irD89So2iNVZ7/QyJ6n5GGLvSlQezUr5gx8xrww2EsxP3PP7SLgbu22sBVT ZdClWHfermEkidaoRcTaq1woG50o7WqOV0ssTKMc+j8cdJ7pXQ8kGF4sNmZPizaB2Ck2 LOHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=adOEAd6b; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-212744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212744-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-705cc8f9accsi906634b3a.78.2024.06.13.00.52.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 00:52:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=adOEAd6b; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-212744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212744-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 015E2B23E49 for ; Thu, 13 Jun 2024 07:49:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF9BF13C677; Thu, 13 Jun 2024 07:48:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b="adOEAd6b" Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) (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 80B5413C827; Thu, 13 Jun 2024 07:48:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.237.130.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718264928; cv=none; b=qUbIojJgibrRo6Hl89I7tFQDIsYvR0gUsc5XI4rL/jklAdVVhbm8zArNyw10SI/q7ip3MJUbrQm6+73TiPe//G8LWhiJfJ79Zixv1Kcm7EbxKuQtwdlSzokHwR9QaO/GOoMcv/T0Vsf+QJ9Cd/YzRLFdXLmB4OHNITMfFvO2vRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718264928; c=relaxed/simple; bh=/5EG8VMd7LliSml0B5DgPKmGWzFXy5kJxof/+4sXrGc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JP2+I/V4ItF4TH5cOLhpxBfMrQS/ZPCWQp7jVYQoF21J/vvvPayAHSJu86STzzGywieWRT34YpB7OJXQgl7BS3z9HzqdxJ7/QZXrkqZo9bQdhBc5fuw8i39eQExIW4195Wzj9xIPW5+BSAeuR82wer0kGYbdAr9eJV+LXQJX14U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info; spf=pass smtp.mailfrom=leemhuis.info; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b=adOEAd6b; arc=none smtp.client-ip=80.237.130.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=leemhuis.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=leemhuis.info; s=he214686; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: In-Reply-To:References; bh=Zjr+VSpN2YOV8SzNhgW0HxlJxurFf1+bVKCUe+pa/6g=; t=1718264926; x=1718696926; b=adOEAd6bDO6WKtWHJJi5tI9lzcYLhC471j1AST0wa6gVTKx OKHtZYCuNQ7vPSTgj5XU8PDSe/fI69n9lfVP1tcf4T93yoPzMEsgaG9mLMrxdJRn3SagALtFgrlCB d6qAaOO/Mfi+2b07aWUciVxo15Ok5q5kxp3+o5EY6R+FrFUVMjwu7NdCsXH2jVX/HTb9nc5NyMaNp m8ECo0Nbk7MqRLSB8xjCAF+a0TM8u94QzLIdNUPGaOzosQsou5Z4TZTinQRFigXcnWK+A6/DHpVjX HGertUroJY3FxP5J3S2oL8fpZR+pIMT1TcvE1D0F3+eta0XShJ+JXGWeWIgkkKsw==; Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1sHfCL-0007aF-Hm; Thu, 13 Jun 2024 09:48:41 +0200 Message-ID: Date: Thu, 13 Jun 2024 09:48:40 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Bug in Kernel 6.8.x, 6.9.x Causing Trace/Panic During Shutdown/Reboot To: =?UTF-8?Q?Ilkka_Naulap=C3=A4=C3=A4?= , Steven Rostedt Cc: Linux regressions mailing list , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org References: <5b79732b-087c-411f-a477-9b837566673e@leemhuis.info> <20240527183139.42b6123c@rorschach.local.home> <20240528144743.149e351b@rorschach.local.home> <20240529144757.79d09eeb@rorschach.local.home> <20240529154824.2db8133a@rorschach.local.home> <20240530095953.0020dff9@rorschach.local.home> <20240612115612.2e5f4b34@rorschach.local.home> From: "Linux regression tracking (Thorsten Leemhuis)" Content-Language: en-US, de-DE Reply-To: Linux regressions mailing list In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1718264926;2021880b; X-HE-SMSGID: 1sHfCL-0007aF-Hm On 13.06.24 09:32, Ilkka Naulapää wrote: > On Wed, Jun 12, 2024 at 6:56 PM Steven Rostedt wrote: >> On Wed, 12 Jun 2024 15:36:22 +0200 >> "Linux regression tracking (Thorsten Leemhuis)" wrote: >>> >>> Ilkka or Steven, what happened to this? This thread looks stalled. I >>> also was unsuccessful when looking for other threads related to this >>> report or the culprit. Did it fall through the cracks or am I missing >>> something here? > >> Honesty, I have no idea where the bug is. I can't reproduce it. [...] Steven, thx for the update! And yeah, that's how it sometimes is. Given that we haven't seen similar reports (at least afaics) it's nothing I worry much about. > ok, so if you don't have any idea where this bug is after those debug > patches, I'll try to find some time to bisect it as a last resort. > Stay tuned. Yeah, that would be great help. Thank you, too! Ciao, Thorsten >>> On 02.06.24 09:32, Ilkka Naulapää wrote: >>>> sorry longer delay, been a bit busy but here is the result from that >>>> new patch. Only applied this patch so if the previous one is needed >>>> also, let me know and I'll rerun it. >>>> >>>> --Ilkka >>>> >>>> On Thu, May 30, 2024 at 5:00 PM Steven Rostedt wrote: >>>>> >>>>> On Thu, 30 May 2024 16:02:37 +0300 >>>>> Ilkka Naulapää wrote: >>>>> >>>>>> applied your patch and here's the output. >>>>>> >>>>> >>>>> Unfortunately, it doesn't give me any new information. I added one more >>>>> BUG on, want to try this? Otherwise, I'm pretty much at a lost. :-/ >>>>> >>>>> -- Steve >>>>> >>>>> diff --git a/fs/tracefs/inode.c b/fs/tracefs/inode.c >>>>> index de5b72216b1a..a090495e78c9 100644 >>>>> --- a/fs/tracefs/inode.c >>>>> +++ b/fs/tracefs/inode.c >>>>> @@ -39,13 +39,17 @@ static struct inode *tracefs_alloc_inode(struct super_block *sb) >>>>> return NULL; >>>>> >>>>> ti->flags = 0; >>>>> + ti->magic = 20240823; >>>>> >>>>> return &ti->vfs_inode; >>>>> } >>>>> >>>>> static void tracefs_free_inode(struct inode *inode) >>>>> { >>>>> - kmem_cache_free(tracefs_inode_cachep, get_tracefs(inode)); >>>>> + struct tracefs_inode *ti = get_tracefs(inode); >>>>> + >>>>> + BUG_ON(ti->magic != 20240823); >>>>> + kmem_cache_free(tracefs_inode_cachep, ti); >>>>> } >>>>> >>>>> static ssize_t default_read_file(struct file *file, char __user *buf, >>>>> @@ -147,16 +151,6 @@ static const struct inode_operations tracefs_dir_inode_operations = { >>>>> .rmdir = tracefs_syscall_rmdir, >>>>> }; >>>>> >>>>> -struct inode *tracefs_get_inode(struct super_block *sb) >>>>> -{ >>>>> - struct inode *inode = new_inode(sb); >>>>> - if (inode) { >>>>> - inode->i_ino = get_next_ino(); >>>>> - inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); >>>>> - } >>>>> - return inode; >>>>> -} >>>>> - >>>>> struct tracefs_mount_opts { >>>>> kuid_t uid; >>>>> kgid_t gid; >>>>> @@ -384,6 +378,7 @@ static void tracefs_dentry_iput(struct dentry *dentry, struct inode *inode) >>>>> return; >>>>> >>>>> ti = get_tracefs(inode); >>>>> + BUG_ON(ti->magic != 20240823); >>>>> if (ti && ti->flags & TRACEFS_EVENT_INODE) >>>>> eventfs_set_ef_status_free(dentry); >>>>> iput(inode); >>>>> @@ -568,6 +563,18 @@ struct dentry *eventfs_end_creating(struct dentry *dentry) >>>>> return dentry; >>>>> } >>>>> >>>>> +struct inode *tracefs_get_inode(struct super_block *sb) >>>>> +{ >>>>> + struct inode *inode = new_inode(sb); >>>>> + >>>>> + BUG_ON(sb->s_op != &tracefs_super_operations); >>>>> + if (inode) { >>>>> + inode->i_ino = get_next_ino(); >>>>> + inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); >>>>> + } >>>>> + return inode; >>>>> +} >>>>> + >>>>> /** >>>>> * tracefs_create_file - create a file in the tracefs filesystem >>>>> * @name: a pointer to a string containing the name of the file to create. >>>>> diff --git a/fs/tracefs/internal.h b/fs/tracefs/internal.h >>>>> index 69c2b1d87c46..9059b8b11bb6 100644 >>>>> --- a/fs/tracefs/internal.h >>>>> +++ b/fs/tracefs/internal.h >>>>> @@ -9,12 +9,15 @@ enum { >>>>> struct tracefs_inode { >>>>> unsigned long flags; >>>>> void *private; >>>>> + unsigned long magic; >>>>> struct inode vfs_inode; >>>>> }; >>>>> >>>>> static inline struct tracefs_inode *get_tracefs(const struct inode *inode) >>>>> { >>>>> - return container_of(inode, struct tracefs_inode, vfs_inode); >>>>> + struct tracefs_inode *ti = container_of(inode, struct tracefs_inode, vfs_inode); >>>>> + BUG_ON(ti->magic != 20240823); >>>>> + return ti; >>>>> } >>>>> >>>>> struct dentry *tracefs_start_creating(const char *name, struct dentry *parent); >> > >