#980980 linux-image-5.10.0-2-arm64-unsigned: flood of false udev messages make udisks2 eat CPU usage on usb-booted raspi4

Package:
src:linux
Source:
linux
Submitter:
Ryutaroh Matsumoto
Date:
2021-02-03 06:48:03 UTC
Severity:
important
Tags:
#980980#5
Date:
2021-01-25 00:22:29 UTC
From:
To:
Dear Maintainer,

After booting raspi 4b from USB MSDand installation of
udisks2 2.9.1-3 by
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977694#56

udev starts giving flood of false messages like below,
and the udisks2, udev and dbus daemons eat nearly 100% of CPU
in total. The flood of false messages disappears by removing udisks2
package.

This symptom is also observed with the vanilla upstream kernel.

Best regards, Ryutaroh Matsumoto


monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[1532.887313] change   /devices/platform/emmc2bus/fe340000.emmc2/mmc_host/mmc1/mmc1:0007/block/mmcblk1 (block)
KERNEL[1532.887432] change   /devices/platform/emmc2bus/fe340000.emmc2/mmc_host/mmc1/mmc1:0007/block/mmcblk1/mmcblk1p1 (block)
KERNEL[1532.887485] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[1532.887537] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1 (block)
KERNEL[1532.887588] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
KERNEL[1532.887640] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda3 (block)
UDEV  [1532.929456] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
UDEV  [1532.938261] change   /devices/platform/emmc2bus/fe340000.emmc2/mmc_host/mmc1/mmc1:0007/block/mmcblk1 (block)
UDEV  [1532.945960] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1 (block)
UDEV  [1532.961346] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
UDEV  [1532.966981] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda3 (block)
UDEV  [1532.999693] change   /devices/platform/emmc2bus/fe340000.emmc2/mmc_host/mmc1/mmc1:0007/block/mmcblk1/mmcblk1p1 (block)
KERNEL[1535.645238] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
UDEV  [1535.656113] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
KERNEL[1535.667023] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
UDEV  [1535.677595] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
KERNEL[1535.699075] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
UDEV  [1535.711964] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
KERNEL[1535.750938] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
UDEV  [1535.762856] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
KERNEL[1535.807667] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
UDEV  [1535.822477] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
KERNEL[1535.857299] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
UDEV  [1535.871682] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
KERNEL[1535.897123] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
UDEV  [1535.911569] change   /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)

#980980#12
Date:
2021-01-27 05:47:59 UTC
From:
To:
Forwarded to the linux-rpi-kernel list. Ryutaroh
#980980#21
Date:
2021-01-28 10:04:07 UTC
From:
To:
When "reset-raspberrypi.ko" and "raspberrypi-cpufreq.ko"
are loaded by initramfs and linux-image-arm64/sid is booted from USB MSD,
the reported symptom is not reproduced. So I'd like to close #980980.

Best regards, Ryutaroh Matsumoto

#980980#26
Date:
2021-02-03 06:44:46 UTC
From:
To:
Dear Maintainer,

The bug #980980 reappears with genuin Debian kernel 5.10.12,
when RPi4B 8GB model is booted from my USB MSD...
A mojor difference between Debian kernel 5.10.9 on which I do not
observe #980980, and 5.10.12 seems presence of vc4.ko...

Best regards, Ryutaroh Matsumoto