[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZBNBlwc9lt+pLFkd@kroah.com>
Date: Thu, 16 Mar 2023 17:19:35 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Valery Zabrovsky <valthebrewer@...dex.ru>
Cc: Guo Zhengkui <guozhengkui@...o.com>,
Aaro Koskinen <aaro.koskinen@....fi>,
Alan Stern <stern@...land.harvard.edu>,
Mian Yousaf Kaukab <yousaf.kaukab@...el.com>,
Felipe Balbi <balbi@...com>,
Alexey Khoroshilov <khoroshilov@...ras.ru>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
lvc-project@...uxtesting.org
Subject: Re: [PATCH] usb: gadget: net2280: fix NULL pointer dereference
On Thu, Mar 16, 2023 at 06:53:55PM +0300, Valery Zabrovsky wrote:
> In net2280_free_request():
> If _ep is NULL, then ep is NULL and is dereferenced
> while trying to produce an error message.
How can that ever happen? How did you test and hit this?
> The patch replaces dev_err() with pr_err() which works fine.
That's not a good idea for driver code to use, sorry.
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
As I have said before, your testing framework needs a lot more work.
good luck!
greg k-h
Powered by blists - more mailing lists