summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-11-13 11:15:44 -0500
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-11-16 13:14:34 -0500
commit0d8f6981f55e28d8fac703bbd0e29bd9496c8b5b (patch)
treeb86a4b1afcbc5eb67f0a877598d82f316b054fe8 /tools/perf/scripts/python/stackcollapse.py
parent76248359ac32e97cd7d1bd55a4c94a2ad4009871 (diff)
Bluetooth: 6lowpan: Always consume the skb in chan_recv_cb
The l2cap_chan_ops recv callback takes ownership of the skb on success and leaves it to the caller on failure. chan_recv_cb() violates this: when recv_pkt() fails it returns -EAGAIN even though skb_share_check() may already have dropped the caller's reference to a shared skb and replaced it with a clone. The L2CAP caller then calls kfree_skb() on the original skb, over-releasing it, while the clone is leaked. Make recv_pkt() free the skb on its drop path and have chan_recv_cb() always consume the skb and return 0, including the lookup failures, so the caller never frees it again. A dropped packet is accounted in rx_dropped and no longer reported as a receive error to L2CAP. Fixes: 11e3ff707278 ("6lowpan: Use skb_cow in IPHC decompression.") Assisted-by: OpenCode:claude-sonnet-5.5 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions