Bug 5852

Summary: pcmcia card reader приводит систему в непотребное состояние
Product: Sisyphus Reporter: Anton Farygin <rider>
Component: udevAssignee: Alexey Morozov <morozov>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: critical    
Priority: P4 CC: arseny, shaba
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on: 5853    
Bug Blocks:    

Description Anton Farygin 2005-01-11 10:41:12 MSK
В случае использования udev_volume_id согласно README:
# cat /etc/udev/rules.d/02-test.rules 
KERNEL="[hs]d*", PROGRAM="/sbin/udev_volume_id -l", SYMLINK="%c"

получаем неработоспособную систему при появлении PCMCIA Card Reader:

При включенной отладке в hotplug'е можно наблюдать непрерывный поток сообщений:
Jan 11 08:55:55 rimob default.hotplug[11301]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQ
NUM=1404 _=/usr/bin/env)
Jan 11 08:55:55 rimob default.hotplug[11309]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQNUM
=1405 _=/usr/bin/env)
Jan 11 08:55:55 rimob default.hotplug[11321]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQ
NUM=1406 _=/usr/bin/env)
Jan 11 08:55:55 rimob default.hotplug[11345]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQNUM
=1409 _=/usr/bin/env)
Jan 11 08:55:55 rimob default.hotplug[11340]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQ
NUM=1408 _=/usr/bin/env)
Jan 11 08:55:55 rimob default.hotplug[11360]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQ
NUM=1410 _=/usr/bin/env)
Jan 11 08:55:55 rimob default.hotplug[11329]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQNUM
=1407 _=/usr/bin/env)
Jan 11 08:55:55 rimob default.hotplug[11369]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQNUM
=1411 _=/usr/bin/env)
Jan 11 08:55:55 rimob default.hotplug[11381]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQ
NUM=1412 _=/usr/bin/env)
Jan 11 08:55:56 rimob default.hotplug[11389]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQNUM
=1413 _=/usr/bin/env)
Jan 11 08:55:56 rimob default.hotplug[10578]: no runnable
/etc/hotplug/block.agent is installed
Jan 11 08:55:56 rimob default.hotplug[11403]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQ
NUM=1414 _=/usr/bin/env)
Jan 11 08:55:56 rimob default.hotplug[11411]: arguments (block) env
(PHYSDEVPATH=/devices/ide2/2.0 SUBSYSTEM=block OLDPWD=/ DEVPATH=/block/h
de/hde1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/
SHLVL=2 PHYSDEVDRIVER=ide-disk DEBUG=yes PHYSDEVBUS=ide SEQNUM
=1415 _=/usr/bin/env)
Comment 1 Anton Farygin 2005-01-12 13:45:22 MSK
Дополнительная информация:
# systool -a -c block -P -C -v hde
Class = "block"

  Class Device = "hde"
  Class Device path = "/sys/block/hde"
    dev                 = "33:0"
    range               = "64"
    removable           = "1"
    size                = "246016"
    stat                = "       1        0        8        8        0        0
       0        0        0        8        8"

    Device = "2.0"
    Device path = "/sys/devices/ide2/2.0"
      detach_state        = "0"


      Device "2.0"'s parent
        Device = "ide2"
        Device path = "/sys/devices/ide2"
          detach_state        = "0"

from dmesg:
------------
cs: memory probe 0xa0000000-0xa0ffffff: clean.
Probing IDE interface ide2...
hde: 4in1 Adapter, CFA DISK drive
ide2 at 0x100-0x107,0x10e on irq 3
hde: max request size: 128KiB
hde: 246016 sectors (125 MB) w/1KiB Cache, CHS=961/8/32
hde: cache flushes not supported
 hde: hde1
ide-cs: hde: Vcc = 3.3, Vpp = 0.0
------------
Comment 2 Alexey Morozov 2005-02-15 09:37:18 MSK
Баг ide-cs, пофикшено vsu в ядре

На самом деле, по уверениям David Zeuthen'а, в HEAD'e HAL'а уже существуют
воркэраунды и против ide-cs, и против ZIP'ов. В общем, процесс идет