New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
udisks 2.9.1 and Kernel 5.10.x on Mageia 8/Cauldron: spurious Kernel output when unmounting on behalf of user #827
Comments
Haven't switched to kernel 5.10 yet here, will try that soon... Can you try calling You can also try experimenting with Something may have changed recently that tries to access a "removed" device. Any removed device should stay dead until an unplug event and should not re-announce itself nor should be listed as present in the system. |
Here are some tests: Plugging USB Key with ISO 9660 dumped on it. The latter line is spurious... Later, do: I can even do: If I do But the key is no longer mounted in UI. If I mount the key and I do: I must unmount and do power-off: So, after I can unplug physically the key and no spurious lines in system log. Thanks, |
I still don't think this is a Plasma bug. You can ignore that spurious line, I'll probably just remove the warning, it's harmless and confusing to users. Also the Anyway, I was expecting writing to |
Perhaps related:
|
In facts, you're right, executing as superuser (on a USB-key mounted before). The bug reoccurs. You're right after all. |
$ uname -a |
Okay, couple more questions:
|
Yes,
Do later:
Redo test: Do eject: It seems the eject command which does the tricks. |
Interesting, thanks for testing. As a last test you can try using plain console with no running desktop session to rule Plasma out. Make sure Haven't found any suspicious change in https://github.com/karelzak/util-linux/commits/master/sys-utils/eject.c so I guess kernel is to blame here. Or it could be some change in |
In a plain console, at init 3 (without a DM), udisksd stopped, on Kernel 5.10.4, $ sudo mount /dev/sdb1 /mnt kernel: usb 2-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd sudo[16060]: aurelien : HOST=mageia.local ; TTY=tty2 ; PWD=/home/aurelien ; USER=root ; COMMAND=/bin/mount /dev/sdb1 /mnt do $ sudo eject /dev/sdb1 last repeated 7 times. |
For testing purposes it's probably a good idea to use the command "udevadm settle" between mount, eject, and other block device related commands (just to be sure that udev does not work with the device). Please, try the |
Compiled custom @karelzak would you like a separate ticket for |
Another one: strace.log |
The SCSI errors vary a little bit:
for the Fedora Live USB
for unpartitioned memtest USB stick |
We, at Mageia, do think the issue is in Kernel. |
From the eject strace (thanks!):
it means:
.. so from the eject(1) point of view, the device has been ejected. I don't see what to fix in eject(1); it seems it works as expected. |
As stated in https://bugzilla.kernel.org/show_bug.cgi?id=211023#c6 this should be fixed on the kernel side. Closing for UDisks. |
Under the following configuration:
Operating System: Mageia 8/Cauldron
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.10.1-desktop-2.mga8
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 15.6 Gio of RAM
Graphics Processor: GeForce GTX 1660 Ti/PCIe/SSE2,
with udisks-2.9.1:
There are the following errors from kernel and udisks when unmouting a USB-device:
usb-key-sequence-strange-unmount.txt
KDE devs think it is somewhere between there code and Kernel
See: https://bugs.kde.org/show_bug.cgi?id=430584
Attached here is same sequence on 5.9.12 kernel:
usb-key-sequence-kernel-5.9.12-unmount.txt
Here is our bug report in our Bugzilla database at Mageia: https://bugs.mageia.org/show_bug.cgi?id=27877
Mitigation:
Later mounting the device, run a fsck on this, it seems there is no error.
The text was updated successfully, but these errors were encountered: