lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 07 Aug 2006 20:33:08 +0100
From:	Andrew Clayton <andrew@...ital-domain.net>
To:	linux-kernel@...r.kernel.org
CC:	Andrew Clayton <andrew@...ital-domain.net>
Subject: 2.6.18-rc strange hotplug/udev/uevent problem

Hi,

Got a weird problem here.

On x86 Fedora Core 5 with 2.6.17 with GNOME, plugging in a usb stick 
would result in it being mounted. With 2.6.18-rc this no longer occurs. 
FC5 got an update to hal to work with 2.6.18 kernels, but it don't work 
for me. I'm having the same problem on 3 x86 FC5 machines.

The weird thing is, this all works on my x86-64 FC5 workstation with 
2.6.18-rc both before and after the hal update.

Anyway I submitted a bug report against HAL suspecting it broken

https://bugs.freedesktop.org/show_bug.cgi?id=7756

Perhaps not. So I turn my attention more to the kernel.


2.6.17 was working fine. You could plug/unplug/plug a USB memory stick 
and it would get mounted each time.

2.6.18-rc[23] works the same as above on my x86-64 FC5 box.

2.6.18-rc[23] and 2.6.18-rc3-git7 on x86 built with 
usb/scsi/sd/vfat/nls_* built as modules will mount on the first plug but 
not subsequent plugs.

If you rmmod the sd_mod module and plug in, then it will get mounted.

When the kernel is built non-modular then plugging in will not mount it. 
If you boot with the device plugged in then when you log into GNOME it 
will be mounted. But subsequent unmount/plug ins will not get it mounted.

The following is from the udevmonitor program running under 2.6.18-rc 
built modular.

Plugging device in with sd_mod not loaded.

UEVENT[1154789226.207797] add@...vices/pci0000:00/0000:00:11.2/usb1/1-2
UEVENT[1154789226.207985] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/usbdev1.11_ep00
UEVENT[1154789226.210770] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0
UDEV  [1154789226.210770] add@...vices/pci0000:00/0000:00:11.2/usb1/1-2
UEVENT[1154789226.211037] add@...ass/scsi_host/host9
UEVENT[1154789226.211097] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/usbdev1.11_ep81
UEVENT[1154789226.211157] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/usbdev1.11_ep02
UEVENT[1154789226.211215] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/usbdev1.11
UDEV  [1154789226.211690] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/usbdev1.11_ep00
UDEV  [1154789226.452013] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/usbdev1.11
UDEV  [1154789226.956997] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0
UDEV  [1154789226.959419] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/usbdev1.11_ep81
UDEV  [1154789226.959466] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/usbdev1.11_ep02
UDEV  [1154789226.959875] add@...ass/scsi_host/host9
UEVENT[1154789231.647515] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/host9/target9:0:0/9:0:0:0
UDEV  [1154789231.647515] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/host9/target9:0:0/9:0:0:0
UEVENT[1154789231.647570] add@...ass/scsi_device/9:0:0:0
UEVENT[1154789231.749919] add@...dule/sd_mod
UEVENT[1154789231.751494] add@...s/scsi/drivers/sd
UEVENT[1154789231.752839] add@...ass/scsi_disk/9:0:0:0
UDEV  [1154789231.753751] add@...ass/scsi_disk/9:0:0:0
UEVENT[1154789231.832312] add@...ock/sda
UEVENT[1154789231.834681] add@...ock/sda/sda1
UDEV  [1154789231.836590] add@...ass/scsi_device/9:0:0:0
UDEV  [1154789231.933474] add@...ock/sda
UDEV  [1154789232.106892] add@...ock/sda/sda1
UEVENT[1154789235.937510] mount@...ock/sda/sda1
UDEV  [1154789235.937510] mount@...ock/sda/sda1


Plugging device in with sd_mod loaded.

UEVENT[1154789359.096963] add@...vices/pci0000:00/0000:00:11.2/usb1/1-2
UDEV  [1154789359.096963] add@...vices/pci0000:00/0000:00:11.2/usb1/1-2
UEVENT[1154789359.097052] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/usbdev1.12_ep00
UDEV  [1154789359.098126] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/usbdev1.12_ep00
UEVENT[1154789359.100369] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0
UEVENT[1154789359.100418] add@...ass/scsi_host/host10
UEVENT[1154789359.100427] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/usbdev1.12_ep81
UEVENT[1154789359.100435] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/usbdev1.12_ep02
UEVENT[1154789359.100444] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/usbdev1.12
UDEV  [1154789359.106148] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/usbdev1.12
UDEV  [1154789359.187500] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0
UDEV  [1154789359.189198] add@...ass/scsi_host/host10
UDEV  [1154789359.190078] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/usbdev1.12_ep81
UDEV  [1154789359.191020] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/usbdev1.12_ep02
UEVENT[1154789364.540249] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/host10/target10:0:0/10:0:0:0
UDEV  [1154789364.540249] 
add@...vices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/host10/target10:0:0/10:0:0:0
UEVENT[1154789364.540355] add@...ass/scsi_disk/10:0:0:0
UDEV  [1154789364.541272] add@...ass/scsi_disk/10:0:0:0
UEVENT[1154789364.586896] add@...ock/sda
UEVENT[1154789364.586954] add@...ock/sda/sda1
UEVENT[1154789364.586963] add@...ass/scsi_device/10:0:0:0
UDEV  [1154789364.598962] add@...ass/scsi_device/10:0:0:0
UDEV  [1154789364.719350] add@...ock/sda
UDEV  [1154789364.874149] add@...ock/sda/sda1


No mount events here, this is similar output to the non-modular case..


Here's udevmonitor output from my x86-64 FC5 2.6.18-rc[23]

UEVENT[1154510664.116702] add@...vices/pci0000:00/0000:00:10.4/usb1/1-8
UEVENT[1154510664.116905] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/usbdev1.12_ep00
UEVENT[1154510664.116911] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/1-8:1.0
UEVENT[1154510664.116915] add@...ass/scsi_host/host12
UEVENT[1154510664.116919] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/1-8:1.0/usbdev1.12_ep81
UEVENT[1154510664.116924] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/1-8:1.0/usbdev1.12_ep02
UEVENT[1154510664.116928] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/1-8:1.0/usbdev1.12_ep83
UEVENT[1154510664.116932] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/usbdev1.12
UDEV  [1154510664.200847] add@...vices/pci0000:00/0000:00:10.4/usb1/1-8
UDEV  [1154510664.364513] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/usbdev1.12_ep00
UDEV  [1154510664.371420] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/usbdev1.12
UDEV  [1154510664.631746] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/1-8:1.0
UDEV  [1154510664.652152] add@...ass/scsi_host/host12
UDEV  [1154510664.776377] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/1-8:1.0/usbdev1.12_ep81
UDEV  [1154510664.785827] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/1-8:1.0/usbdev1.12_ep02
UDEV  [1154510664.795277] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/1-8:1.0/usbdev1.12_ep83
UEVENT[1154510669.116889] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/1-8:1.0/host12/target12:0:0/12:0:0:0
UEVENT[1154510669.116915] add@...ass/scsi_disk/12:0:0:0
UDEV  [1154510669.118308] 
add@...vices/pci0000:00/0000:00:10.4/usb1/1-8/1-8:1.0/host12/target12:0:0/12:0:0:0
UDEV  [1154510669.136236] add@...ass/scsi_disk/12:0:0:0
UEVENT[1154510670.246094] add@...ock/sdb
UEVENT[1154510670.246115] add@...ock/sdb/sdb1
UEVENT[1154510670.246119] add@...ass/scsi_device/12:0:0:0
UDEV  [1154510670.250690] add@...ass/scsi_device/12:0:0:0
UDEV  [1154510670.383650] add@...ock/sdb
UDEV  [1154510670.555570] add@...ock/sdb/sdb1
UEVENT[1154510671.433544] mount@...ock/sdb/sdb1
UDEV  [1154510671.434129] mount@...ock/sdb/sdb1


I guess the next thing is to try and narrow down when this started, but 
as that could take some time, I'm posting this now.


Cheers,

Andrew
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ