Re: [stable] ext4 fscrypt_get_encryption_info() circular locking dependency

2021-01-13 Thread Sergey Senozhatsky
Hello, Eric, sorry for the delay. On (20/12/11 10:03), Eric Biggers wrote: > > [..] > > > > [ 1598.658233] __rwsem_down_read_failed_common+0x186/0x201 > > [ 1598.658235] call_rwsem_down_read_failed+0x14/0x30 > > [ 1598.658238] down_read+0x2e/0x45 > > [ 1598.658240] rmap_walk_file+0x73/0x1ce

Re: [stable] ext4 fscrypt_get_encryption_info() circular locking dependency

2020-12-11 Thread Eric Biggers
On Fri, Dec 11, 2020 at 01:08:07PM +0900, Sergey Senozhatsky wrote: > On (20/12/10 19:48), Eric Biggers wrote: > > > > > > [ 133.454836] Chain exists of: > > > jbd2_handle --> fscrypt_init_mutex --> fs_reclaim > > > > > > [ 133.454840] Possible unsafe locking scenario: > > >

Re: [stable] ext4 fscrypt_get_encryption_info() circular locking dependency

2020-12-10 Thread Sergey Senozhatsky
On (20/12/11 13:08), Sergey Senozhatsky wrote: > > > > How interested are you in having this fixed? Did you encounter an actual > > deadlock or just the lockdep report? > Got one more. fscrypt_get_encryption_info() again, but from ext4_lookup(). [ 162.840909] kswapd0/80 is trying to acquire lo

Re: [stable] ext4 fscrypt_get_encryption_info() circular locking dependency

2020-12-10 Thread Sergey Senozhatsky
On (20/12/10 19:48), Eric Biggers wrote: > > > > [ 133.454836] Chain exists of: > > jbd2_handle --> fscrypt_init_mutex --> fs_reclaim > > > > [ 133.454840] Possible unsafe locking scenario: > > > > [ 133.454841]CPU0CPU1 > > [ 133.454843]-

Re: [stable] ext4 fscrypt_get_encryption_info() circular locking dependency

2020-12-10 Thread Eric Biggers
On Fri, Dec 11, 2020 at 12:36:57PM +0900, Sergey Senozhatsky wrote: > Hi, > > I got the following lockdep splat the other day, while running some > tests on 4.19. I didn't test other stable kernels, but it seems that > 5.4 should also have similar problem. > > As far as I can tell, ext4_dir_open(

[stable] ext4 fscrypt_get_encryption_info() circular locking dependency

2020-12-10 Thread Sergey Senozhatsky
Hi, I got the following lockdep splat the other day, while running some tests on 4.19. I didn't test other stable kernels, but it seems that 5.4 should also have similar problem. As far as I can tell, ext4_dir_open() has been removed quite recently: https://www.mail-archive.com/linux-f2fs-devel@l