Thread (14 messages) flat view 14 messages, 6 authors, 2021-05-17

Re: [syzbot] WARNING in rtl8152_probe

From: Greg KH <hidden>
Date: 2021-05-14 06:48:58
Also in: linux-usb, lkml

On Fri, May 14, 2021 at 02:58:00AM +0000, Hayes Wang wrote:
Alan Stern [off-list ref]
quoted
Sent: Thursday, May 13, 2021 10:26 PM
[...]
quoted
Syzbot doesn't test real devices.  It tests emulations, and the emulated
devices usually behave very strangely and in very peculiar and
unexpected ways, so as to trigger bugs in the kernel.  That's why the
USB devices you see in syzbot logs usually have bizarre descriptors.
Do you mean I have to debug for a device which doesn't exist?
I don't understand why I must consider a fake device
which provide unexpected USB descriptor deliberately?
Because people can create "bad" devices and plug them into a system
which causes the driver to load and then potentially crash the system or
do other bad things.

USB drivers now need to be able to handle "malicious" devices, it's been
that way for many years now.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help