From: David Westen <davidlwesten@gmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.kernel.org, loic.poulain@oss.qualcomm.com,
ryazanov.s.a@gmail.com, johannes@sipsolutions.net,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com,
m.chetan.kumar@linux.intel.com, linux-kernel@vger.kernel.org,
mail@maciej.szmigiero.name, nihaal@cse.iitm.ac.in,
stable@vger.kernel.org
Subject: Re: [PATCH net v2 2/2] net: wwan: iosm: fix S3 resume by re-binding the driver around it
Date: Mon, 23 Nov 2026 16:44:26 -0800 [thread overview]
Message-ID: <e4a05b89-f9ca-4082-a203-07f6a00f8913@gmail.com> (raw)
In-Reply-To: <179541107082.3135.11504382259893948340@kernel.org>
On 11/22/26 9:17 PM, netdev-bot+sashiko@kernel.org wrote:
> [Severity: Low]
> Will this apply to the stable trees that this Fixes: tag selects?
>
> Commit 0b6f6593aa8c ("net: wwan: iosm: Fix hibernation by re-binding the
> driver around it") added pm_notify(), pm_notifier and pci_registered. That
> commit has no Fixes: or Cc: stable tag. A tree that has 1f52d7b62285 but
> not 0b6f6593aa8c has no pm_notify() at all.
>
> Could the prerequisite be named, for example with
> "Cc: stable@vger.kernel.org # depends on 0b6f6593aa8c"?
Yes, v3 will name it in the stable tag.
> [Severity: High]
> Can this expose a use-after-free of ipc_imem->ipc_task on every S3
> suspend?
>
> [...]
>
> The unbind and hibernation paths already use this ordering. This patch
> puts it on the S3 path while the modem is running and has just been told
> to go to UNINIT. Could the MSIs be quiesced or freed before
> ipc_imem_cleanup() tears down the tasklet?
Yes. v3 will free the MSIs before ipc_imem_cleanup() tears down the
tasklet. The teardown doesn't need them: ipc_imem_handle_irq() already
ignores MSIs once the phase is IPC_P_OFF_REQ.
> [Severity: Medium]
> Does the modem now enter system sleep in D0 with its firmware still
> running? This applies when the card keeps power in S3, or when freeze or
> standby is entered while mem_sleep is deep.
>
> [...]
>
> Could this raise sleep power, or keep the platform out of S0ix during an
> explicit s2idle? The changelog lists lost data sessions for these cases,
> but it doesn't mention this.
Yes. With the driver unbound, the modem gets no sleep request and the
PCI core leaves it in D0. That's the cost of re-binding the driver
around the suspend. v3 will mention it in the changelog.
> [Severity: Low]
> Can this register the driver again in the middle of a uswsusp
> hibernation?
>
> [...]
>
> The hibernation image would then be created with iosm bound. The later
> PM_POST_HIBERNATION from snapshot_release() does nothing, so the unbind
> added by 0b6f6593aa8c is lost. Before this patch PM_POST_SUSPEND was
> ignored, so this couldn't happen.
Right, both paths share pci_registered. v3 will remember which
transition unbound the driver and only bind it again after that one.
Thanks,
David
pw-bot: cr
next prev parent reply other threads:[~2026-11-24 0:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 4:27 [PATCH net v2 1/2] net: wwan: iosm: cancel the ADB timer on cleanup David Westen
2026-11-19 4:27 ` [PATCH net v2 2/2] net: wwan: iosm: fix S3 resume by re-binding the driver around it David Westen
2026-11-22 20:01 ` Maciej S. Szmigiero
2026-11-23 3:17 ` David Westen
2026-11-23 18:07 ` Maciej S. Szmigiero
2026-11-23 5:17 ` netdev-bot+sashiko
2026-11-24 0:44 ` David Westen [this message]
2026-11-23 5:17 ` [PATCH net v2 1/2] net: wwan: iosm: cancel the ADB timer on cleanup netdev-bot+sashiko
2026-11-24 0:20 ` David Westen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e4a05b89-f9ca-4082-a203-07f6a00f8913@gmail.com \
--to=davidlwesten@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=johannes@sipsolutions.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=loic.poulain@oss.qualcomm.com \
--cc=m.chetan.kumar@linux.intel.com \
--cc=mail@maciej.szmigiero.name \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nihaal@cse.iitm.ac.in \
--cc=pabeni@redhat.com \
--cc=ryazanov.s.a@gmail.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox