Skip to content

nfc: fix leaks and races surfaced by NIPA

Jakub Kicinski netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5nfc: nci: free skb on nci_transceive early error pathsnet/nfc/nci/core.c+7 -21 replyApplied
2/5nfc: digital: free skb on digital_in_send error pathsnet/nfc/digital_core.c+6 -21 replyApplied
3/5nfc: nci: complete pending data exchange on device closenet/nfc/nci/core.c+9 -01 replyApplied
4/5nfc: nci: clear NCI_DATA_EXCHANGE before calling completion callbacknet/nfc/nci/data.c+8 -41 replyApplied
5/5nfc: rawsock: cancel tx_work before socket teardownnet/nfc/rawsock.c+11 -02 repliesApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJoe Damato
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/5] nfc: fix leaks and races surfaced by NIPA

I recently added the nci test to NIPA. Somewhat surprisingly it runs without much settup but hits kmemleaks fairly often. Fix a handful of issues to make the test pass in a stable way.

Jakub Kicinski (5):
nfc: nci: free skb on nci_transceive early error paths
nfc: digital: free skb on digital_in_send error paths
nfc: nci: complete pending data exchange on device close
nfc: nci: clear NCI_DATA_EXCHANGE before calling completion callback
nfc: rawsock: cancel tx_work before socket teardown

 net/nfc/digital_core.c |  8 ++++++--
 net/nfc/nci/core.c     | 18 ++++++++++++++++--
 net/nfc/nci/data.c     | 12 ++++++++----
 net/nfc/rawsock.c      | 11 +++++++++++
 4 files changed, 41 insertions(+), 8 deletions(-)
Signature · 1 line
2.53.0