Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5987724rwd; Mon, 5 Jun 2023 11:12:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ZKel7CRuMtZK+UxxYkydbfILeuufBMs9/SyRQZNKS1jI4CNYlOz7k9FbZ0c1n6lESkVgj X-Received: by 2002:a17:90a:1994:b0:259:5c6:39bc with SMTP id 20-20020a17090a199400b0025905c639bcmr2723825pji.33.1685988767834; Mon, 05 Jun 2023 11:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685988767; cv=none; d=google.com; s=arc-20160816; b=eAwjBok9Io2WFtgOexQlMLXisOUXS+iEzmonNB5dMwuefHJcMpyPAi33vo6onJrStd WnHP+DAG3rsisY96HbQKhLjoqeW2J9hrLFaY0c6m5bGaTuBj/rpW26SHRmDMdrsXMVNM BF8fkn0APTP1g4fbmS8ABDj2SrHWnkLIvqNxP9RFuCqCCLSGm9Ly9qRglvhc2Ujcqcsw olAmvptyrnP1lvxm3LAjF2bPbqIeud5i+MfcDyDqqhBvsfDeicF4IFWDsWaIJAMmAW1y 8hJOwCBtoCXBUI47N83hqjFnhoF5tMXPU66iaRCBl3PtZoEh85vbCgrRQG7B3dznQd0P I1Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=rEXEBvRbntB3k4TRyAbkXgQT4n1lj6SFrRuv86+5/rg=; b=wYyWzlvb1iEnv1M4ghE2eyBDAyb/Pohj61wnztWEkU3fnSK017ksTK+qxc0KbfObkd QFfLVt6rkq/4Zg2k76yeTXj54gBndcXHRy+EWZmXs8avk45I4bwCVL9QWQLirzr/YPN9 +HDm6Y7MuFGydBPwO7dBb6YXhoGdOLnMGJK5eMHoBgoi6xl1kZm5uhbc+HTOiE8U7D3h fWcd0YvO/LO8+rJ7ryyxvS7eOFoRfIlQy8MU73AzgKKibgKkbQY0p6jzSBD2pViCT3SP BkoxXau8cQK+5uSk7Z18BJFlOW9VXZXFpwraaaA/4y5X64EUPHwhnbiAOqaq38F42Wlh 3Mrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KtxHaSMp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020a17090a740b00b00257a8dc0348si5916341pjg.75.2023.06.05.11.12.32; Mon, 05 Jun 2023 11:12:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KtxHaSMp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234960AbjFESBa (ORCPT + 99 others); Mon, 5 Jun 2023 14:01:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235024AbjFESBW (ORCPT ); Mon, 5 Jun 2023 14:01:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B167910EA; Mon, 5 Jun 2023 11:00:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 83077628E4; Mon, 5 Jun 2023 18:00:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96BDEC433D2; Mon, 5 Jun 2023 18:00:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685988053; bh=QzKDnromzr6o+llFm1S5csDJlNa3xNImFeFTlYoWklo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KtxHaSMp2YWFbafHhlGHF6pUV1Teos2yRuiFqv24KtoTfse5mHSTqXapqsataBVNB rs71h69BOcTVNBToYl/GzbVc+CPg/Bg3dQ8vKAQZ/j5i9LEjTnYv3a6ruotKUezESl 2jnGYAdBMM/6fCOI2nrqp+BTog8im4jQ3ycbXo7PFxLIj2qXFeGRa4M/L7cl0TGZ14 f9BoeHIxyqZ6D028ddeP1BQl24X4KjPy9mbHVf9p8tW3kK/WD0TNjSN9+UOxKaatdX 0xDs64jeFi+FJjzCZbZADUjVfX3P9r5jWZxukaHSobod+ZRNjHxQHFL+/TfgcU9iEw obnEhASd/LxFw== Date: Mon, 5 Jun 2023 19:00:46 +0100 From: Mauro Carvalho Chehab To: Thorsten Leemhuis Cc: Linux regressions mailing list , Hyunwoo Kim , Linux Media Mailing List , Thomas Voegtle , linux-kernel@vger.kernel.org Subject: Re: Sometimes DVB broken with commit 6769a0b7ee0c3b Message-ID: <20230605190046.63c98b3e@sal.lan> In-Reply-To: <88d8a7c3-0018-cc9a-13aa-e3262e20e4aa@leemhuis.info> References: <439d143b-1de7-6365-cf64-f1b44fd6d1cf@leemhuis.info> <20230605113727.69e7f309@sal.lan> <88d8a7c3-0018-cc9a-13aa-e3262e20e4aa@leemhuis.info> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 5 Jun 2023 12:44:43 +0200 Thorsten Leemhuis escreveu: > On 05.06.23 12:37, Mauro Carvalho Chehab wrote: > > Em Mon, 5 Jun 2023 11:38:49 +0200 > > "Linux regression tracking (Thorsten Leemhuis)" escreveu: > > =20 > >> Hi, Thorsten here, the Linux kernel's regression tracker. > >> > >> On 30.05.23 13:12, Thomas Voegtle wrote: =20 > >>> > >>> I have the problem that sometimes my DVB card does not initialize > >>> properly booting Linux 6.4-rc4. > >>> This is not always, maybe in 3 out of 4 attempts. > >>> When this happens somehow you don't see anything special in dmesg, but > >>> the card just doesn't work. > >>> > >>> Reverting this helps: > >>> commit 6769a0b7ee0c3b31e1b22c3fadff2bfb642de23f > >>> Author: Hyunwoo Kim > >>> Date:=C2=A0=C2=A0 Thu Nov 17 04:59:22 2022 +0000 > >>> > >>> =C2=A0=C2=A0=C2=A0 media: dvb-core: Fix use-after-free on race condit= ion at dvb_frontend > >>> > >>> > >>> I have: > >>> 03:00.0 Multimedia video controller [0400]: Conexant Systems, Inc. > >>> CX23887/8 > >>> PCIe Broadcast Audio and Video Decoder with 3D Comb [14f1:8880] (rev = 04) > >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Subsystem: Hauppauge compu= ter works Inc. Device [0070:c138] > >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Kernel driver in use: cx23= 885 =20 > >> > >> Hmmm, that was posted last Tuesday and received not a single reply. :-/ > >> > >> Hyunwoo Kim: could you please look at it, as it's a regression caused = by > >> a commit of yours (one that would be good to solve before 6.4 is > >> finalized!)? And in case you are unable to do so let us know? > >> > >> But FWIW: > >> > >> Mauro: I wonder if this is something you or someone else has to look > >> into, as Hyunwoo Kim posted a few times per months to Linux lists, but > >> according to a quick search on lore hasn't posted anything since ~two > >> months now. :-/ =20 > >=20 > > Yeah, I was slow applying this one, as I was afraid of it to cause > > troubles. The DVB frontend state machine is complex, and uses a > > semaphore to update its state. There was some past attempts of > > addressing some lifetime issues there that we ended needing to revert > > or not being applied, as the fix caused more harm than good. > > [...] =20 >=20 > Thx for the update. That's unfortunate, but how it is sometimes. Which > leads to a follow-up question: is reverting the culprit temporarily an > option? Or did those old use-after-free problems became known to be a > problem we can't live with anymore for another few months? Reverting the patch seems to be the way to proceed. Then, work on another way to address UAF.=20 I'm not aware of dvb users complaining about troubles due to UAF, although= =20 it seems that there's now a CVE for it. So, maybe someone complained against a distro Kernel, which caused the CVE to be opened. So, while it is nice to have the lifetime issues fixed, last time I checked, the USB dvb-usb/dvb-usb-v2 have some logic that usually prevents it to caus= e=20 real issues during device removal, and unbinding DVB PCIe devices is=20 something that users don't do in practice. Regards, Mauro