Re: [PATCH AUTOSEL 5.1 35/70] loop: Don't change loop device under exclusive opener

2019-06-20 Thread Jan Kara
On Wed 19-06-19 16:11:36, Sasha Levin wrote: > On Mon, Jun 10, 2019 at 11:00:13AM +0200, Jan Kara wrote: > > On Sat 08-06-19 07:39:14, Sasha Levin wrote: > > > From: Jan Kara > > > > > > [ Upstream commit 33ec3e53e7b1869d7851e59e126bdb0fe0bd1982 ] > > > > Please don't push this to stable kernels

[PATCH AUTOSEL 5.1 35/70] loop: Don't change loop device under exclusive opener

2019-06-08 Thread Sasha Levin
From: Jan Kara [ Upstream commit 33ec3e53e7b1869d7851e59e126bdb0fe0bd1982 ] Loop module allows calling LOOP_SET_FD while there are other openers of the loop device. Even exclusive ones. This can lead to weird consequences such as kernel deadlocks like: mount_bdev()lo