* [Bug 217613] New: [BUG] [media] dvb-usb: possible data-inconsistency due to data races in dib0700_rc_query_old_firmware()
@ 2023-06-30 1:35 bugzilla-daemon
2023-06-30 1:48 ` [Bug 217613] " bugzilla-daemon
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bugzilla-daemon @ 2023-06-30 1:35 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=217613
Bug ID: 217613
Summary: [BUG] [media] dvb-usb: possible data-inconsistency due
to data races in dib0700_rc_query_old_firmware()
Product: Drivers
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: USB
Assignee: drivers_usb@kernel-bugs.kernel.org
Reporter: islituo@gmail.com
Regression: No
Our static analysis tool finds some possible data races in the
DVB USB driver in Linux 6.4.0.
The variable d->priv->buf is often accessed with holding the
lock d->usb_mutex, here is an example:
dib0700_change_protocol() --> Line 638 in dib0700_core.c
st = d->priv; --> Line 641 in dib0700_core.c (Alias)
mutex_lock_interruptible(&d->usb_mutex)
--> Line 644 in dib0700_core.c (Lock d->usb_mutex)
st->buf[0] = REQUEST_SET_RC;
--> Line 649 in dib0700_core.c (Access d->priv->buf)
However, in the function dib0700_rc_query_old_firmware(), the
variable d->priv->buf is accessed without holding the lock
d->usb_mutex:
dib0700_rc_query_old_firmware() --> Line 516 in dib0700_devices.c
st = d->priv; --> Line 522 in dib0700_devices.c (Alias)
st->buf[0] = REQUEST_POLL_RC;
--> Line 532 in dib0700_devices.c (Access st->buf)
And thus harmful data races can occur because they can make
data in st-buf inconsistent.
I am not quite sure whether these possible data races are real and
how to fix them if they are real.
Any feedback would be appreciated, thanks!
Reported-by: BassCheck <bass@buaa.edu.cn>
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 217613] [BUG] [media] dvb-usb: possible data-inconsistency due to data races in dib0700_rc_query_old_firmware()
2023-06-30 1:35 [Bug 217613] New: [BUG] [media] dvb-usb: possible data-inconsistency due to data races in dib0700_rc_query_old_firmware() bugzilla-daemon
@ 2023-06-30 1:48 ` bugzilla-daemon
2023-06-30 5:22 ` [Bug 217613] New: " Greg KH
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2023-06-30 1:48 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=217613
Tuo Li (islituo@gmail.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Tuo Li (islituo@gmail.com) ---
*** This bug has been marked as a duplicate of bug 217614 ***
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bug 217613] New: [BUG] [media] dvb-usb: possible data-inconsistency due to data races in dib0700_rc_query_old_firmware()
2023-06-30 1:35 [Bug 217613] New: [BUG] [media] dvb-usb: possible data-inconsistency due to data races in dib0700_rc_query_old_firmware() bugzilla-daemon
2023-06-30 1:48 ` [Bug 217613] " bugzilla-daemon
@ 2023-06-30 5:22 ` Greg KH
2023-06-30 5:22 ` [Bug 217613] " bugzilla-daemon
2023-06-30 8:11 ` bugzilla-daemon
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2023-06-30 5:22 UTC (permalink / raw)
To: bugzilla-daemon; +Cc: linux-usb
On Fri, Jun 30, 2023 at 01:35:28AM +0000, bugzilla-daemon@kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=217613
>
> Bug ID: 217613
> Summary: [BUG] [media] dvb-usb: possible data-inconsistency due
> to data races in dib0700_rc_query_old_firmware()
> Product: Drivers
> Version: 2.5
> Hardware: All
> OS: Linux
> Status: NEW
> Severity: normal
> Priority: P3
> Component: USB
> Assignee: drivers_usb@kernel-bugs.kernel.org
> Reporter: islituo@gmail.com
> Regression: No
>
> Our static analysis tool finds some possible data races in the
> DVB USB driver in Linux 6.4.0.
Please report this to the mailing lists for these drivers, not in
bugzilla.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 217613] [BUG] [media] dvb-usb: possible data-inconsistency due to data races in dib0700_rc_query_old_firmware()
2023-06-30 1:35 [Bug 217613] New: [BUG] [media] dvb-usb: possible data-inconsistency due to data races in dib0700_rc_query_old_firmware() bugzilla-daemon
2023-06-30 1:48 ` [Bug 217613] " bugzilla-daemon
2023-06-30 5:22 ` [Bug 217613] New: " Greg KH
@ 2023-06-30 5:22 ` bugzilla-daemon
2023-06-30 8:11 ` bugzilla-daemon
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2023-06-30 5:22 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=217613
--- Comment #2 from Greg Kroah-Hartman (greg@kroah.com) ---
On Fri, Jun 30, 2023 at 01:35:28AM +0000, bugzilla-daemon@kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=217613
>
> Bug ID: 217613
> Summary: [BUG] [media] dvb-usb: possible data-inconsistency due
> to data races in dib0700_rc_query_old_firmware()
> Product: Drivers
> Version: 2.5
> Hardware: All
> OS: Linux
> Status: NEW
> Severity: normal
> Priority: P3
> Component: USB
> Assignee: drivers_usb@kernel-bugs.kernel.org
> Reporter: islituo@gmail.com
> Regression: No
>
> Our static analysis tool finds some possible data races in the
> DVB USB driver in Linux 6.4.0.
Please report this to the mailing lists for these drivers, not in
bugzilla.
thanks,
greg k-h
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 217613] [BUG] [media] dvb-usb: possible data-inconsistency due to data races in dib0700_rc_query_old_firmware()
2023-06-30 1:35 [Bug 217613] New: [BUG] [media] dvb-usb: possible data-inconsistency due to data races in dib0700_rc_query_old_firmware() bugzilla-daemon
` (2 preceding siblings ...)
2023-06-30 5:22 ` [Bug 217613] " bugzilla-daemon
@ 2023-06-30 8:11 ` bugzilla-daemon
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2023-06-30 8:11 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=217613
--- Comment #3 from Tuo Li (islituo@gmail.com) ---
(In reply to Greg Kroah-Hartman from comment #2)
> On Fri, Jun 30, 2023 at 01:35:28AM +0000, bugzilla-daemon@kernel.org wrote:
> > https://bugzilla.kernel.org/show_bug.cgi?id=217613
> >
> > Bug ID: 217613
> > Summary: [BUG] [media] dvb-usb: possible data-inconsistency due
> > to data races in dib0700_rc_query_old_firmware()
> > Product: Drivers
> > Version: 2.5
> > Hardware: All
> > OS: Linux
> > Status: NEW
> > Severity: normal
> > Priority: P3
> > Component: USB
> > Assignee: drivers_usb@kernel-bugs.kernel.org
> > Reporter: islituo@gmail.com
> > Regression: No
> >
> > Our static analysis tool finds some possible data races in the
> > DVB USB driver in Linux 6.4.0.
>
> Please report this to the mailing lists for these drivers, not in
> bugzilla.
>
> thanks,
>
> greg k-h
Thanks for your reply! I am really sorry to bother you. I have
reported this to the mailing lists for these drivers, but have
not received any reply.I have resent a report to the mailing lists
just now, and any feedback would be appreciated.
Thanks,
Tuo Li
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-30 8:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-30 1:35 [Bug 217613] New: [BUG] [media] dvb-usb: possible data-inconsistency due to data races in dib0700_rc_query_old_firmware() bugzilla-daemon
2023-06-30 1:48 ` [Bug 217613] " bugzilla-daemon
2023-06-30 5:22 ` [Bug 217613] New: " Greg KH
2023-06-30 5:22 ` [Bug 217613] " bugzilla-daemon
2023-06-30 8:11 ` bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).