[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231102090630.938759-1-renmingshuai@huawei.com>
Date: Thu, 2 Nov 2023 17:06:30 +0800
From: Ren Mingshuai <renmingshuai@...wei.com>
To: <kuba@...nel.org>
CC: <caowangbao@...wei.com>, <davem@...emloft.net>,
<khlebnikov@...nvz.org>, <liaichun@...wei.com>,
<linux-kernel@...r.kernel.org>, <netdev@...r.kernel.org>,
<oneukum@...e.com>, <renmingshuai@...wei.com>, <yanan@...wei.com>
Subject: Re: [PATCH] net: usbnet: Fix potential NULL pointer dereference
>> >23ba07991dad said SKB can be NULL without describing the triggering
>> >scenario. Always Check it before dereference to void potential NULL
>> >pointer dereference.
>> I've tried to find out the scenarios where SKB is NULL, but failed.
>> It seems impossible for SKB to be NULL. If SKB can be NULL, please
>> tell me the reason and I'd be very grateful.
>
>What do you mean? Grepping the function name shows call sites with NULL getting passed as skb.
Yes And I just learned that during the cdc_ncm_driver.probe, it is possible to pass a NULL SKB to usbnet_start_xmit().
Powered by blists - more mailing lists