Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5914734ybv; Tue, 18 Feb 2020 06:24:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxaFfFNmC6qrAs5p4tTWfn8TLDaEQU5xUWqNOD1hn0e69BUdO/Rx0t6szqCgIEDup7xWH4r X-Received: by 2002:a9d:6a85:: with SMTP id l5mr16731360otq.231.1582035859784; Tue, 18 Feb 2020 06:24:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582035859; cv=none; d=google.com; s=arc-20160816; b=UMbtfPPkmWebkG6JRRAwq3gUkFaOS1VRAHp/aP2nnrRAPxl5MWlCu4A6g1rkORDEgQ qiTVmmlhxQb7laRkRhxtOXD4jnY1rDUaxinT9jcfplrYG163cA0HpR6zT4kWQK6+XXbk GcrtgAafcZfHFbiGyoL0Edv9/j4/SgQo4/7DWjIwWQ2MA6WvBw4HwsAt0NuPDkJNw7/0 XtZ1M+3oMwyqaxpdU8UBWnXxwAwv9/fI6Biuw0fsYRKYWVG4cCwQh3w4QpRIh63ph3Lf YhJR8pI8sUpFOKvRqSpYT/MfgtWQnY21LGQE9+zk1ORS39Dt/CEXQB7Tc+W1A65WYQl3 Mc0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=231fmz111Jq1+UeBgA0T68mPE4NlaSt7RtbyFyk4FOQ=; b=rHOuu3nm8DY/qDlElUBKjKomQ4L1x5Gyli9kmOuDnqafGgPs1aVRfMqJyhwIEanB/6 6pZLmzQvarW/OsGNflqq9TCJ8m83Q3/cY78aDP9LKHKyBFhFrT3GTVdENMcpOLLlQxak oF5yYHch7Orqsli+Fu1JmVyfDbu3n8FFGtMXzDqVghhDZssfgzgqpAutiXYXxzU6HZ8V amJOSFMvVOxFcIh+Cz8AZ/fksVKhST1TdtamPPKhOtZ5/aBQpAkAgNkkHTajJpBd1+pR 3UduEHdta10JTlg/75ds7nxhpU07NWePlmSCX1TMG6VwpC3t/OcTJVm1AksxQQN+G0G3 UcpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xthntggz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si1942638otk.227.2020.02.18.06.24.06; Tue, 18 Feb 2020 06:24:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xthntggz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726605AbgBROWq (ORCPT + 99 others); Tue, 18 Feb 2020 09:22:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:53770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbgBROWp (ORCPT ); Tue, 18 Feb 2020 09:22:45 -0500 Received: from localhost (173-25-83-245.client.mchsi.com [173.25.83.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D45C208C4; Tue, 18 Feb 2020 14:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582035765; bh=LzzH1+A9k81pYpE+xt8iuTzMyoqX7NohKSq641i4n7k=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=xthntggz/VRh21wg6I4oQxiRVt8eefs49JMKKrhstEdoYAwKSMSoWb9lw0xEuAnQ9 lQPd2zq6L9rwzq4hkSxaSOKyCTAUZOUX0z3SibON2b+hml194pt+7eBAm9/Df1ZbW3 Xy8RYmQ6i1fjR6hZI9UeHHFu4o5mS+HD4+WMJyhA= Date: Tue, 18 Feb 2020 08:22:43 -0600 From: Bjorn Helgaas To: Nicholas Johnson Cc: "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" Subject: Re: Stack trace when removing Thunderbolt devices while kernel shutting down Message-ID: <20200218142243.GA190321@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 18, 2020 at 02:18:40PM +0000, Nicholas Johnson wrote: > Hi Bjorn, > > If I surprise remove Thunderbolt 3 devices just as the kernel is > shutting down, I get stack dumps, when those devices would not normally > cause stack dumps if the kernel were not shutting down. > > Because the kernel is shutting down, it makes it difficult to capture > the logs without a serial console. > > In your mind, is this cause for concern? There is no harm caused and the > kernel still shuts down. The main thing I am worried about is if this > means that the locking around the subsystem is not strict enough. > > If you think this is worth looking into, I will try to learn about how > the native interrupts are handled and try to investigate, and I will > also try to get my serial console working again to capture the details. Yes, I think this is worth looking into.