[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20241011160940.GY1609@twin.jikos.cz>
Date: Fri, 11 Oct 2024 18:09:40 +0200
From: David Sterba <dsterba@...e.cz>
To: Roi Martin <jroi.martin@...il.com>
Cc: clm@...com, josef@...icpanda.com, dsterba@...e.com,
linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] btrfs: fix uninit pointer free on read_alloc_one_name
error
On Thu, Oct 10, 2024 at 09:47:17PM +0200, Roi Martin wrote:
> The read_alloc_one_name function does not initialize the name field of
> the passed fscrypt_str struct if kmalloc fails to allocate the
> corresponding buffer. Thus, it is not guaranteed that
> fscrypt_str.name is initialized when freeing it.
>
> This is a follow-up to the linked patch that fixes the remaining
> instances of the bug introduced by commit e43eec81c516 ("btrfs: use
> struct qstr instead of name and namelen pairs").
>
> Link: https://lore.kernel.org/linux-btrfs/20241009080833.1355894-1-jroi.martin@gmail.com/
> Fixes: e43eec81c516 ("btrfs: use struct qstr instead of name and namelen pairs")
> Signed-off-by: Roi Martin <jroi.martin@...il.com>
Added to for-next, thanks.
Powered by blists - more mailing lists