[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220204183630.2376998-1-eric.dumazet@gmail.com>
Date: Fri, 4 Feb 2022 10:36:27 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: "David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
Cc: netdev <netdev@...r.kernel.org>,
Eric Dumazet <edumazet@...gle.com>,
Eric Dumazet <eric.dumazet@...il.com>
Subject: [PATCH net-next 0/3] net: device tracking improvements
From: Eric Dumazet <edumazet@...gle.com>
Main goal of this series is to be able to detect the following case
which apparently is still haunting us.
dev_hold_track(dev, tracker_1, GFP_ATOMIC);
dev_hold(dev);
dev_put(dev);
dev_put(dev); // Should complain loudly here.
dev_put_track(dev, tracker_1); // instead of here (as before this series)
Eric Dumazet (3):
ref_tracker: implement use-after-free detection
ref_tracker: add a count of untracked references
net: refine dev_put()/dev_hold() debugging
include/linux/netdevice.h | 69 ++++++++++++++++++++++++-------------
include/linux/ref_tracker.h | 4 +++
lib/ref_tracker.c | 17 ++++++++-
net/core/dev.c | 2 +-
4 files changed, 67 insertions(+), 25 deletions(-)
--
2.35.0.263.gb82422642f-goog
Powered by blists - more mailing lists