[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <044260d2-4aa3-4937-9f5b-91e039a1df41@rowland.harvard.edu>
Date: Mon, 19 Aug 2024 13:14:19 -0400
From: Alan Stern <stern@...land.harvard.edu>
To: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
Cc: Greg KH <gregkh@...uxfoundation.org>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
syzbot <syzbot+85e3ddbf0ddbfbc85f1e@...kaller.appspotmail.com>,
linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
linux-usb@...r.kernel.org, syzkaller-bugs@...glegroups.com
Subject: Re: [PATCH] media/usb/siano: Fix endpoint type checking in smsusb
On Mon, Aug 19, 2024 at 06:24:56PM +0200, Mauro Carvalho Chehab wrote:
> Basically, the actual SMS device type is given by this enum:
>
> enum sms_device_type_st {
> SMS_UNKNOWN_TYPE = -1,
>
> SMS_STELLAR = 0,
> SMS_NOVA_A0,
> SMS_NOVA_B0,
> SMS_VEGA,
> SMS_VENICE,
> SMS_MING,
> SMS_PELE,
> SMS_RIO,
> SMS_DENVER_1530,
> SMS_DENVER_2160,
>
> SMS_NUM_OF_DEVICE_TYPES /* This is just a count */
> };
>
> But I dunno if there are a 1:1 mapping between type and chipset
> number. The above type names probably match some vendor internal
> names, but we never had any tables associating them to a device number,
> as the vendor never provided us such information.
>
> Btw I vaguely remember I heard about a newer Siano chipsets (sm3xxx),
> but never saw such devices.
>
> -
>
> Now, I'm not sure about what endpoints this specific driver exports, as
> I'm lacking vendor's documentation. What I said is that almost all DVB
> devices have isoc endpoints, but I dunno if this is the case of Siano.
Currently the driver exports only bulk endpoints, even though it doesn't
check the endpoint type. You can tell because the only routine in it
that calls usb_submit_urb() is smsusb_submit_urb(), and that routine
calls usb_fill_bulk_urb() before doing the submission.
Given this, I suggest merging the earlier patch submission from Nikita
Zhandarovich as-is. If the driver ever evolves to include support for
isochronous endpoints, the probe function can be modified then.
Alan Stern
Powered by blists - more mailing lists