Files
twx-linux/drivers
Ian Abbott b189f8eb27 staging: comedi: comedi_fops: do not call blocking ops when !TASK_RUNNING
commit cef988642c upstream.

Comedi's read and write file operation handlers (`comedi_read()` and
`comedi_write()`) currently call `copy_to_user()` or `copy_from_user()`
whilst in the `TASK_INTERRUPTIBLE` state, which falls foul of the
`might_fault()` checks when enabled.  Fix it by setting the current task
state back to `TASK_RUNNING` a bit earlier before calling these
functions.

Reported-by: Piotr Gregor <piotrgregor@rsyncme.org>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-16 13:43:20 -07:00
..
…
…
…
…
…
…
…
…
…
2017-08-06 18:59:49 -07:00
…
…
2017-08-06 18:59:42 -07:00
…
2017-02-23 17:44:36 +01:00
…
…
…
…
…
…
2017-04-21 09:31:24 +02:00
…
…
…
…
…
…
…
…
…
…