Re: [PATCH net 1/3] net/nfc: llcp: fix the 16-bit truncation that overruns the SNL response skb

From: Piyus Kedia

Date: Sun Nov 29 2026 - 20:35:10 EST


Hi Willem,

Thanks for the review, and sorry for the threading mess in v1.

v2 is posted as one series with a cover letter:

the series: https://lore.kernel.org/all/20261130012208.1962491-1-piyus@xxxxxxxxxxx/
1/3 the SNL allocation truncated to 16 bits:
https://lore.kernel.org/all/20261130012208.1962491-2-piyus@xxxxxxxxxxx/
2/3 the skb reference taken after the frame is queued:
https://lore.kernel.org/all/20261130012208.1962491-3-piyus@xxxxxxxxxxx/
3/3 the NULL skb forwarded to the nfc core:
https://lore.kernel.org/all/20261130012208.1962491-4-piyus@xxxxxxxxxxx/

All three patches now carry a Fixes: tag. v1 had none because the clone we
were working from does not reach back that far, which we should have said
instead of just leaving them off:

1/3 e0ae7bac06cc ("NFC: llcp: Service Name Lookup SDRES aggregation")
2/3 1727cf937401 ("NFC: llcp: Fix Rx memory leak")
3/3 122c195872e9 ("NFC: NCI: Forward data received in Target mode to nfc core")

The cover letter says why each of those is the commit that introduced the
bug rather than one that merely touched the line. 3/3 is the one worth a
second look: the NULL has been assigned since 2011, but until the
target-mode exit was added the shared exit path only reached
nci_data_exchange_complete(), which accepts a NULL skb.

The recipient list is now the full get_maintainer.pl output, and each patch
carries a Link: to its bug report in the commit message instead of being
threaded under it.

Thanks and regards,
Piyus Kedia
Kapil Vaswani

pw-bot: cr