diff options
| author | Paul Moses <p@1g4.org> | 2026-03-09 17:35:10 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-10 19:29:09 -0700 |
| commit | 57885276cc16a2e2b76282c808a4e84cbecb3aae (patch) | |
| tree | 6873473c9f85e684a4f05b40db89b16d756a130d /tools/perf/scripts/python/task-analyzer.py | |
| parent | f441b489cc66fbc44d78b6c123e74283b8077431 (diff) | |
| download | linux-57885276cc16a2e2b76282c808a4e84cbecb3aae.tar.gz linux-57885276cc16a2e2b76282c808a4e84cbecb3aae.zip | |
net-shapers: don't free reply skb after genlmsg_reply()
genlmsg_reply() hands the reply skb to netlink, and
netlink_unicast() consumes it on all return paths, whether the
skb is queued successfully or freed on an error path.
net_shaper_nl_get_doit() and net_shaper_nl_cap_get_doit()
currently jump to free_msg after genlmsg_reply() fails and call
nlmsg_free(msg), which can hit the same skb twice.
Return the genlmsg_reply() error directly and keep free_msg
only for pre-reply failures.
Fixes: 4b623f9f0f59 ("net-shapers: implement NL get operation")
Fixes: 553ea9f1efd6 ("net: shaper: implement introspection support")
Cc: stable@vger.kernel.org
Signed-off-by: Paul Moses <p@1g4.org>
Link: https://patch.msgid.link/20260309173450.538026-2-p@1g4.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
