Article View: linux.kernel.netdev
Article #12015Re: [PATCH net v6 2/4] net: wwan: t7xx: do not exit the TX push kthread on resume failure
From: Andreas Haerter
Date: Fri, 06 Nov 2026 05:45
Date: Fri, 06 Nov 2026 05:45
55 lines
9948 bytes
9948 bytes
On Fri, Oct 02, 2026 at 09:46:36AM +0800, Tim JH Chen wrote: > A later > t7xx_dpmaif_tx_thread_rel() then calls kthread_stop() on the stale > pointer [...] I hit this in normal use on a ThinkPad X13 Gen 6 with a Rolling RW350R-GL (14c3:4d75, subsystem 2099:3552), on Fedora's 7.2.4 and 7.2.5. A runtime suspend failed with "[PM] SAP suspend error: -110". After that, every MBIM write failed with -22 and the modem stayed dead. Writing to the PCI remove attribute then gave a WARNING at kernel/kthread.c:84 and, on a later occurrence, this oops: BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor write access in kernel mode RIP: 0010:kthread_stop+0x44/0x180 Call Trace: t7xx_dpmaif_hif_exit+0x46/0xa0 [mtk_t7xx] t7xx_md_exit+0x5c/0xa0 [mtk_t7xx] t7xx_pci_remove+0x41/0xc0 [mtk_t7xx] pci_device_remove+0x4a/0xb0 device_release_driver_internal+0x19e/0x200 pci_stop_bus_device+0x80/0xa0 pci_stop_and_remove_bus_device_locked+0x1a/0x30 remove_store+0x83/0xa0 The faulting instruction is the set_bit of KTHREAD_SHOULD_STOP with worker_private NULL, so the pointer no longer referred to a kthread. The writing process stayed in D state holding pci_rescan_remove_lock. Shutdown then hung and the machine needed a forced power-off, which may be worth a line in the changelog. One question on the retry. In my case the failure is permanent: runtime_error is latched, so rpm_resume() returns -EINVAL from then on. With this patch the crash goes away, but TX stays dead and the thread retries every 20 ms for as long as the TX lists are non-empty. Is that the intended end state, or should something report the dead data path? I have no reproducer, so I cannot offer a Tested-by. Thanks, Andreas -- foundata GmbH Steinhäuserstr. 20 76135 Karlsruhe Web: https://foundata.com Sitz der Gesellschaft: Karlsruhe Registergericht: Amtsgericht Mannheim, HRB 714807 Geschäftsführung: Andreas Haerter USt-IdNr.: DE284122682
Technical Details
Message-ID:
<20261106054532.201311-1-ah@foundata.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357761-linux-kernel-netdev=dewy.ruReferences:
<20261002014638.47981-3-tim770802@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357761-linux-kernel-netdev=dewy.ru From: ah@foundata.com (Andreas Haerter) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v6 2/4] net: wwan: t7xx: do not exit the TX push kthread on resume failure Date: Fri, 6 Nov 2026 06:45:30 +0100 Organization: Usenet Network Message-ID: <20261106054532.201311-1-ah@foundata.com> References: <20261002014638.47981-3-tim770802@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="3803465"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:kTjJ5ezsAUyJFN0ZMhhFQMilkmI= sha256:TUVLNSflIWl2A5yAFIKzQXPX0nnyQCgFKK0zJwOYMV4= sha1:tEj3r4dlsGd5bBfoMgtLMZ4/Zkw= sha256:OQBpY49hh8yEqzk26nsNzNBYdSsX7QUDacgGKM9MHdY= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id A822C11316C; Fri, 6 Nov 2026 08:50:52 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.951 X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GtvJ9A4RIFDM; Fri, 6 Nov 2026 08:50:44 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-357761-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=foundata.com X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id CBC1011315B; Fri, 6 Nov 2026 08:50:39 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 006EF2C611; Fri, 6 Nov 2026 05:45:52 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793943949; b=bOeiX2oVTN7O902JjNSf7b1Ek8EDT0WJclVIvKyVOGu2TtvN0h+ZuYIC/EIAlmzxR94a 4voTpeKfUMGTA+Wta/7isLlNFDlhGDQyfmE/0/apDLmzf5VbHCtJJI86Nkj8tOzZqptY0 wLblEtznwWJMmWYE7ePdZz2OCLixkN82LeWb6i2N8wNPYnHt5hoQsw4G0sQDeh+mr7i8f tCcy+iecJn/Sop9sN+XBx87tiHzeaUrhclnXf3f1XZzKBCNNzSJ9LF6k4kzXzvVsUCLpm 3trdVtfSIq/f9K34KxE6k67bGy3eP2jjSzbJqolQmIRIkKNhCgR1a+z3OcwJHQl60/w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793943949; h=X-Original-To:Received:DMARC-Filter:Received:Received:Received: Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=Da1SaMO0CRhyo8NUsuKEWZa9VmLrT53aVWII3on28cs=; b=zr0uyklB0+rvfSBFSE5vFMJrBpkoiaoyDFHGd3va90ifgOIvf/Z1pbmBdIkCBhyk4MCn xIR8fdHyZGLSM8b/SJ4b+70vhzLbGapkhkdV8onbrw0XwTnnViZRhAPwfoN3jkbaSOIn4 MSMgUlQg2Sn3YDyZ+NIZKHRWM9fiZfIt8Jy338k6iaR8D3eEUIKVBS4TR8lXy9s3m5XY6 w7OUlRSO7+M2U9weUjzu1v3j8unCl0tYXWdsqke4WfLfbmz4cH4PASo3CF8kJ2BV2dSRY I4ewf8hKnyhcQYyFEbh1GhxJz8zYPbk31U8JnXg9en6ug4ZCFPvwZYPM1xU6vm2Hxig== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=foundata.com; spf=pass smtp.mailfrom=foundata.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFB79606A33C; Fri, 6 Nov 2026 05:45:49 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.190.148.227 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793943949; b=RvAwkDs5F4+iwu0pZdcr7lbQVoDIM345LPWlaUIp/nojnVmKkKMNd8y9nrM0xa0mT7dt UgXBY+ac8mbOyWa5braRuMsvFwLA0fGlSu4aBfMpfoVbdzIg3i+flyrnCzqRh8lbLduGj AZ1I3BsORFrd9JcKCjh61+oHUR3SkoAkDBo0p9brNv8D23PI3+aeUZWBxfg0COYIfNMJP PPwm/IAMjg4znUZOER888YiANV20VYxfxV3Nxzt629AS6pG5nUXHUr9A7qc717yu/jVKd agFqQ6pERo3caE0SzSibujh/sQYs1TZnKrT+dwepZGr51raV7SVFOTb++Kt+LCRlgvA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793943949; h=DMARC-Filter:Received:Received:Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=Da1SaMO0CRhyo8NUsuKEWZa9VmLrT53aVWII3on28cs=; b=eBWocAn/3VqVBHCzVxacq+VOyqGJ6AvemL1UxfppjYvzgDJUlKe22aDwa22Cb0nN4WQH 2ENcxbd2YhgQwQboJtGdWOb+Zmxe6gIZ6Vo8NOWpbBmP31B5JOAiU4FWF+xjuK23BIbpw mx3da3MUq4/bRUCcetrcgRJV9OMA7m/8vq58sC7xywpr2bP9v+14Rynr29oLrZDRnxdRS 7fttoIXCxSZI/Xq3dVveGKTronIU0wUpTUBEdLuJTv+A2Hau8cZ9ua0lZnVhrziiX5i/w voMaxMcw55lS9dn+ZWJ767QJH50VVvPbak9UXvK743KTFExWX1mUUVHFUgO+IWLagJw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=foundata.com; spf=pass smtp.mailfrom=foundata.com; arc=none smtp.remote-ip=195.190.148.227 X-Received: from hera.efm.de (hera.efm.de [195.190.148.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7821606A334; Fri, 6 Nov 2026 05:45:47 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C7821606A334 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=foundata.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foundata.com X-Received: from hera.efm.de (localhost [IPv6:::1]) by hera.efm.de (Postfix) with ESMTPS id 82E4240C3D59A; Fri, 6 Nov 2026 06:45:39 +0100 (CET) X-Received: from localhost (localhost [IPv6:::1]) by hera.efm.de (Postfix) with ESMTP id 67905414F1D5B; Fri, 6 Nov 2026 06:45:39 +0100 (CET) X-Received: from hera.efm.de ([IPv6:::1]) by localhost (hera.efm.de [IPv6:::1]) (amavis, port 10026) with ESMTP id I9DkL1TP4yKV; Fri, 6 Nov 2026 06:45:39 +0100 (CET) X-Received: from tpx13-pf5nr32.fritz.box (ip-037-209-109-094.um11.pools.vodafone-ip.de [37.209.109.94]) (Authenticated sender: ah@foundata.com) by hera.efm.de (Postfix) with ESMTPSA id CC99C40C3D59A; Fri, 6 Nov 2026 06:45:38 +0100 (CET) X-Cc: Chih.Hung.Huang@wnc.com.tw, andrew+netdev@lunn.ch, chandrashekar.devegowda@intel.com, davem@davemloft.net, edumazet@google.com, haijun.liu@mediatek.com, horms@kernel.org, ilpo.jarvinen@linux.intel.com, johannes@sipsolutions.net, kuba@kernel.org, linux-kernel@vger.kernel.org, loic.poulain@oss.qualcomm.com, netdev@vger.kernel.org, pabeni@redhat.com, ricardo.martinez@linux.intel.com, ryazanov.s.a@gmail.com, tim.jh.chen@wnc.com.tw X-Mailer: git-send-email 2.56.0 X-In-Reply-To: <20261002014638.47981-3-tim770802@gmail.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list