Re: [PATCH 01/18] lirc core device driver infrastructure

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stefan Richter
Date: Tuesday, September 9, 2008 - 6:27 am

Sebastian Siewior wrote:
...

Really?  .open() has been changed to be called without the BKL held, but 
.ioctl() is still called with BKL protection.  Currently, many .ioctl() 
implementations are replaced by .unlocked_ioctl() which take the BKL 
themselves if necessary or if it is not yet clear whether they would 
work without BKL protection.

...

This should be audited for the following aspects:

   - Could there be a race condition between irctl_open() and
     lirc_dev_init()?  If yes, try to rework them to eliminate the race,
     or as a last resort take the BKL in irctl_open().

   - Does irctl_ioctl() require BKL protection, i.e. does it have to be
     serialized against itself and against irctl_open()?  If not, replace
     it by .unlocked_ioctl.  If yes, preferably convert it to
     .unlocked_ioctl too and add a local mutex for the necessary
     serialization.

(Added Cc: Jonathan Corbet to correct me if I'm wrong.)
-- 
Stefan Richter
-=====-==--- =--= -=--=
http://arcgraph.de/sr/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/18] linux infrared remote control drivers, Jarod Wilson, (Mon Sep 8, 9:05 pm)
[PATCH 01/18] lirc core device driver infrastructure, Jarod Wilson, (Mon Sep 8, 9:05 pm)
[PATCH 05/18] lirc driver for i2c-based IR receivers, Jarod Wilson, (Mon Sep 8, 9:05 pm)
[PATCH 15/18] lirc driver for the SIR IrDA port, Jarod Wilson, (Mon Sep 8, 9:06 pm)
Re: [PATCH 0/18] linux infrared remote control drivers, Chris Wedgwood, (Mon Sep 8, 9:36 pm)
Re: [PATCH 0/18] linux infrared remote control drivers, Alexey Dobriyan, (Tue Sep 9, 12:06 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Sebastian Siewior, (Tue Sep 9, 12:40 am)
Re: [PATCH 0/18] linux infrared remote control drivers, Janne Grunau, (Tue Sep 9, 1:32 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Sebastian Siewior, (Tue Sep 9, 5:33 am)
Re: [PATCH 0/18] linux infrared remote control drivers, Christoph Hellwig, (Tue Sep 9, 5:46 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Hellwig, (Tue Sep 9, 6:01 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Stefan Richter, (Tue Sep 9, 6:27 am)
Re: [PATCH 0/18] linux infrared remote control drivers, Jarod Wilson, (Tue Sep 9, 8:23 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Jonathan Corbet, (Tue Sep 9, 8:33 am)
Re: [PATCH 0/18] linux infrared remote control drivers, Lennart Sorensen, (Tue Sep 9, 11:27 am)
Re: [PATCH 0/18] linux infrared remote control drivers, Jarod Wilson, (Tue Sep 9, 11:34 am)
Re: [PATCH 02/18] lirc serial port receiver/transmitter de ..., Stefan Lippers-Hollmann, (Tue Sep 9, 12:51 pm)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Hellwig, (Wed Sep 10, 5:29 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Dmitry Torokhov, (Wed Sep 10, 6:08 am)
Re: [PATCH 06/18] lirc driver for the ATI USB RF remote re ..., Christoph Hellwig, (Wed Sep 10, 6:14 am)
Re: [PATCH 06/18] lirc driver for the ATI USB RF remote re ..., Christoph Hellwig, (Wed Sep 10, 7:19 am)
Re: [PATCH 05/18] lirc driver for i2c-based IR receivers, Jonathan Corbet, (Wed Sep 10, 8:42 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Gerd Hoffmann, (Thu Sep 11, 1:47 am)
Re: [PATCH 09/18] lirc driver for the Streamzap PC Receiver, Jonathan Corbet, (Thu Sep 11, 8:22 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Bartelmus, (Thu Sep 11, 9:41 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Bartelmus, (Thu Sep 11, 11:03 am)
Re: [PATCH 07/18] lirc driver for the CommandIR USB Transc ..., Christoph Bartelmus, (Thu Sep 11, 11:24 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Bartelmus, (Thu Sep 11, 11:30 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Jarod Wilson, (Thu Sep 11, 12:09 pm)
Re: [PATCH 01/18] lirc core device driver infrastructure, Janne Grunau, (Thu Sep 11, 12:18 pm)
Re: [PATCH 01/18] lirc core device driver infrastructure, Maxim Levitsky, (Thu Sep 11, 2:28 pm)
Re: [PATCH 01/18] lirc core device driver infrastructure, Dmitry Torokhov, (Thu Sep 11, 9:44 pm)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Hellwig, (Fri Sep 12, 1:33 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Bartelmus, (Sat Sep 13, 12:20 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Bartelmus, (Sat Sep 13, 12:21 am)