Files
erofs-linux/net/phonet
Santosh Kalluri 71de0177b2 net: phonet: free phonet_device after RCU grace period
phonet_device_destroy() removes a phonet_device from the per-net device
list with list_del_rcu(), but frees it immediately. RCU readers walking
the same list can still hold a pointer to the object after it has been
removed, leading to a slab-use-after-free.

Use kfree_rcu(), matching the lifetime rule already used by
phonet_address_del() for the same object type.

Fixes: eeb74a9d45 ("Phonet: convert devices list to RCU")
Cc: [email protected]
Signed-off-by: Santosh Kalluri <[email protected]>
Acked-by: Rémi Denis-Courmont <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
2026-06-08 17:37:07 -07:00
..
…
…
…