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-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 30 Sep 2008 14:01:22 +0200
From:	Frans Pop <elendil@...net.nl>
To:	Tony Vroon <tony@...on.org>
Cc:	linux-kernel@...r.kernel.org, Tejun Heo <tj@...nel.org>,
	Jens Axboe <jens.axboe@...cle.com>
Subject: Re: CD tray closes spontaneously after opening it

On Tuesday 30 September 2008, Tony Vroon wrote:
> On Tue, 2008-09-30 at 12:47 +0200, Frans Pop wrote:
> > Since 2.6.27 I've had several times, but not always, that after I
> > open the CD tray by pressing the eject button it spontaneously closes
> > after a short delay. The delay varies between ~0 and ~2 seconds.
>
> For the record, I had this on my Gentoo system. It turned out that HAL
> was responsible. (So it may not be a kernel bug at all)
>
> Do see this report:
> http://bugs.gentoo.org/show_bug.cgi?id=230886

Thanks for the link.

It cannot be hal in my case as I've disabled polling by hal for both
drives using the 'hal-disable-polling' command.

The bug report also mentions udev, but I'm not sure if that's it either
as the bit in the report is about sr* devices, which is SCSI/SATA and
the patch linked there is in Debian's udev.
The udev changelog for Debian has:
udev (0.125-4) unstable; urgency=medium
  * 60-persistent-storage.rules: do not run vol_id on media tray open
    events or the kernel will close the tray again.

Hmm, in Debian unstable /etc/udev/rules.d/60-persistent-storage.rules
also has:
# skip removable ide devices, because open(2) on them causes an events loop
KERNEL=="hd*[!0-9]", ATTR{removable}=="1", DRIVERS=="ide-cs|ide-floppy", \
                                        GOTO="persistent_storage_end"

I wonder if we've got a simple case of a typo here: ide-cs instead of
ide-cd? However, there is such a thing as an ide-cs driver (legacy driver
for PCMCIA IDE/ATA disk cards).
But it does seem logical that rule should also cover IDE CDs...

Cheers,
FJP
--
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