Skip to content
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

eudev-3.2.5 waits 10 seconds before processing an event #153

Closed
l29ah opened this issue Dec 12, 2017 · 12 comments
Closed

eudev-3.2.5 waits 10 seconds before processing an event #153

l29ah opened this issue Dec 12, 2017 · 12 comments

Comments

@l29ah
Copy link

l29ah commented Dec 12, 2017

w/o apparent reason. udevadm monitor:

KERNEL[876589.458024] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2 (usb)
KERNEL[876589.458633] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
KERNEL[876590.510536] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/input/input36 (input)
KERNEL[876590.510795] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/input/input36/event15 (input)
KERNEL[876590.511723] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/video4linux/video1 (video4linux)
UDEV  [876600.603832] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2 (usb)
UDEV  [876600.604990] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/input/input36 (input)
UDEV  [876600.651205] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/input/input36/event15 (input)
UDEV  [876610.706723] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV  [876610.708952] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/video4linux/video1 (video4linux)
@blueness
Copy link
Contributor

Unfortunately that information doesn't say much beyond the timestamps. What's the device that triggers this?

@l29ah
Copy link
Author

l29ah commented Dec 14, 2017

I've tried plugging in two different usb webcams, usb bluetooth adapter and usb sound card with similar results.

@blueness
Copy link
Contributor

Okay it doesn't sound device specific. What distro are you using. What kernel? If you configured the kernel yourself, please attach it to the bug.

@l29ah
Copy link
Author

l29ah commented Dec 14, 2017

Gentoo Hardened. 4.9.52-unofficial+grsec
https://dump.bitcheese.net/files/buhudom/config.gz

@blueness
Copy link
Contributor

I strongly suspect the hardening. Having maintained the hardened kernel for many years, if I'm right, I can tell you this is not going to be easy to nail down. The cycle of "disable this option and see if it fixes it" based on guess work is probably going to take too long.

The best approach here is to rule out the hardened kernel first by seeing if the problem goes away with a vanilla kernel.

@l29ah
Copy link
Author

l29ah commented Dec 15, 2017 via email

@blueness
Copy link
Contributor

I don't think restart eudev did it. You're running kernel was probably in a bad state.

@l29ah
Copy link
Author

l29ah commented May 31, 2018

Reproduced on (non-hardened) 4.16.9, yet restarting udev didn't affect the behaviour.

@l29ah
Copy link
Author

l29ah commented May 31, 2018

KERNEL[115247.063164] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2 (usb)
KERNEL[115247.063508] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
KERNEL[115247.072029] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6 (scsi)
KERNEL[115247.072058] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/scsi_host/host6 (scsi_host)
KERNEL[115247.072079] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
KERNEL[115247.072102] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2 (usb)
KERNEL[115248.097484] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0 (scsi)
KERNEL[115248.097515] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0 (scsi)
KERNEL[115248.097532] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/scsi_disk/6:0:0:0 (scsi_disk)
KERNEL[115248.097547] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0 (scsi)
KERNEL[115248.097561] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/scsi_device/6:0:0:0 (scsi_device)
KERNEL[115248.097622] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg1 (scsi_generic)
KERNEL[115248.097809] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/bsg/6:0:0:0 (bsg)
KERNEL[115248.103371] add      /devices/virtual/bdi/8:16 (bdi)
UDEV  [115248.108787] add      /devices/virtual/bdi/8:16 (bdi)
KERNEL[115248.111066] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb (block)
KERNEL[115248.111099] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1 (block)
UDEV  [115257.284056] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2 (usb)
UDEV  [115267.478525] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV  [115267.478557] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6 (scsi)
UDEV  [115267.478805] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/scsi_host/host6 (scsi_host)
UDEV  [115267.479236] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV  [115267.536926] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2 (usb)
UDEV  [115267.536961] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0 (scsi)
UDEV  [115267.537439] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0 (scsi)
UDEV  [115267.537654] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/scsi_disk/6:0:0:0 (scsi_disk)
UDEV  [115267.537992] bind     /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0 (scsi)
UDEV  [115267.538184] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/scsi_device/6:0:0:0 (scsi_device)
UDEV  [115267.538690] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg1 (scsi_generic)
UDEV  [115267.542961] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/bsg/6:0:0:0 (bsg)
UDEV  [115267.630923] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb (block)
UDEV  [115267.704832] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1 (block)

@blueness
Copy link
Contributor

Looks like this is still an issue.

@l29ah
Copy link
Author

l29ah commented Aug 11, 2018

Yeah, and 4.17.11 is here.

@l29ah
Copy link
Author

l29ah commented Feb 3, 2019

Found a better culprit: rickysarraf/laptop-mode-tools#138

@l29ah l29ah closed this as completed Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants