Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp454510lqb; Fri, 24 May 2024 03:50:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVH4+K/ImsFcvpYpe2/iy59p0KosihKC/ma1ny9oBaBMEgIMOqyPddSwDkioA072lhyf+rx1RLRn08QdFokTwVMn+jIgKJ8tIYygwVD7A== X-Google-Smtp-Source: AGHT+IFC7dPXyAfJ/SpWeRGSSCgTlNsI1BJ5opRGnoRANew2+0WaonjikS7QK+h2+9GU0VhaUS1T X-Received: by 2002:a05:6a00:8c11:b0:6f8:c6e4:1829 with SMTP id d2e1a72fcca58-6f8f3b38254mr2158995b3a.25.1716547831259; Fri, 24 May 2024 03:50:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716547831; cv=pass; d=google.com; s=arc-20160816; b=eYo2C7KY5W81BGpfaicR2CnEIwqCmEhr5QDoT3YTxj0Is2ftI9j/eoUJOY/btAxMy4 dZFSOg1ZmWIImu9plX5LeKLAKWmMs8TQ6PbbX42mgfDo+TigVJ+uGpoiBONCeMbmmW2O dTLl2Vuz8TwM4tE0+W5Sa8nEcLjG0+htvPW7e491//uFfcJz+Xshwbo3ZK6CX5LbJiZE 4ocP3pjrjeSSJqY9ZQA9wUiRSEUi8OQICjjVMON4EGkvnbYEFttU6WTigVtrWlvYMb1a yukD/KrfpodcM5qD0HSVsX/8xrqDyllv7lT+lix2mDhuzho4npFmmXSXNyHeZR9H3WGu vtUg== 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=Xi0VV02aPT82jOki/4MXoZyGpobBnrrrOZsLV1eML+U=; fh=SkC3M8/rdRE8lfmr8xUbWmjpI7shIxrcLLgNDUXegcA=; b=uoke7RzBv2w6vSdwqYufObhvYySb+ujBi+oOS/nLm+zaF5qPxQgMFWZ27jX0CFIYRe n7eF6TtFgg93AfZIbat/FewDO6eWzxzIV2lcKul+76E2ZC+iSrs1mmCDN6fF+oFu+LwV aVMnoMKuVVhXJAcnYedaI3xW9fcjJ0OaOBxHhgLSLOGiv2Gw5Ny+ydiXA63wmHB3y7RP ag92w7i6VU+50i48U6NWLxSNX0/30tB/fTIK3HWJt6guMpih+hcATRe18PZ/6V8qZebs HzOiJV5CUQL4mwU+rnxu5gRtaNiJBoBDMid12p6Sm122SJwXcVOutZbyHvOjFvVJBbN7 ceZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=vuV92Fr1; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-188619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188619-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fcfd95b9si1329631b3a.154.2024.05.24.03.50.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 03:50:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=vuV92Fr1; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-188619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188619-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DC58D28259F for ; Fri, 24 May 2024 10:50:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A776085C43; Fri, 24 May 2024 10:50:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b="vuV92Fr1" 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 92203482D8; Fri, 24 May 2024 10:50:18 +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=1716547822; cv=none; b=CHdELZC9hnz6xHL1jjfujTnVG0cu8DPGeJac+0mZffIsAwDSoa9UL6LIOVw6eNlIv+Mm7eZ59mZvLNXm6Nn2dRUFAxeDEdVMPbfyntp+Ij/IYi/nuH07gLLea1dU/0IoC9nF1aHijRIr9a3w7bKri7RAolbCLzZgw0kfy0S3EvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716547822; c=relaxed/simple; bh=W5iK/L69w1vS5jHqSzlK6AF7Pl8WAdVP/lDrntYBJek=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DtT3Lr9evlIfQ44G2ELYPdUB92EChOSksOKpSeNGEMiD7Gl7hwwCpHLB7trDbusj5nOOWxhbPK/ueKbZVeMjbIOiMWq89N0rFQ9GFZ0SkZqBXhonUeZdxvpnicZulh8jNLD2EMXwYTuKDnEdyVldfcwExdi2dCX1CHSgYHOUrLs= 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=vuV92Fr1; 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=Xi0VV02aPT82jOki/4MXoZyGpobBnrrrOZsLV1eML+U=; t=1716547818; x=1716979818; b=vuV92Fr1MFPiVmDIIDyp5+OsC1e5TCZP0ceCOqr9r0v/8/3 qahymqwOQddmwPc3nAxxSyo+zjPDYIeb9VcNU7I4Q+NywT4jIGcSVlvLdVkg5/mZ1JDZ76AiiyPoO 5jGd8iDmJ9QMVlIQMljtQWIidVClNaY8TG6AvX+HiqEA+WdFc6/jZcmwMknCjBUh3GmCSln1JGdUW +l/2VcJ2JtzzLFTZJ5NZBIUzwjF+XmmHkaSynZ9Apq6Di4nGqIt6O0uhAvYxHLlCIfP44kPTF9ZIk kPrYr3D3FFdAj48Zwp7Y9e3/Rzi0Y/muITCWS7ttzQs6x86IELiWjgbR87jbS2gw==; 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 1sASUy-0000GP-TV; Fri, 24 May 2024 12:50:08 +0200 Message-ID: <5b79732b-087c-411f-a477-9b837566673e@leemhuis.info> Date: Fri, 24 May 2024 12:50:08 +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?= , stable@vger.kernel.org Cc: regressions@lists.linux.dev, Steven Rostedt , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org References: 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;1716547818;62e16c8f; X-HE-SMSGID: 1sASUy-0000GP-TV [CCing a few people] On 24.05.24 12:31, Ilkka Naulapää wrote: > > I have encountered a critical bug in the Linux vanilla kernel that > leads to a kernel panic during the shutdown or reboot process. The > issue arises after all services, including `journald`, have been > stopped. As a result, the machine fails to complete the shutdown or > reboot procedure, effectively causing the system to hang and not shut > down or reboot. Thx for the report. Not my area of expertise, so take this with a gain of salt. But given the versions your mention in your report and the screenshot that mentioned tracefs_free_inode I suspect this is caused by baa23a8d4360d ("tracefs: Reset permissions on remount if permissions are options"). A few fixes for it will soon hit mainline and are meant to be backported to affected stable trees: https://lore.kernel.org/all/20240523212406.254317554@goodmis.org/ https://lore.kernel.org/all/20240523174419.1e5885a5@gandalf.local.home/ You might want to try them – or recheck once they hit the stable trees you are about. If they don't work, please report back. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. > Here are the details of the issue: > > - Affected Versions: Before kernel version 6.8.10, the bug caused a > quick display of a kernel trace dump before the shutdown/reboot > completed. Starting from version 6.8.10 and continuing into version > 6.9.0 and 6.9.1, this issue has escalated to a kernel panic, > preventing the shutdown or reboot from completing and leaving the > machine stuck. > > - Symptoms: > - In normal shutdown/reboot scenarios, the kernel trace dump briefly > appears as the last message on the screen. > - In rescue mode, the kernel panic message is displayed. Normally it > is not shown. > > Since `journald` is stopped before this issue occurs, no textual logs > are available. However, I have captured two pictures illustrating > these related issues, which I am attaching to this email for your > reference. Also added my custom kernel config. > > Thank you for your attention to this matter. Please let me know if any > additional information is required to assist in diagnosing and > resolving this bug. > > Best regards, > > Ilkka Naulapää