From: Sean Young <sean@mess.org>
To: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
stable@vger.kernel.org, patches@lists.linux.dev,
Zheng Yejian <zhengyejian1@huawei.com>,
Hans Verkuil <hverkuil-cisco@xs4all.nl>,
linux-kernel@vger.kernel.org, Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH 6.10 288/809] media: dvb-usb: Fix unexpected infinite loop in dvb_usb_read_remote_control()
Date: Thu, 8 Aug 2024 09:29:05 +0100 [thread overview]
Message-ID: <ZrSB0dco8KlKphU0@gofer.mess.org> (raw)
In-Reply-To: <20240807032152.493b037c@mir>
On Wed, Aug 07, 2024 at 03:21:52AM +0200, Stefan Lippers-Hollmann wrote:
> On 2024-08-06, Sean Young wrote:
> > On Sat, Aug 03, 2024 at 06:08:52PM +0200, Stefan Lippers-Hollmann wrote:
> > > On 2024-08-03, Sean Young wrote:
> > > > On Thu, Aug 01, 2024 at 04:51:46PM +0200, Stefan Lippers-Hollmann wrote:
> > > > > On 2024-07-30, Greg Kroah-Hartman wrote:
> > > > > > 6.10-stable review patch. If anyone has any objections, please let me know.
> [...]
> > > > > > Infinite log printing occurs during fuzz test:
> > > > > >
> > > > > > rc rc1: DViCO FusionHDTV DVB-T USB (LGZ201) as ...
> > > > > > ...
> > > > > > dvb-usb: schedule remote query interval to 100 msecs.
> > > > > > dvb-usb: DViCO FusionHDTV DVB-T USB (LGZ201) successfully initialized ...
> > > > > > dvb-usb: bulk message failed: -22 (1/0)
> > > > > > dvb-usb: bulk message failed: -22 (1/0)
> > > > > > dvb-usb: bulk message failed: -22 (1/0)
> > > > > > ...
> > > > > > dvb-usb: bulk message failed: -22 (1/0)
> > > > > >
> > > > > > Looking into the codes, there is a loop in dvb_usb_read_remote_control(),
> > > > > > that is in rc_core_dvb_usb_remote_init() create a work that will call
> > > > > > dvb_usb_read_remote_control(), and this work will reschedule itself at
> > > > > > 'rc_interval' intervals to recursively call dvb_usb_read_remote_control(),
> > > > > > see following code snippet:
> [...]
> > I don't think this drivers uses the bulk endpoint, and it is missing the
> > corresponding out bulk endpoint.
> >
> > Please could you test the patch below please - that would be very helpful in
> > narrowing down this issue.
> [...]
>
> After applying this patch, the TeVii s480 works again on both of my
> systems, but there seems to be a new error message in the log
>
> ds3000_writereg: writereg error(err == -11, reg == 0xa2, value == 0xb7)
> ds3000_writereg: writereg error(err == -11, reg == 0x03, value == 0x12)
> ds3000_writereg: writereg error(err == -11, reg == 0x03, value == 0x12)
> ds3000_writereg: writereg error(err == -11, reg == 0x03, value == 0x02)
> ds3000_writereg: writereg error(err == -11, reg == 0x03, value == 0x02)
I've spent of a lot time reading various code paths, and I don't understand
where this is coming from, which also makes it difficult to add debug printks
too. Without the hardware to debug this, I think we have to revert the commit.
The only idea I've had so far is that we are no longer clearing a halt on
the bulk endpoint, but that seems pretty unlikely for a device that has just
been plugged in.
Stefan, thank you for reporting the issue and testing my patch.
Sean
prev parent reply other threads:[~2024-08-08 8:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-30 15:37 [PATCH 6.10 000/809] 6.10.3-rc1 review Greg Kroah-Hartman
2024-07-30 21:02 ` Pavel Machek
2024-07-30 23:03 ` Florian Fainelli
2024-07-31 5:49 ` Greg Kroah-Hartman
2024-07-30 23:11 ` Shuah Khan
2024-07-31 0:54 ` Mark Brown
2024-07-31 7:07 ` Naresh Kamboju
[not found] ` <20240730151735.968317438@linuxfoundation.org>
[not found] ` <20240801165146.38991f60@mir>
[not found] ` <Zq5KcGd8g4t2d11x@gofer.mess.org>
[not found] ` <20240803180852.6eb5f0cb@mir>
[not found] ` <ZrJD_gHZCsphqT-U@gofer.mess.org>
[not found] ` <20240807032152.493b037c@mir>
2024-08-08 8:29 ` Sean Young [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZrSB0dco8KlKphU0@gofer.mess.org \
--to=sean@mess.org \
--cc=gregkh@linuxfoundation.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@lists.linux.dev \
--cc=s.l-h@gmx.de \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
--cc=zhengyejian1@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox