[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2023090328-slam-verbose-957d@gregkh>
Date: Sun, 3 Sep 2023 14:54:53 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Edward AD <eadavis@...a.com>
Cc: syzbot+85792f3143e6271d2c97@...kaller.appspotmail.com,
andriy.shevchenko@...ux.intel.com, linux-kernel@...r.kernel.org,
rafael@...nel.org, syzkaller-bugs@...glegroups.com
Subject: Re: [PATCH] kobject: fix kobj and fmt are both null
On Sun, Sep 03, 2023 at 08:42:31PM +0800, Edward AD wrote:
> If kobj and fmt are both NULL, it will cause an exception in kvasprintf_const,
> then when this situation occurs, -EINVAL is directly returned.
How can this happen? Are there any in-kernel users that cause this to
occur?
If so, which ones, why not fix that?
And your description isn't quite correct here, you are not checking for
kobj, but rather kobj->name.
thanks,
greg k-h
Powered by blists - more mailing lists