mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
Bernard Pidoux reported a regression apparently caused by commitc353e8983e("net: introduce per netns packet chains"). skb->dev becomes NULL and we crash in __netif_receive_skb_core(). Before above commit, different kind of bugs or corruptions could happen without a major crash. But the root cause is that ax25_kiss_rcv() can queue/mangle input skb without checking if this skb is shared or not. Many thanks to Bernard Pidoux for his help, diagnosis and tests. We had a similar issue years ago fixed with commit7aaed57c5c("phonet: properly unshare skbs in phonet_rcv()"). Fixes:1da177e4c3("Linux-2.6.12-rc2") Reported-by: Bernard Pidoux <[email protected]> Closes: https://lore.kernel.org/netdev/[email protected]/ Tested-by: Bernard Pidoux <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Cc: Joerg Reuter <[email protected]> Cc: David Ranch <[email protected]> Cc: Folkert van Heusden <[email protected]> Reviewed-by: Dan Cross <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>