[PATCH] messages: i2o: fix deadlock in compat_ioctl(I2OGETIOPS)

2014-01-31 Thread Alexey Khoroshilov
i2o_cfg_compat_ioctl(I2OGETIOPS) locks i2o_cfg_mutex and then calls i2o_cfg_ioctl(I2OGETIOPS) that locks i2o_cfg_mutex as well. A deadlock is guaranteed. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/message/i2o/i2o_config.c | 4

[PATCH] messages: i2o: fix deadlock in compat_ioctl(I2OGETIOPS)

2014-01-31 Thread Alexey Khoroshilov
i2o_cfg_compat_ioctl(I2OGETIOPS) locks i2o_cfg_mutex and then calls i2o_cfg_ioctl(I2OGETIOPS) that locks i2o_cfg_mutex as well. A deadlock is guaranteed. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov khoroshi...@ispras.ru ---