archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 6.3 136/286] media: dvb-core: Fix use-after-free on race condition at dvb_frontend
       [not found]     ` <20230613110006.7c660162@mir>
@ 2023-06-13  9:27       ` Linux regression tracking (Thorsten Leemhuis)
  0 siblings, 0 replies; only message in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2023-06-13  9:27 UTC (permalink / raw)
  To: Stefan Lippers-Hollmann, Greg Kroah-Hartman
  Cc: stable, patches, Hyunwoo Kim, Mauro Carvalho Chehab, Sasha Levin,
	Linux kernel regressions list

On 13.06.23 11:00, Stefan Lippers-Hollmann wrote:
> On 2023-06-13, Stefan Lippers-Hollmann wrote:
>> On 2023-06-07, Greg Kroah-Hartman wrote:
>>> From: Hyunwoo Kim <>
>>> [ Upstream commit 6769a0b7ee0c3b31e1b22c3fadff2bfb642de23f ]
>>> If the device node of dvb_frontend is open() and the device is
>>> disconnected, many kinds of UAFs may occur when calling close()
>>> on the device node.
>>> The root cause of this is that wake_up() for dvbdev->wait_queue
>>> is implemented in the dvb_frontend_release() function, but
>>> wait_event() is not implemented in the dvb_frontend_stop() function.
>>> So, implement wait_event() function in dvb_frontend_stop() and
>>> add 'remove_mutex' which prevents race condition for 'fe->exit'.
>>> [mchehab: fix a couple of checkpatch warnings and some mistakes at the error handling logic]
>>> Link:
>> [...]
>> I'm noticing a regression relative to kernel v6.3.6 with this change
>> as part of kernel v6.3.7 on my ivy-bridge system running
>> Debian/unstable (amd64) with vdr 2.6.0-1.1[0] and two DVB cards
>> TeVii S480 V2.1 (DVB-S2, dw2102) and an Xbox One Digital TV Tuner
>> (DVB-T2, dvb_usb_dib0700). The systemd unit starting vdr just times
>> out and hangs forever, with vdr never coming up and also preventing
>> a clean system shutdown (hard reset required). Apart from the systemd
>> unit timing out, there don't really appear to be any further issues
>> logged.
> [...]
> I've now also tested v6.4-rc6-26-gfb054096aea0 and can reproduce
> this regression there as well, with the same fix of reverting this
> corresponding patch.

Earlier report about problem due to 6769a0b7ee0c:

Proposed revert:

Mauro, now that the patch made it into a stable tree, could you help
getting the revert quickly to Linus? Or shall we maybe ask him to pick
it up straight from the list?

Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat)
Everything you wanna know about Linux kernel regression tracking:
If I did something stupid, please tell me, as explained on that page.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-13  9:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
     [not found] ` <>
     [not found]   ` <20230613053314.70839926@mir>
     [not found]     ` <20230613110006.7c660162@mir>
2023-06-13  9:27       ` [PATCH 6.3 136/286] media: dvb-core: Fix use-after-free on race condition at dvb_frontend Linux regression tracking (Thorsten Leemhuis)

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).