Re: [PATCH 6/6] procfs: Kill the bkl in ioctl

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Saturday, April 10, 2010 - 8:28 am

On Thu, Apr 01, 2010 at 02:45:32PM +0200, Arnd Bergmann wrote:



So you mean we should attribute explicit default_llseek to the evil
places instead of explicit generic_file_llseek in the safe ones?
That's not a bad idea as it would result in much less changes.

The problem happens the day you switch to generic_file_llseek() as the
new default llseek(), how do you prove that all remaining fops
that don't implement .llseek don't use the bkl? There will be
hundreds of them and saying "we've looked all of them and they don't
need it" will be a scary justification.

On the opposite, attributing explicit generic_file_llseek or
non_seekable_open on the safe places and default_llseek on
the dozens of others doubtful places is easier to get a
safe conclusion.

But yeah we should try, at least attributing explicit
default_llseek won't harm, quite the opposite.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/6] Kill the bkl in procfs, Frederic Weisbecker, (Mon Mar 29, 11:20 pm)
[PATCH 1/6] procfs: Kill BKL in llseek on proc base, Frederic Weisbecker, (Mon Mar 29, 11:20 pm)
[PATCH 2/6] procfs: Use generic_file_llseek in /proc/kcore, Frederic Weisbecker, (Mon Mar 29, 11:20 pm)
[PATCH 3/6] procfs: Use generic_file_llseek in /proc/kmsg, Frederic Weisbecker, (Mon Mar 29, 11:20 pm)
[PATCH 4/6] procfs: Use generic_file_llseek in /proc/vmcore, Frederic Weisbecker, (Mon Mar 29, 11:20 pm)
[PATCH 5/6] procfs: Push down the bkl from ioctl, Frederic Weisbecker, (Mon Mar 29, 11:20 pm)
[PATCH 6/6] procfs: Kill the bkl in ioctl, Frederic Weisbecker, (Mon Mar 29, 11:20 pm)
Re: [PATCH 5/6] procfs: Push down the bkl from ioctl, Alexey Dobriyan, (Mon Mar 29, 11:31 pm)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Alexey Dobriyan, (Mon Mar 29, 11:38 pm)
Re: [PATCH 1/6] procfs: Kill BKL in llseek on proc base, Alexey Dobriyan, (Mon Mar 29, 11:40 pm)
Re: [PATCH 1/6] procfs: Kill BKL in llseek on proc base, Frederic Weisbecker, (Mon Mar 29, 11:50 pm)
Re: [PATCH 5/6] procfs: Push down the bkl from ioctl, Frederic Weisbecker, (Tue Mar 30, 12:02 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Frederic Weisbecker, (Tue Mar 30, 12:07 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Arnd Bergmann, (Tue Mar 30, 3:33 am)
Re: [PATCH 5/6] procfs: Push down the bkl from ioctl, Arnd Bergmann, (Tue Mar 30, 3:37 am)
Re: [PATCH 5/6] procfs: Push down the bkl from ioctl, Frederic Weisbecker, (Tue Mar 30, 11:27 am)
Re: [PATCH 5/6] procfs: Push down the bkl from ioctl, Arnd Bergmann, (Tue Mar 30, 11:54 am)
Re: [PATCH 5/6] procfs: Push down the bkl from ioctl, Frederic Weisbecker, (Tue Mar 30, 12:21 pm)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Frederic Weisbecker, (Wed Mar 31, 10:22 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Arnd Bergmann, (Wed Mar 31, 1:21 pm)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Arnd Bergmann, (Wed Mar 31, 2:04 pm)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Frederic Weisbecker, (Wed Mar 31, 2:41 pm)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Alan Cox, (Wed Mar 31, 2:55 pm)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Frederic Weisbecker, (Wed Mar 31, 2:56 pm)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Arnd Bergmann, (Thu Apr 1, 2:07 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Arnd Bergmann, (Thu Apr 1, 4:37 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Stefan Richter, (Thu Apr 1, 4:39 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Arnd Bergmann, (Thu Apr 1, 5:42 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Arnd Bergmann, (Thu Apr 1, 5:45 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Stefan Richter, (Sat Apr 3, 10:53 am)
[PATCH v2] procfs: Push down the bkl from ioctl, Frederic Weisbecker, (Fri Apr 9, 7:45 am)
[PATCH v3] procfs: Push down the bkl from ioctl, Frederic Weisbecker, (Sat Apr 10, 6:25 am)
Re: [PATCH 0/6] Kill the bkl in procfs, Frederic Weisbecker, (Sat Apr 10, 6:27 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Frederic Weisbecker, (Sat Apr 10, 8:28 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Frederic Weisbecker, (Sat Apr 10, 9:09 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Frederic Weisbecker, (Sat Apr 10, 9:14 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Frederic Weisbecker, (Sat Apr 10, 9:24 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Christoph Hellwig, (Sun Apr 11, 6:03 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Arnd Bergmann, (Mon Apr 12, 8:05 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Arnd Bergmann, (Mon Apr 12, 10:34 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Frederic Weisbecker, (Mon Apr 12, 2:53 pm)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Arnd Bergmann, (Tue Apr 13, 2:26 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Christoph Hellwig, (Tue Apr 13, 11:03 am)
Re: [PATCH 6/6] procfs: Kill the bkl in ioctl, Frederic Weisbecker, (Tue Apr 13, 1:10 pm)
[PATCH v4] procfs: Push down the bkl from ioctl, Frederic Weisbecker, (Sun May 16, 6:23 pm)