can: skb: make CAN skb freeing safe in any IRQ context
Get series with b4
b4 am [email protected] change-id 20260730-master-abf3e4067e47Versions newest first
- v3 Latest posting 2/20 of 3 patches 0 repliesNew
- v3 posting 1/23 patches 0 repliesSuperseded inferred link
- v20 of 2 patches 0 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 1 patch | 2 replies | Superseded |
Changes in v3 from the cover letter
- Cover can_create_echo_skb(), including its successful-clone consume path.
- Add an IRQ-safe release for CAN skb extension allocation failures.
- Link to v2:
https://lore.kernel.org/linux-can/[email protected]
Patches in v3 posting 2/2 No applies recorded yet
None of the 3 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/3] can: skb: make CAN skb freeing safe in any IRQ context
can_put_echo_skb() and the CAN skb allocation helpers may release skbs in hardware interrupt context or while hardware interrupts are disabled. This series makes the affected public helper paths safe in either context and fixes the invalid echo-index skb leak.
---
Changes in v3:
- Cover can_create_echo_skb(), including its successful-clone consume path.
- Add an IRQ-safe release for CAN skb extension allocation failures.
- Link to v2:
https://lore.kernel.org/linux-can/[email protected]
Changes in v2:
- Add a preparatory patch replacing the existing kfree_skb() calls in can_put_echo_skb() with dev_kfree_skb_any().
- Free the skb with dev_kfree_skb_any() on an invalid echo index.
- Collect Vincent's Reviewed-by tag for the binding patch
- Link to v1:
https://lore.kernel.org/linux-can/[email protected]
To: Marc Kleine-Budde <[email protected]>
To: Vincent Mailhol <[email protected]>
---
Cunhao Lu (3):
can: skb: make echo skb freeing safe in any IRQ context
can: skb: make CAN skb allocation failure paths IRQ-safe
can: dev: can_put_echo_skb(): free skb on invalid echo index
drivers/net/can/dev/skb.c | 11 ++++++----- include/linux/can/skb.h | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-)
---
base-commit: 8ba098e6b6ff0db8edf28528d1552be261af30d4
change-id: 20260730-master-abf3e4067e47
Best regards,
Signature · 1 line
Cunhao Lu <[email protected]>