[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210223055321.3891-1-o.rempel@pengutronix.de>
Date: Tue, 23 Feb 2021 06:53:18 +0100
From: Oleksij Rempel <o.rempel@...gutronix.de>
To: mkl@...gutronix.de, "David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Oliver Hartkopp <socketcan@...tkopp.net>,
Robin van der Gracht <robin@...tonic.nl>,
Johannes Berg <johannes@...solutions.net>
Cc: Oleksij Rempel <o.rempel@...gutronix.de>, kernel@...gutronix.de,
linux-can@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Eric Dumazet <edumazet@...gle.com>,
linux-wireless@...r.kernel.org
Subject: [PATCH net v2 0/2] add support for skb with sk ref cloning
changes v2:
- drop mac80211 patch for now, it can go separately if needed
Hello,
this series tries to fix a long standing problem in the CAN echo SKB
handling. The problem shows up if an echo SKB for a SKB that references
an already closed socket is created.
It looks like the mac80211/tx.c has the same problem, see RFC patch 3
for details.
regards,
Oleksij
Oleksij Rempel (2):
skbuff: skb_clone_sk_optional(): add function to always clone a skb
and increase refcount on sk if valid
can: fix ref count warning if socket was closed before skb was cloned
include/linux/can/skb.h | 3 +--
include/linux/skbuff.h | 1 +
net/can/af_can.c | 6 +++---
net/can/j1939/main.c | 3 +--
net/can/j1939/socket.c | 3 +--
net/can/j1939/transport.c | 4 +---
net/core/skbuff.c | 27 +++++++++++++++++++++++++++
7 files changed, 35 insertions(+), 12 deletions(-)
--
2.29.2
Powered by blists - more mailing lists