Omar Sandoval bdac616db9 loop: fix LOOP_GET_STATUS lock imbalance
Commit 2d1d4c1e591f made loop_get_status() drop lo_ctx_mutex before
returning, but the loop_get_status_old(), loop_get_status64(), and
loop_get_status_compat() wrappers don't call loop_get_status() if the
passed argument is NULL. The callers expect that the lock is dropped, so
make sure we drop it in that case, too.

Reported-by: syzbot+31e8daa8b3fc129e75f2@syzkaller.appspotmail.com
Fixes: 2d1d4c1e591f ("loop: don't call into filesystem while holding lo_ctl_mutex")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-04-10 08:38:46 -06:00
..
2018-04-04 19:41:45 -07:00
2018-04-04 18:56:27 -07:00
2018-04-04 20:07:20 -07:00
2018-03-27 09:51:22 +02:00
2018-03-14 19:13:47 +01:00
2018-03-28 13:24:56 +02:00
2018-04-04 20:07:20 -07:00
2018-04-05 14:27:02 -07:00
2018-04-04 18:56:27 -07:00
2018-03-14 19:13:48 +01:00
2018-04-05 14:27:02 -07:00
2018-04-05 14:27:02 -07:00
2018-04-05 14:27:02 -07:00
2018-04-05 14:27:02 -07:00
2018-04-05 14:27:02 -07:00
2018-04-05 14:27:02 -07:00
2018-04-04 20:07:20 -07:00
2018-04-04 20:07:20 -07:00
2018-04-04 16:01:43 -07:00
2018-03-20 10:10:46 +01:00
2018-03-26 15:57:08 +02:00
2018-04-05 14:27:02 -07:00
2018-04-05 15:05:53 -07:00
2018-04-03 12:06:21 -07:00
2018-04-05 14:27:02 -07:00
2018-04-05 14:27:02 -07:00
2018-03-06 09:57:17 -08:00
2018-03-29 13:38:10 +03:00