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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/