Re: [dm-devel] [PATCH 0/4] Fix segfault on access to mpp->hwe

2020-07-14 Thread Benjamin Marzinski
On Mon, Jul 13, 2020 at 01:07:39PM +0200, mwi...@suse.com wrote: > From: Martin Wilck > > This is in response to Lixiaokeng's post > "master - libmultipath: fix use after free when iscsi logs in". > > On top of Lixiaokeng's patch, I've added some log messages and > a fix for mpp->hwe handling

Re: [dm-devel] [lvm-devel] master - multipathd: fix fd leak when iscsi device logs in

2020-07-14 Thread Benjamin Marzinski
On Mon, Jul 13, 2020 at 09:59:43PM +0200, Martin Wilck wrote: > On Mon, 2020-07-13 at 11:56 +0200, Zdenek Kabelac wrote: > > > > > @Zdenek, do we have to protect every libdm call, or is it > > > sufficient > > > to protect only dm_task_run(), as lixiaokeng suggested? > > > > > > > Hi > > > >

[dm-devel] [PATCH AUTOSEL 5.4 17/18] dm: use bio_uninit instead of bio_disassociate_blkg

2020-07-14 Thread Sasha Levin
From: Christoph Hellwig [ Upstream commit 382761dc6312965a11f82f2217e16ec421bf17ae ] bio_uninit is the proper API to clean up a BIO that has been allocated on stack or inside a structure that doesn't come from the BIO allocator. Switch dm to use that instead of bio_disassociate_blkg, which

[dm-devel] [PATCH AUTOSEL 5.7 18/19] dm: use bio_uninit instead of bio_disassociate_blkg

2020-07-14 Thread Sasha Levin
From: Christoph Hellwig [ Upstream commit 382761dc6312965a11f82f2217e16ec421bf17ae ] bio_uninit is the proper API to clean up a BIO that has been allocated on stack or inside a structure that doesn't come from the BIO allocator. Switch dm to use that instead of bio_disassociate_blkg, which

Re: [dm-devel] [PATCH 5/6] crypto: set the flag CRYPTO_ALG_ALLOCATES_MEMORY

2020-07-14 Thread Mikulas Patocka
On Mon, 13 Jul 2020, Horia Geantă wrote: > On 7/13/2020 7:01 PM, Eric Biggers wrote: > > On Mon, Jul 13, 2020 at 06:49:00PM +0300, Horia Geantă wrote: > >> On 7/1/2020 7:52 AM, Eric Biggers wrote: > >>> From: Mikulas Patocka > >>> > >>> Set the flag CRYPTO_ALG_ALLOCATES_MEMORY in the crypto