Article View: linux.kernel.netdev
Article #23937Re: [PATCH net v3 2/2] net: wwan: iosm: re-bind the driver when the modem rebooted during S3
From: "David Westen"
Date: Sat, 28 Nov 2026 16:07
Date: Sat, 28 Nov 2026 16:07
34 lines
12701 bytes
12701 bytes
On 28.11.2026 16:04, Maciej S. Szmigiero wrote: > I think for the issue at hand (S3 suspend/resume) currently the cleanest > and less intrusive solution is to unbind/rebind the driver as the > hibernation path already does. Thanks, that helps. Just to make sure I read it right: do you mean unbinding before S3, as v2 did and as hibernation does, or v3's re-bind after resume once the modem is detected as rebooted? I'd prefer the latter. Unbinding before S3 runs the cleanup against a modem that is still running, so every suspend with traffic hits the cleanup bugs we discussed: with a strict IOMMU that's DMA faults, and without one the modem writes into freed memory. Hibernation has the same exposure, but it runs far less often than S3. After resume, the modem has lost power and holds none of the driver's memory, so the cleanup can't hit those bugs. v4 would drop the checks from v3 and keep only the detection on resume and the re-bind after it, plus one check that stops doorbells to the rebooted modem until the re-bind. In my testing without it, a doorbell from the old driver instance crashed the rebooted modem into CD_READY again. > However, these fixes should go in separate patches from the S3 fix, > maybe even into separate patch series. Agreed, the teardown fixes will be a separate series. Patch 1 is the one exception: the re-bind hits that use-after-free on every S3 with wwan0 up, so I'd keep it first in this series. If you'd rather have it sent on its own, I can do that. Thanks, David
Technical Details
Message-ID:
<DN6Z1WC3K6J5.28NE37T8TYXAZ@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373209-linux-kernel-netdev=dewy.ruReferences:
<20261126194143.32283-1-davidlwesten@gmail.com> <20261126194143.32283-3-davidlwesten@gmail.com> <fd2a9a0a-106e-467b-acd0-7045410305e3@maciej.szmigiero.name> <DN659J3QCZRL.2PU3PICXJW6K9@gmail.com> <26f19a1f-8f60-4402-afc8-96fe46611998@maciej.szmigiero.name>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373209-linux-kernel-netdev=dewy.ru
From: davidlwesten@gmail.com ("David Westen")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v3 2/2] net: wwan: iosm: re-bind the driver when the
modem rebooted during S3
Date: Sat, 28 Nov 2026 08:07:21 -0800
Organization: Usenet Network
Message-ID: <DN6Z1WC3K6J5.28NE37T8TYXAZ@gmail.com>
References: <20261126194143.32283-1-davidlwesten@gmail.com>
<20261126194143.32283-3-davidlwesten@gmail.com>
<fd2a9a0a-106e-467b-acd0-7045410305e3@maciej.szmigiero.name>
<DN659J3QCZRL.2PU3PICXJW6K9@gmail.com>
<26f19a1f-8f60-4402-afc8-96fe46611998@maciej.szmigiero.name>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="983370"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:iAOvJm1k09okdGdf//tNTNAuHMU= sha256:fO8ETMWiSY98F2wcJVsio1zG7W6NK7I0a3aGH1v5Us8=
sha1:Ofepg2Ny0jJPJ5rj/Kaa203yCHw= sha256:JMfShgHaiEz7J4ISvGrsFeSDrDaCEO1PsdLOWmWhLs0=
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 702C2125F84; Sat, 28 Nov 2026 19:07:39 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: 0.509
X-Spam-Status: No, score=0.509 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_SBL_CSS=3.558,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
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 h9FtZauR4cHR;
Sat, 28 Nov 2026 19:07:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-373209-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 40750125F76; Sat, 28 Nov 2026 19:07:28 +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 EBDF928C0D; Sat, 28 Nov 2026 16:07:26 +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=1795882044;
b=vXCJX7qwq4EzwaBrlihVu5OCbP0/5ZDdXEgtijEuV569xy2q54/4GYVa7X6EaljgyQAG
VZM26mPHuBSYrNqkN2dZZ9fE4jdsZ1Zjy+TEaLis/jjnQBeRHXcje4HnaN1mblmyfhxcD
TsqmLzC8QlsDBj+IvZgsimw/ZeVzQGyZtAP3O6D+HxYblmUg8JWwVXxkAcLt5t3uk2i+f
4QCPEcZdL9Speaw+5ikSXs1L/gctP93UT+jrrWjY78UYiB36Yp7jQyu9DncWUjvwvgeEi
YuXHza2GqQJv2u7cNLAzaV4e9pGJFuW+6DugRsS/0GplsOnWGDHle9pWb3+vUFGIeAQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795882044;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:Mime-Version:
Content-Transfer-Encoding:Content-Type:Date:Message-Id:Cc:Subject:
From:To:X-Mailer:References:In-Reply-To;
bh=lU/iv11MRAECrNUTSotrSttWXx9/n5yCmum2z6D1AGI=;
b=KuU3PM0MhqFETZzfZcQuK+r1o5/Ode+Pri7W5PiH+Hf1bA3kuEtoRbdgxXAIQuZ0YTRU
TpSoMJXUnfUqMq3PzmJgmW+e1xl4rIzZlHhjpOK20rZRqlE02LqOKpp3jVTcLsYu6/cBN
HKchzA/SfuioCP8OiQ/K4HaKDIrAOr8kmBAnInqscKXWpKCEFUNZpESj+FVleQ6XnJpdC
pSCKLCw0V2SfVUf2Hv4Kr53xMUIwBnizypedMfCEgEINpH7LY+mABWSw/A+eeIcrEFTpx
8f1ZVQ+Yuc8iQMp2DnEXXSkM5duMN65isqq7fyQCVKtQVEl1lSrzQFUQ4hK8B0+pNiA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0M4hPLo6;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.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 C9CFD606A327;
Sat, 28 Nov 2026 16:07:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0M4hPLo6
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.176
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795882044;
b=COATZfaM9NznB9031JpkogUHjrS+J9vU1zKUK+i4+8B7pmBg6kvwfvSrfhL1HiwCPjFZ
8quQuR8wXeblse1m9xZniAxncUqvF8Fpj/l3f+7zji3VnxOa1THFCj7t9vO0EfrkTROBD
+WD1VxF59kdy9skY8acDcHOoiuYy2jXQN32UQ7mvw9o0bSuDv4EcZ5qd9DdOZxR8jniXd
PGAyt6YPNoCCRKB0tYCzKFmaGVkms1s88uvFCenblw4jNM2QJdBEB/QZT5i42Ksf39rht
kNETyGCKqVRGWIGCVzv11o/4eSEFCGqKkZNcSA60vhVKu1f1zDb1W5UHnoHhLNdMuIw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795882044;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Mime-Version:
Content-Transfer-Encoding:Content-Type:Date:Message-Id:Cc:Subject:
From:To:X-Mailer:References:In-Reply-To;
bh=lU/iv11MRAECrNUTSotrSttWXx9/n5yCmum2z6D1AGI=;
b=efYAC2OyEgEaVtM2xGMJWWT9aEN0L+KpXJ6szdebcTg2bg4gV3ipTiyTNEW5O85IRO28
id1+fKKv3wJBju/tuWy8lpaqvmtDDM9vp0DZxJ8Ld86X3Hb2OT7J19QDeV0RQtducWIse
Ende64t8qJaZ8INF0a1bkQ2lr6Nj0MVDWsrSNfA8bggmDkETJy+i0owrTHqHRRqnC4QJS
cKQ0CWW3zwcIaoG8/DZmV3q2h2hXb/t67C6jF2fj/G6QaHmaVksDZqQ5phAhcib86Kpp6
6vhSnBwjYOY8O38VCkcH7zBBuJkoQNywo/7SmeeZypvLA573IJoNHcz8Ip5hoWyPk3A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0M4hPLo6;
arc=none smtp.remote-ip=209.85.214.176
X-Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9884B606A31C
for <netdev@vger.kernel.org>; Sat, 28 Nov 2026 16:07:23 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9884B606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2f06ff94acfso41073125ad.0
for <netdev@vger.kernel.org>; Sat, 28 Nov 2026 08:07:23 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795882043; x=1796486843; darn=vger.kernel.org;
h=in-reply-to:references:to:from:subject:cc:message-id:date
:content-type:content-transfer-encoding:mime-version:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=lU/iv11MRAECrNUTSotrSttWXx9/n5yCmum2z6D1AGI=;
b=0M4hPLo6jYN5zZMwPOKEP+eBhJkYCJKp5qrphd3iNQ22rk+w3K+qekuABzVjfWDFYr
sDjU4RaCkzTtQ6fVT3M25hTBlvY+jXap4FpgfR00BCTcvqRSIDs7Np5sLouHYuW5yMH6
7e5baLw/0RqvDCEQNgeBJRU0prHfL56RhStojzsJT8AZa8p8w4QfxjQXN60d0vV0B5mS
PRgth03/2R7O9nE7cauWl/6O8UDJ0+JPr2r9QKNW02JC+TK+HnqeFvHkELGgiuMY2AHO
TS0HVxl71LW4FnqlpmeUg1C6NQXv1Z2xVn62gX3NJc614N4Xm06VJvE59fPA5d322NBY
HLUA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795882043; x=1796486843;
h=in-reply-to:references:to:from:subject:cc:message-id:date
:content-type:content-transfer-encoding:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=lU/iv11MRAECrNUTSotrSttWXx9/n5yCmum2z6D1AGI=;
b=tTZ1/99Z9rDyENX/hw5EzfLAF7QJ5cRbSCsTaiAuGJNP669iIrXVrQ8904SWIiTsnK
SWnSB0uQKAzi3XWRDXJbnKYLB0Y0R5j1Y/u9VRoBWflmQ9fOjuIQyAe5rynQo4PeaLWk
XCI9SYqpL69DmG1Mm4FlI5iB6rIN/zWISS9ZaDPvPDP8fmpWmxpC51z2NSi/rXLXEkSc
xrVoBqd0XlnSyy0GX2EZI8sVHSjmdBZMVhmSR1+2HMbVRXDecKsu6Fe69fXr/4bvzYvJ
Jd1caS+gb8Zcn2Lz7TWNEh2bXVXikDNsX8t0N9XGTASMfTPJ05TRSAcd21O8+Loh314h
feug==
X-Gm-Message-State: APuU4Z/zpHyd7x59makLWcS0wzXklE4ouQDvG7mX8u/GdQ+27bLbop7W
Y9CKH0792b1vIE7SvWuntTzh/1/ZeNS4UP95u3DOLqo8EbEfOYAfBpb5
X-Gm-Gg: AZFdTZecpz8LSnoqV+LoSNyjWDhBwHJUfrG+ButzXd0K3W8ty80pmh/mVUmZMMvXZL7
I2TTjz3/Si/valjxMh15OzvDEMk5CAbQN+XRpBqNMxOV9q5OI49bWYPbujm+NffWBrLKyV44r4f
pvWtzeye/jmyt4Wwn3oH+LhIhGINNCEt8wrA7VUTCUmrYmFUuUTS08wDr2rLklb1sNf2k9+hZLF
SP4vWWolo7+3FbekW9NB71o8YlwJ3Ozdqwox+WaB2aqsOOhLLfHm0fhfb1vXmQBZwLLN6QLh+w/
8/jG4ezZxwH5TTA3FXxCNQ3leG+K2rHXYalz+W5cMEbOrRUAf/klIfL12qWilcL42BetJ0udRwY
+imBLXUMhzyFuSI7uaKYP/iPo8MNYllVHoscGCZ3hNxCq9mV15ClG5qRCQzF1XzTPASE2I0oHL4
+hp/iX6HhNoqvZPiZBKSY1QceU2kJmpARLY5Prn9gGppOHxm78sl2lfJeGTGY3hK3tO0nGhexGz
qubMJwHK/qiYgPSSIJWrjwX4VfL0x9K/79DF0dUFuP46c81mAhkXUfb1hsFVYySFOvJCsRZfb7P
N0xOM2Cv/UwWMogqr31y4oRgSElFtV3/cg==
X-Received: by 2002:a17:90b:1801:b0:3b0:9984:18c9 with SMTP id 98e67ed59e1d1-3b41c8e16efmr26857030a91.11.1795882042876;
Sat, 28 Nov 2026 08:07:22 -0800 (PST)
X-Received: from localhost ([172.56.108.68])
by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b44b217a5bsm20957755a91.0.2026.11.28.08.07.21
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Sat, 28 Nov 2026 08:07:22 -0800 (PST)
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
X-Cc: <netdev@vger.kernel.org>, "Loic Poulain"
<loic.poulain@oss.qualcomm.com>, "Sergey Ryazanov"
<ryazanov.s.a@gmail.com>, "Johannes Berg" <johannes@sipsolutions.net>,
"Andrew Lunn" <andrew+netdev@lunn.ch>, "David S. Miller"
<davem@davemloft.net>, "Eric Dumazet" <edumazet@kernel.org>, "Jakub
Kicinski" <kuba@kernel.org>, "Paolo Abeni" <pabeni@redhat.com>
X-Mailer: aerc 0.22.0-0-gc2f86b7abde3
X-In-Reply-To: <26f19a1f-8f60-4402-afc8-96fe46611998@maciej.szmigiero.name>