Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #966849

Bug#933230: acpid: Race during startup can result in event devices not being opened

From anomie@users.sourceforge.net
Newsgroups linux.debian.bugs.dist
Subject Bug#933230: acpid: Race during startup can result in event devices not being opened
Date 2019-07-27 23:00 +0200
Message-ID <yoBXj-81w-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Package: acpid
Version: 1:2.0.31-2

When using netlink and the input layer, acpid opens the existing devices
in /dev/input/event* first and only after sets an inotify to be told
about newly created devices. If an event device is created between the
time acpid reads the directory and the time it sets the inotify, it
won't open that device and events provided by that device will be lost.

On my system, this race happens frequently for /dev/input/event8 "Video
Bus" during boot, preventing acpid from handling my system's brightness
keys.

The attached patch changes the ordering, setting the inotify before
opening the existing devices. It also adds a check to prevent
double-opening of a device if it is created between the inotify and the
reading of the directory.

Back to linux.debian.bugs.dist | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Bug#933230: acpid: Race during startup can result in event devices not being opened anomie@users.sourceforge.net - 2019-07-27 23:00 +0200
  Bug#933230: acpid: Race during startup can result in event devices not being opened Ted Felix <ted@tedfelix.com> - 2019-07-29 01:30 +0200
  Bug#933230: acpid: Race during startup can result in event devices not being opened Ted Felix <ted@tedfelix.com> - 2019-07-31 15:00 +0200

csiph-web