Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8681601ybn; Tue, 1 Oct 2019 11:33:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3lLHE7HPuSAFVdJu9mGnv3toPMKiE5dcd2WCKQ6TQ0vyx0PoaTOkOG4YaAZ2IneqAvyeo X-Received: by 2002:aa7:c555:: with SMTP id s21mr27278895edr.151.1569954807552; Tue, 01 Oct 2019 11:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569954807; cv=none; d=google.com; s=arc-20160816; b=JCVZTHUcuAwGz56ABCmiTQmWPMbyvJ1jhhFQ27Vt04WB0XZ8RczBslmNJefQeBZv8q t76ZiqW+qKvYQgaIe/ia5t1+ZTxC59vuvSk6CYm7SSwHfxumrf3krXBc/hPpqZJNF9x2 V8H305E+gZOcuqCDOGX3kw9G5izcnwnamB0NYpuYFClwNpaSQ9GJo8NG33kFe2FuQuxa SosXUvXUrg7NgQrUL4WYjMLTCmPUo3W6asMYApw7x3qy3librgF25wjrkgbNfYjoacJW SJXCHvPXkBzf9ZUoTxxQwydDnSwhIIxCRpU7a2zojJ/DFALm6Dt835zaSUZURnlV1sco x5DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=iP2MlO9FYpvKLINoBlE//2c4s/SiqZsKif7uSPniJho=; b=c17obcJdTSXsDTlg/R4M21BvcBRCLP2evRBpHOwVWN+OwJCE7Qz8rl9smDfI4QYia1 Jz9ctB0o5o9/MFirvfojQnVX7vk9AM1Rxl3gfvAM9L5LXMgKLV4aqP8dfYeW/jGWqkzl Nx50vmFqlz7MBv2xszoFCDOvny3DUSUEjlKSg629wM0I8aoLGZep8p4V7JtCVtnsniO8 +Z3jQRo4djcKUl+vHeuNSL4Xu1bTMCCJQ1PGT6C1u9A3Fz/qO9UtjjtINsGZ/Pdeaz3j tc4uCCpK4YY/zY0bLh3W14NzltulMvt3I78CTpP6OySwn3lNPtDEG1UgQ/WQQOuWC97r zY4g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si10133275eda.406.2019.10.01.11.33.03; Tue, 01 Oct 2019 11:33:27 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726120AbfJASbs (ORCPT + 99 others); Tue, 1 Oct 2019 14:31:48 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:49070 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726100AbfJASbr (ORCPT ); Tue, 1 Oct 2019 14:31:47 -0400 Received: (qmail 6459 invoked by uid 2102); 1 Oct 2019 14:31:46 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 1 Oct 2019 14:31:46 -0400 Date: Tue, 1 Oct 2019 14:31:46 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Steven Rostedt cc: LKML , , , Jens Axboe , Greg Kroah-Hartman Subject: Re: Lockup on USB and block devices In-Reply-To: <20191001134430.1f9c9c75@gandalf.local.home> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 1 Oct 2019, Steven Rostedt wrote: > Not sure who to blame, but my server locked up when upgraded (accessing > volume group information), and echoing in "w" into sysrq-trigger showed > a bit of information. > > First, looking at my dmesg I see that my usb-storage is hung up, for > whatever reason. Thus, this could be the source of all issues. > > > [5434447.145737] INFO: task usb-storage:32246 blocked for more than 120 seconds. > [5434447.145740] Not tainted 5.2.4-custom #4 > > (BTW, I was upgrading to my 5.2.17 kernel when this happened) > > [5434447.145741] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > [5434447.145743] usb-storage D 0 32246 2 0x80004000 > [5434447.145745] Call Trace: > [5434447.145749] ? __schedule+0x1e8/0x600 > [5434447.145752] schedule+0x29/0x90 > [5434447.145755] schedule_timeout+0x208/0x300 > [5434447.145765] ? usb_hcd_submit_urb+0xbe/0xb90 [usbcore] > [5434447.145773] ? usb_alloc_urb+0x23/0x70 [usbcore] > [5434447.145782] ? usb_sg_init+0x92/0x2b0 [usbcore] > [5434447.145791] ? usb_hcd_submit_urb+0xbe/0xb90 [usbcore] > [5434447.145795] ? __switch_to_asm+0x34/0x70 > [5434447.145798] wait_for_completion+0x111/0x180 > [5434447.145800] ? wake_up_q+0x70/0x70 > [5434447.145809] usb_sg_wait+0xfa/0x150 [usbcore] > [5434447.145814] usb_stor_bulk_transfer_sglist.part.4+0x64/0xb0 [usb_storage] > [5434447.145818] usb_stor_bulk_srb+0x49/0x80 [usb_storage] > [5434447.145821] usb_stor_Bulk_transport+0x167/0x3e0 [usb_storage] > [5434447.145824] ? schedule+0x29/0x90 > [5434447.145828] ? usb_stor_disconnect+0xb0/0xb0 [usb_storage] > [5434447.145832] usb_stor_invoke_transport+0x3a/0x4e0 [usb_storage] > [5434447.145835] ? wait_for_completion_interruptible+0x12d/0x1d0 > [5434447.145837] ? wake_up_q+0x70/0x70 > [5434447.145841] usb_stor_control_thread+0x1c5/0x270 [usb_storage] > [5434447.145845] kthread+0x116/0x130 > [5434447.145847] ? kthread_create_worker_on_cpu+0x70/0x70 > [5434447.145851] ret_from_fork+0x35/0x40 It looks like a problem with your xHCI USB host controller. Normally a usb-storage transfer would be aborted after 90 seconds. But if the host controller (or its driver) isn't working right, and the abort never completes, you end up with a situation like this -- usb-storage and the higher SCSI and block layers waiting indefinitely for an event that won't occur. In theory, unplugging the USB mass-storage device would unblock everything (unless xhci-hcd is too badly wedged). But of course, doing that is likely to mess up whatever you were working on. Alan Stern