Re: [PATCH net v2 2/2] net: wwan: iosm: fix S3 resume by re-binding the driver around it
From: David Westen
Date: Mon Nov 23 2026 - 19:44:32 EST
On 11/22/26 9:17 PM, netdev-bot+sashiko@xxxxxxxxxx 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@xxxxxxxxxxxxxxx # 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