netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net v2 0/2] Fix rcu_read_lock issues in netdev-genl
@ 2024-11-13  2:17 Joe Damato
  2024-11-13  2:17 ` [net v2 1/2] netdev-genl: Hold rcu_read_lock in napi_get Joe Damato
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Joe Damato @ 2024-11-13  2:17 UTC (permalink / raw)
  To: netdev
  Cc: pabeni, edumazet, amritha.nambiar, sridhar.samudrala, kuba,
	mkarsten, Joe Damato, David S. Miller, open list, Mina Almasry,
	Simon Horman

Greetings:

Paolo reported a splat [1] when running the new selftest for busy poll.
I confirmed and reproduced this splat locally.

This series proposes 2 patches:
  - Patch 1:
    - Fixes a similar issue in an older commit and CCs stable as this
      fix could be backported.
  - Patch 2:
    - Fixes the issue Paolo hit while running the selftest

I retested locally after applying this series and confirmed that the
splat is fixed.

Thanks,
Joe

[1]: https://lore.kernel.org/netdev/719083c2-e277-447b-b6ea-ca3acb293a03@redhat.com/

v2:
  - Removed the helper and simplified to just add a rcu_read_lock /
    unlock in both patches instead.

rfc: https://lore.kernel.org/lkml/20241112181401.9689-1-jdamato@fastly.com/

Joe Damato (2):
  netdev-genl: Hold rcu_read_lock in napi_get
  netdev-genl: Hold rcu_read_lock in napi_set

 net/core/netdev-genl.c | 4 ++++
 1 file changed, 4 insertions(+)


base-commit: a58f00ed24b849d449f7134fd5d86f07090fe2f5
-- 
2.25.1


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

end of thread, other threads:[~2024-11-14 20:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13  2:17 [net v2 0/2] Fix rcu_read_lock issues in netdev-genl Joe Damato
2024-11-13  2:17 ` [net v2 1/2] netdev-genl: Hold rcu_read_lock in napi_get Joe Damato
2024-11-13  2:17 ` [net v2 2/2] netdev-genl: Hold rcu_read_lock in napi_set Joe Damato
2024-11-14  2:47 ` [net v2 0/2] Fix rcu_read_lock issues in netdev-genl Jakub Kicinski
2024-11-14  6:29   ` Joe Damato
2024-11-14  9:06     ` Paolo Abeni
2024-11-14 17:58       ` Joe Damato
2024-11-14 18:32         ` Paolo Abeni
2024-11-14 19:31     ` Jakub Kicinski
2024-11-14 20:13       ` Joe Damato

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).