[PATCH 0/6] dm-crypt: misc cleanups and fixes

Hou Tao posted 6 patches 1 year ago
drivers/md/dm-crypt.c | 42 ++++++++++++++++--------------------------
1 file changed, 16 insertions(+), 26 deletions(-)
[PATCH 0/6] dm-crypt: misc cleanups and fixes
Posted by Hou Tao 1 year ago
From: Hou Tao <houtao1@huawei.com>

Hi,

The patchset contains misc cleanups and minor fixes for dm-crypt. These
problem were spotted during the code inspection. The patchset have been
tested by running fio on dm-crypt devices (both with and without
integrity feature). Patch #6 is tested by asynchronizing the
crypt/decrypt algorithm when using random IV.

Please see individual patches for more details. Comments are always
welcome.

Hou Tao (6):
  dm-crypt: set atomic as false when calling crypt_convert() in kworker
  dm-crypt: fully initialize clone->bi_iter in crypt_alloc_buffer()
  dm-crypt: use bi_sector in bio when initialize integrity seed
  dm-crypt: don't update io->sector after
    kcryptd_crypt_write_io_submit()
  dm-crypt: don't initialize cc_sector again
  dm-crypt: track tag_offset in convert_context

 drivers/md/dm-crypt.c | 42 ++++++++++++++++--------------------------
 1 file changed, 16 insertions(+), 26 deletions(-)

-- 
2.29.2
Re: [PATCH 0/6] dm-crypt: misc cleanups and fixes
Posted by Mikulas Patocka 1 year ago

On Mon, 20 Jan 2025, Hou Tao wrote:

> From: Hou Tao <houtao1@huawei.com>
> 
> Hi,
> 
> The patchset contains misc cleanups and minor fixes for dm-crypt. These
> problem were spotted during the code inspection. The patchset have been
> tested by running fio on dm-crypt devices (both with and without
> integrity feature). Patch #6 is tested by asynchronizing the
> crypt/decrypt algorithm when using random IV.
> 
> Please see individual patches for more details. Comments are always
> welcome.
> 
> Hou Tao (6):
>   dm-crypt: set atomic as false when calling crypt_convert() in kworker
>   dm-crypt: fully initialize clone->bi_iter in crypt_alloc_buffer()
>   dm-crypt: use bi_sector in bio when initialize integrity seed
>   dm-crypt: don't update io->sector after
>     kcryptd_crypt_write_io_submit()
>   dm-crypt: don't initialize cc_sector again
>   dm-crypt: track tag_offset in convert_context
> 
>  drivers/md/dm-crypt.c | 42 ++++++++++++++++--------------------------
>  1 file changed, 16 insertions(+), 26 deletions(-)
> 
> -- 
> 2.29.2

I applied the patches. Thanks.

Mikulas