Re: [Linux-kernel-mentees] [PATCH] udf: Fix memory leak in udf_process_sequence()

From: Peilin Ye
Date: Wed Sep 23 2020 - 06:29:34 EST


Hi,

On Wed, Sep 23, 2020 at 12:04:05PM +0200, Jan Kara wrote:
> On Tue 22-09-20 11:45:31, Peilin Ye wrote:
> > udf_process_sequence() is leaking memory. Free `data.part_descs_loc`
> > before returning.
> >
> > Cc: stable@xxxxxxxxxxxxxxx
> > Fixes: 7b78fd02fb19 ("udf: Fix handling of Partition Descriptors")
> > Reported-and-tested-by: syzbot+128f4dd6e796c98b3760@xxxxxxxxxxxxxxxxxxxxxxxxx
> > Link: https://syzkaller.appspot.com/bug?id=c5ec4e6f5d818f3c4afd4d59342468eec08a38da
> > Signed-off-by: Peilin Ye <yepeilin.cs@xxxxxxxxx>
>
> Thanks for the patch but I've just yesterday written exactly the same patch
> and merged it to my tree...

Ah, no worries, happy to see the bug gets fixed!

Peilin Ye