[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <xgfwrw3g55wjjceznwgji7szahceaq6pojxkp4edurpbyniirh@idt7cobdxxxa>
Date: Tue, 8 Oct 2024 13:17:34 -0400
From: Kent Overstreet <kent.overstreet@...ux.dev>
To: Mohammed Anees <pvmohammedanees2003@...il.com>
Cc: linux-bcachefs@...r.kernel.org, linux-kernel@...r.kernel.org,
syzbot+37186860aa7812b331d5@...kaller.appspotmail.com
Subject: Re: [PATCH resend v3] bcachefs: Fix NULL pointer dereference in
bch2_opt_to_text
On Sat, Oct 05, 2024 at 06:32:29PM GMT, Mohammed Anees wrote:
> This patch adds a bounds check to the bch2_opt_to_text function to prevent
> NULL pointer dereferences when accessing the opt->choices array. This
> ensures that the index used is within valid bounds before dereferencing.
> The new version enhances the readability.
>
> Reported-and-tested-by: syzbot+37186860aa7812b331d5@...kaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=37186860aa7812b331d5
> Signed-off-by: Mohammed Anees <pvmohammedanees2003@...il.com>
Sorry for missing this before, applied
Powered by blists - more mailing lists