From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.176 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== 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== 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 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 ; Sat, 28 Nov 2026 16:07:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9884B606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com 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 Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2f06ff94acfso41073125ad.0 for ; Sat, 28 Nov 2026 08:07:23 -0800 (PST) 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) 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 28 Nov 2026 08:07:21 -0800 Message-Id: Cc: , "Loic Poulain" , "Sergey Ryazanov" , "Johannes Berg" , "Andrew Lunn" , "David S. Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" Subject: Re: [PATCH net v3 2/2] net: wwan: iosm: re-bind the driver when the modem rebooted during S3 From: "David Westen" To: "Maciej S. Szmigiero" , "David Westen" X-Mailer: aerc 0.22.0-0-gc2f86b7abde3 References: <20261126194143.32283-1-davidlwesten@gmail.com> <20261126194143.32283-3-davidlwesten@gmail.com> <26f19a1f-8f60-4402-afc8-96fe46611998@maciej.szmigiero.name> In-Reply-To: <26f19a1f-8f60-4402-afc8-96fe46611998@maciej.szmigiero.name> 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