[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dcd5178f3706fd57352f171bb20535ed052d26fe.camel@infradead.org>
Date: Thu, 28 Oct 2021 13:54:49 +0200
From: Amit Shah <amit@...radead.org>
To: YE Chengfeng <cyeaa@...nect.ust.hk>,
"amit@...nel.org" <amit@...nel.org>,
"arnd@...db.de" <arnd@...db.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: 回复: drivers/char: suspected
null-pointer dereference problem in handle_control_message
On Tue, 2021-10-26 at 11:51 +0000, YE Chengfeng wrote:
> Thanks for your reply.
>
> Agree with you, seems that the branch at #line 1573 already handles this situation.
>
> Another question, is it possible that port->name is null when show_port_name is invoked? I don't see any null-check there, could it be a null-dereference problem at #line 1282? Link is below.
> https://github.com/torvalds/linux/blob/master/drivers/char/virtio_console.c#L1282
Why don't you try it?
It's certainly possible that a port doesn't have a name.
Powered by blists - more mailing lists