[parted-devel] [PATCH] libparted: Fix udev cookie leak in _dm_resize_partition

Phil Susi psusi at ubuntu.com
Mon Jun 5 14:00:52 UTC 2017


On 5/25/2017 1:28 PM, Brian C. Lane wrote:
> The function is setting udev cookies, but not using them when waiting
> for the task. This results in leaked cookies, which can eventually
> exhaust the available number of semaphores.
> 
> 'dmsetup udevcookies' will show a cookie remaining afterwards, and 'ipcs -s'
> will show the semaphores in use.
> 
> Also simplified the exit so that the task is always destroyed and memory
> is all freed in the same path.

Patch looks good and I assume that you verified that it passes make
check still.  It could use a NEWS entry though.





More information about the parted-devel mailing list