public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] uio: some fixes
@ 2012-12-06 12:44 Benedikt Spranger
  2012-12-06 12:44 ` [PATCH 1/2] uio: be aware of open(), mmap(), close() Benedikt Spranger
  2012-12-06 12:44 ` [PATCH 2/2] uio: avoid module unloding of in module created UIO devices Benedikt Spranger
  0 siblings, 2 replies; 5+ messages in thread
From: Benedikt Spranger @ 2012-12-06 12:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: hjk, gregkh, Alexander.Frank, Benedikt Spranger

Using uio_pdrv_genirq can cause a system hangup due to accessing mmaped memory,
since the pm_runtime_put_sync() call in uio_release can disable clocks.
Also unloading a module wich creates/removes UIO devices can cause a system
crash. Track mappings and get a module reference to avoid this.

Benedikt Spranger (2):
  uio: be aware of open(), mmap(), close()
  uio: avoid module unloding of in module created UIO devices

 drivers/uio/uio.c             |   67 ++++++++++++++++++++++++++++++++---------
 drivers/uio/uio_pdrv_genirq.c |    4 +--
 include/linux/uio_driver.h    |    5 +--
 3 files changed, 57 insertions(+), 19 deletions(-)

-- 
1.7.10.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-06 22:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 12:44 [PATCH 0/2] uio: some fixes Benedikt Spranger
2012-12-06 12:44 ` [PATCH 1/2] uio: be aware of open(), mmap(), close() Benedikt Spranger
2012-12-06 22:28   ` Hans J. Koch
2012-12-06 12:44 ` [PATCH 2/2] uio: avoid module unloding of in module created UIO devices Benedikt Spranger
2012-12-06 22:25   ` Hans J. Koch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox