netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net/gve] gve: fix early boot deadlock between rtnl_lock and service_task_mutex
@ 2026-08-04  7:18 Rénich Bon Ćirić
  2026-08-06  0:01 ` Jakub Kicinski
  0 siblings, 1 reply; 3+ messages in thread
From: Rénich Bon Ćirić @ 2026-08-04  7:18 UTC (permalink / raw)
  To: netdev; +Cc: hramamurthy

Hello Netdev Team,

We hit a reproducible hard deadlock (AB-BA circular lock inversion) during early boot on EL10 / RHEL 10 kernels when running Google Cloud Platform VMs with the gve driver:

1. Thread A (NetworkManager): Holds rtnl_lock during __dev_open -> gve_open -> gve_queues_start -> gve_add_napi, and attempts to acquire service_task_mutex.
2. Thread B (gve_service_task worker): Holds service_task_mutex, and calls reset recovery which attempts to acquire rtnl_lock.

Serial Console Trace:
"INFO: task NetworkManager:856 is blocked on a mutex likely owned by task NetworkManager:856" at RIP: copy_net_ns+0x1a4 / selinux_netlbl_sk_security_free.

- Working Kernels: 6.12.0-246.el10 and 6.12.0-233.el10.
- GitHub Issue #93: https://github.com/GoogleCloudPlatform/compute-virtual-ethernet-linux/issues/93
- Proposed PR #95: https://github.com/GoogleCloudPlatform/compute-virtual-ethernet-linux/pull/95

Best regards,

Rénich Bon Ćirić
Principal Infrastructure Architect
renich@woralelandia.com | renich@evalinux.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net/gve] gve: fix early boot deadlock between rtnl_lock and service_task_mutex
  2026-08-04  7:18 [PATCH net/gve] gve: fix early boot deadlock between rtnl_lock and service_task_mutex Rénich Bon Ćirić
@ 2026-08-06  0:01 ` Jakub Kicinski
  2026-08-06 21:28   ` Harshitha Ramamurthy
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2026-08-06  0:01 UTC (permalink / raw)
  To: Rénich Bon Ćirić; +Cc: netdev, hramamurthy

On Tue, 4 Aug 2026 07:18:21 +0000 Rénich Bon Ćirić wrote:
> We hit a reproducible hard deadlock (AB-BA circular lock inversion) during early boot on EL10 / RHEL 10 kernels when running Google Cloud Platform VMs with the gve driver:
> 
> 1. Thread A (NetworkManager): Holds rtnl_lock during __dev_open -> gve_open -> gve_queues_start -> gve_add_napi, and attempts to acquire service_task_mutex.
> 2. Thread B (gve_service_task worker): Holds service_task_mutex, and calls reset recovery which attempts to acquire rtnl_lock.
> 
> Serial Console Trace:
> "INFO: task NetworkManager:856 is blocked on a mutex likely owned by task NetworkManager:856" at RIP: copy_net_ns+0x1a4 / selinux_netlbl_sk_security_free.

You emailed the upstream Linux list.
If the bug exists in the upstream kernel we will happily review the fix
- please post it to the list.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net/gve] gve: fix early boot deadlock between rtnl_lock and service_task_mutex
  2026-08-06  0:01 ` Jakub Kicinski
@ 2026-08-06 21:28   ` Harshitha Ramamurthy
  0 siblings, 0 replies; 3+ messages in thread
From: Harshitha Ramamurthy @ 2026-08-06 21:28 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: Rénich Bon Ćirić, netdev

On Wed, Aug 5, 2026 at 5:01 PM Jakub Kicinski <kuba@kernel.org> wrote:
>
> On Tue, 4 Aug 2026 07:18:21 +0000 Rénich Bon Ćirić wrote:
> > We hit a reproducible hard deadlock (AB-BA circular lock inversion) during early boot on EL10 / RHEL 10 kernels when running Google Cloud Platform VMs with the gve driver:
> >
> > 1. Thread A (NetworkManager): Holds rtnl_lock during __dev_open -> gve_open -> gve_queues_start -> gve_add_napi, and attempts to acquire service_task_mutex.
> > 2. Thread B (gve_service_task worker): Holds service_task_mutex, and calls reset recovery which attempts to acquire rtnl_lock.
> >
> > Serial Console Trace:
> > "INFO: task NetworkManager:856 is blocked on a mutex likely owned by task NetworkManager:856" at RIP: copy_net_ns+0x1a4 / selinux_netlbl_sk_security_free.

Hi,

Thanks for the report. We've communicated re: this on the Github issue
also but just an update that a fix is now merged for those kernels.
Like Jakub mentioned, if you also see this issue on the upstream
kernels, please let us know along with a splat and the exact kernel
version or commit ID so we could look into it.

Thanks,
Harshitha

>
> You emailed the upstream Linux list.
> If the bug exists in the upstream kernel we will happily review the fix
> - please post it to the list.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-06 21:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-04  7:18 [PATCH net/gve] gve: fix early boot deadlock between rtnl_lock and service_task_mutex Rénich Bon Ćirić
2026-08-06  0:01 ` Jakub Kicinski
2026-08-06 21:28   ` Harshitha Ramamurthy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).