[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200310090644.GA11583@kadam>
Date: Tue, 10 Mar 2020 12:06:44 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Walter Harms <wharms@....de>
Cc: "Tigran A. Aivazian" <aivazian.tigran@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>
Subject: Re: [PATCH] bfs: prevent underflow in bfs_find_entry()
On Mon, Mar 09, 2020 at 08:40:28AM +0000, Walter Harms wrote:
> hi Dan,
> the namelen usage is fishy. It goes into bfs_namecmp()
> where it is checked for namelen < BFS_NAMELEN, leaving
> only the case ==.
The rule in bfs_namecmp() is that the name has to be NUL terminated if
there is enough space.
regards,
dan carpenter
Powered by blists - more mailing lists