high speed data to usb disk makes the kernel think that is has been unmounted

Bug #1886172 reported by Patrik Nilsson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description:

When the speed of data with a usb disk device is too high, the probes that check if the disk still exists is missed. This makes the disk to be unmounted and is remounted with an other drive letter (/dev/sdX). If this disk is the root ("/"), the computer hangs.

A usb SSD-disk (4 TB) connected to a USB port reproduce this bug easily. This has never happened with a mechanical USB-drive.

Symptoms and how to reproduce:

1) (Disk mounted as root) Computer hangs. Only way to get started again is a hard reset.

2) (Erasing disk, not mounted as root) If you erase a disk with dd ("dd if=/dev/zero of=/dev/sdX"), the disk disappears from the mounted list and reappears as an other drive letter. In my case the data is redirected to /dev/null and the fans speed up. The apparent data transfer speed is also increased. Usually this happens after about 45 to 60 minutes.

3) Fill RAM with programs and make sure the swap to this disk is used.

Bug found in:

$ uname -a
Linux pb-189b1884 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$ cat /proc/version_signature
Ubuntu 5.4.0-40.44-generic 5.4.44

Hardware:

Tested with slower and faster computers. Tested directly connected to a computer and via a hub. They all reproduce this bug.

Workaround:

None found.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: user 6813 F.... pulseaudio
 /dev/snd/controlC0: user 6813 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: MATE
DistroRelease: Ubuntu 20.04
MachineType: ASUSTeK COMPUTER INC. GL503VM
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.4.0-40-generic root=UUID=74545cc2-bc7e-11ea-9c1b-6b408850adf5 ro fsck.repair=yes
ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-40-generic N/A
 linux-backports-modules-5.4.0-40-generic N/A
 linux-firmware 1.187.1
Tags: focal
Uname: Linux 5.4.0-40-generic x86_64
UnreportableReason: This report is about a package that is not installed.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: sudo vboxusers wireshark
WifiSyslog:

_MarkForUpload: False
dmi.bios.date: 04/29/2019
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: GL503VM.314
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: GL503VM
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrGL503VM.314:bd04/29/2019:svnASUSTeKCOMPUTERINC.:pnGL503VM:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnGL503VM:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.family: ROG
dmi.product.name: GL503VM
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :
description: updated
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1886172

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: focal
Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : CRDA.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : IwConfig.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : Lspci.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : Lspci-vt.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : Lsusb.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : Lsusb-t.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : Lsusb-v.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : ProcEnviron.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : ProcModules.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : PulseList.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : RfKill.txt

apport information

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote : UdevDb.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Does the USB enclosure have and additional port cord? UAS in general requires more power.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

I have tested it

1) directly connected to two different computers

and and with

2) a external hub with both these computers.

All works in 4.15, but not now. The external hub has an extra power supply and can give up to 4 A for the charging only port. Hopefully it is limited to 2 A per port by design for normal use.

The drive's enclosure itself is designed for 2 A, i.e. single connector.

High speed requires more power, but the speed can be that for 45 to 60 minutes. I expect it fail earlier if it is short of power, in case you use the dd-command.

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

Can you mount a device with a rate limiting option? How?

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Since it's a regression, would it be possible for you to do a kernel bisection?

First, find the last -rc kernel works and the first -rc kernel doesn’t work from http://kernel.ubuntu.com/~kernel-ppa/mainline/

Then,
$ sudo apt build-dep linux
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
$ cd linux
$ git bisect start
$ git bisect good $(the working version you found)
$ git bisect bad $(the non-working version found)
$ make localmodconfig
$ make -j`nproc` deb-pkg
Install the newly built kernel, then reboot with it.
If it still have the same issue,
$ git bisect bad
Otherwise,
$ git bisect good
Repeat to "make -j`nproc` deb-pkg" until you find the offending commit.

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

(Yes, I have started it.)

description: updated
Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

This bug is present in all kernels tested from 4.15. Tested kernels are at the end of this comment. The bug appears to depend heavily on the speed of data. For example it works erasing a disk with all kernels with dd if=/dev/urandom, but not with faster if=/dev/zero or if="openssl" (exact syntax in attached test-script).

Linux 5.4.0-37-generic #41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Linux 5.0.1-050001-generic #201903100732 SMP Sun Mar 10 07:33:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Linux 4.17.0-041700-generic #201806041953 SMP Mon Jun 4 19:55:25 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Linux 4.16.18-041618-generic #201806252030 SMP Tue Jun 26 00:33:13 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Linux 4.16.1-041601-generic #201804081334 SMP Sun Apr 8 13:35:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Linux 4.15.18-041518-generic #201804190330 SMP Thu Apr 19 07:34:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Linux 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :
Download full text (7.3 KiB)

Log of udev event, when the bug happens.

# udevadm monitor | grep -v power_supply
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[4837.212964] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0/bsg/5:0:0:0 (bsg)
KERNEL[4837.218270] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0/scsi_generic/sg3 (scsi_generic)
UDEV [4837.218305] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0/scsi_disk/5:0:0:0 (scsi_disk)
KERNEL[4837.218325] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0/scsi_device/5:0:0:0 (scsi_device)
UDEV [4837.218349] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0/bsg/5:0:0:0 (bsg)
KERNEL[4837.218364] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0/scsi_disk/5:0:0:0 (scsi_disk)
UDEV [4837.218382] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0/scsi_device/5:0:0:0 (scsi_device)
UDEV [4837.219394] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0/scsi_generic/sg3 (scsi_generic)
KERNEL[4846.579833] remove /devices/virtual/bdi/8:48 (bdi)
KERNEL[4846.579956] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0/block/sdd (block)
UDEV [4846.580945] remove /devices/virtual/bdi/8:48 (bdi)
UDEV [4846.582743] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0/block/sdd (block)
KERNEL[4846.824123] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0 (scsi)
KERNEL[4846.824157] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0 (scsi)
UDEV [4846.826395] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0 (scsi)
UDEV [4846.827776] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0/5:0:0:0 (scsi)
KERNEL[4846.848222] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0 (scsi)
KERNEL[4846.848254] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/scsi_host/host5 (scsi_host)
KERNEL[4846.848271] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5 (scsi)
KERNEL[4846.849427] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0 (usb)
KERNEL[4846.849470] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0 (usb)
UDEV [4846.849777] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3/2-4.4.3:1.0/host5/target5:0:0 (scsi)
KERNEL[4846.850038] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.3 (usb)
KERNEL[4846.850071] remove /devices/pci0000:00/0000:00:14.0/usb2...

Read more...

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :
Download full text (6.4 KiB)

Log of udev event, when the bug happens.

# udevadm monitor | grep -v power_supply
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[10316.148582] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
KERNEL[10316.148718] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
KERNEL[10316.148737] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
KERNEL[10316.148810] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
UDEV [10316.150795] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
UDEV [10316.151259] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
UDEV [10316.153358] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
UDEV [10316.153443] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
KERNEL[10325.527284] remove /devices/virtual/bdi/8:32 (bdi)
KERNEL[10325.527425] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/block/sdc (block)
UDEV [10325.528344] remove /devices/virtual/bdi/8:32 (bdi)
UDEV [10325.529371] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/block/sdc (block)
KERNEL[10325.772119] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
KERNEL[10325.772152] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
UDEV [10325.774112] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
UDEV [10325.775045] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
KERNEL[10325.796104] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0 (scsi)
KERNEL[10325.796133] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/scsi_host/host4 (scsi_host)
KERNEL[10325.796152] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4 (scsi)
KERNEL[10325.796751] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0 (usb)
KERNEL[10325.796785] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0 (usb)
KERNEL[10325.797247] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-2 (usb)
KERNEL[10325.797286] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2 (usb)
UDEV [10325.797543] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0 (scsi)
UDEV [10325.798531] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/scsi_host/host4 (scsi_host)
UDEV [10325.799470] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4 (scsi)
UDEV [10325.800764] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0 (usb)
UDEV [10325.801790] remove /devices/pci0000...

Read more...

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :
Download full text (7.2 KiB)

Log of udev event, when the bug happens.

# udevadm monitor | grep -v power_supply
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[255114.318220] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
KERNEL[255114.320177] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
KERNEL[255114.320198] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
KERNEL[255114.320209] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
UDEV [255114.320619] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
UDEV [255114.321338] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
UDEV [255114.321948] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
UDEV [255114.325400] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
KERNEL[255123.206586] remove /devices/virtual/bdi/8:32 (bdi)
KERNEL[255123.206734] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/block/sdc (block)
UDEV [255123.207599] remove /devices/virtual/bdi/8:32 (bdi)
UDEV [255123.209019] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0/block/sdc (block)
KERNEL[255123.452120] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
KERNEL[255123.452156] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
UDEV [255123.454017] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
UDEV [255123.455196] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
KERNEL[255123.484123] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0 (scsi)
KERNEL[255123.484149] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/scsi_host/host4 (scsi_host)
KERNEL[255123.484174] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4 (scsi)
KERNEL[255123.485174] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0 (usb)
KERNEL[255123.485215] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0 (usb)
UDEV [255123.485449] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/target4:0:0 (scsi)
KERNEL[255123.485698] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-2 (usb)
KERNEL[255123.485730] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2 (usb)
UDEV [255123.485994] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4/scsi_host/host4 (scsi_host)
UDEV [255123.486906] remove /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/host4 (scsi)
UDEV [255123.487940] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0 (usb)
UDEV [255123.48906...

Read more...

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :
Download full text (10.2 KiB)

Log of udev event, when the bug happens.

# udevadm monitor | grep -v power_supply
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[257777.226057] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
KERNEL[257777.232094] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
UDEV [257777.232131] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
KERNEL[257777.232148] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
UDEV [257777.232163] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
KERNEL[257777.232176] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
UDEV [257777.234471] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
UDEV [257777.237032] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
KERNEL[257785.993301] remove /devices/virtual/bdi/8:32 (bdi)
KERNEL[257785.994189] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/block/sdc (block)
UDEV [257785.994536] remove /devices/virtual/bdi/8:32 (bdi)
UDEV [257785.996938] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/block/sdc (block)
KERNEL[257786.236165] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
KERNEL[257786.236196] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
UDEV [257786.238169] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
UDEV [257786.239825] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
KERNEL[257786.268117] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0 (scsi)
KERNEL[257786.268147] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/scsi_host/host4 (scsi_host)
KERNEL[257786.268166] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4 (scsi)
KERNE...

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :
Download full text (10.5 KiB)

Log of udev event, when the bug happens.

# udevadm monitor | grep -v power_supply
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[258304.180050] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/block/sdd/sdd1 (block)
KERNEL[258304.180140] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/block/sdd/sdd2 (block)
KERNEL[258304.180259] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/block/sdd/sdd3 (block)
KERNEL[258304.180306] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/block/sdd/sdd4 (block)
KERNEL[258304.185959] change /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/block/sdd (block)
UDEV [258304.194320] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/block/sdd/sdd1 (block)
UDEV [258304.197464] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/block/sdd/sdd2 (block)
UDEV [258304.201738] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/block/sdd/sdd3 (block)
UDEV [258304.206277] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/block/sdd/sdd4 (block)
UDEV [258304.231082] change /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/block/sdd (block)
KERNEL[258909.512337] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/bsg/5:0:0:0 (bsg)
KERNEL[258909.512751] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/scsi_generic/sg2 (scsi_generic)
KERNEL[258909.512770] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/scsi_device/5:0:0:0 (scsi_device)
KERNEL[258909.512849] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/scsi_disk/5:0:0:0 (scsi_disk)
UDEV [258909.514595] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/bsg/5:0:0:0 (bsg)
UDEV [258909.523015] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/scsi_generic/sg2 (scsi_generic)
UDEV [258909.523043] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host5/target5:0:0/5:0:0:0/scsi_device/5:0:0:0 (scsi_device)...

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :
Download full text (8.4 KiB)

Log of udev event, when the bug happens.

# udevadm monitor | grep -v power_supply
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[259892.454355] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
KERNEL[259892.454422] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
KERNEL[259892.454441] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
KERNEL[259892.454539] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
UDEV [259892.457118] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/bsg/4:0:0:0 (bsg)
UDEV [259892.458521] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg2 (scsi_generic)
UDEV [259892.458829] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_disk/4:0:0:0 (scsi_disk)
UDEV [259892.460499] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/scsi_device/4:0:0:0 (scsi_device)
KERNEL[259900.048051] remove /devices/virtual/bdi/8:32 (bdi)
KERNEL[259900.048161] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/block/sdc (block)
UDEV [259900.049035] remove /devices/virtual/bdi/8:32 (bdi)
UDEV [259900.050572] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0/block/sdc (block)
KERNEL[259900.304129] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
KERNEL[259900.304164] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
UDEV [259900.307449] unbind /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
UDEV [259900.308340] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0/4:0:0:0 (scsi)
KERNEL[259900.328191] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/target4:0:0 (scsi)
KERNEL[259900.328218] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4/scsi_host/host4 (scsi_host)
KERNEL[259900.328236] remove /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.4/2-4.4.4/2-4.4.4.4/2-4.4.4.4.2/2-4.4.4.4.2:1.0/host4 (scsi)
UDEV ...

Read more...

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Does kernel parameter "usb-storage.quirks=090c:1000:u" help?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

Kernel parameter does not change the behavior.

$ lsusb
Bus 002 Device 008: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge
[...]
Bus 002 Device 002: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
[...]

It is the SATA bridge that fails:

$ cat /etc/default/grub
[..]
GRUB_CMDLINE_LINUX_DEFAULT="usb-storage.quirks=174c:55aa:u"
[...]

Update grub. Reboot.

$ dmesg | grep -i uas
[ 2.491166] usbcore: registered new interface driver uas
[ 5.045577] usb 2-4.4.4.4.2: UAS is blacklisted for this device, using usb-storage instead

Kernel parameter tested with:
Linux 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Linux 5.4.0-37-generic #41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Both fails.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Can you please swap the affected device with the Ugreen one:
[ 2.723884] usb 2-3: new SuperSpeed Gen 1 USB device number 4 using xhci_hcd
[ 2.744892] usb 2-3: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[ 2.745705] usb 2-3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 2.746493] usb 2-3: Product: Ugreen Storage Device
[ 2.747282] usb 2-3: Manufacturer: Ugreen
[ 2.748056] usb 2-3: SerialNumber: 00000000DEF0

Because this one connects to the xHC directly.

USB Storage may draw more power, so the issue you are seeing can happen when it connects under a USB Hub.

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

Ugreen is the adapter interface between USB and SATA, drive enclosure for the 2.5" drive. It is the same device.

During my tests I have connected Ugreen directly to the computer or via an external powered HUB. All tests give the same failing result. No difference.

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

Repeated the test with Ugreen connected directly to the computer's USB with "usb-storage.quirks=174c:55aa:u". It took 15 minutes and 2 seconds to fail.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Ok, please raise the issue to the USB mailing list:
<email address hidden>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.