Thread View: linux.kernel.netdev
3 messages
3 total messages
Started by Wentao Liang
Wed, 04 Nov 2026 02:28
[PATCH] nfc: llcp: drop the socket reference for non-datagram UI frames
Author: Wentao Liang
Date: Wed, 04 Nov 2026 02:28
Date: Wed, 04 Nov 2026 02:28
38 lines
9367 bytes
9367 bytes
nfc_llcp_recv_ui() looks the destination socket up with
nfc_llcp_sock_get(), which takes a socket reference. Sockets of every
type are linked into local->sockets, so a bound SOCK_STREAM socket can
match the lookup. When the socket is not a SOCK_DGRAM one the function
returns early without dropping the reference, leaking it for every
received UI frame sent to such a socket.
Split the check and put the reference on the non-datagram path as well.
Fixes: 968272bf0087 ("NFC: Handle LLCP UI frames")
Cc: stable@vger.kernel.org
Assisted-by: DeepSeek-V4.1-Flash and OpenAI Codex
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
---
net/nfc/llcp_core.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/net/nfc/llcp_core.c b/net/nfc/llcp_core.c
index 92fd7e29ec8a..92dbba7d285a 100644
--- a/net/nfc/llcp_core.c
+++ b/net/nfc/llcp_core.c
@@ -917,8 +917,12 @@ static void nfc_llcp_recv_ui(struct nfc_llcp_local *local,
/* We're looking for a bound socket, not a client one */
llcp_sock = nfc_llcp_sock_get(local, dsap, LLCP_SAP_SDP);
- if (llcp_sock == NULL || llcp_sock->sk.sk_type != SOCK_DGRAM)
+ if (llcp_sock == NULL)
return;
+ if (llcp_sock->sk.sk_type != SOCK_DGRAM) {
+ nfc_llcp_sock_put(llcp_sock);
+ return;
+ }
/* There is no sequence with UI frames */
skb_pull(skb, LLCP_HEADER_SIZE);
--
2.34.1
Re: [PATCH] nfc: llcp: drop the socket reference for non-datagram UI frames
Author: netdev-bot+sinfo
Date: Wed, 04 Nov 2026 02:33
Date: Wed, 04 Nov 2026 02:33
22 lines
8666 bytes
8666 bytes
Hi! This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information: - How the issue was discovered, e.g. hit in production, hit during development, syzbot report, manual code inspection, LLM or static analysis tool scan. - Whether the issue was actually triggered, or is only theoretical (e.g. found by code inspection). If it was triggered please include the symptoms, like the stack trace or error messages. Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account. If the series needs another revision for other reasons, please include the information in the commit messages then. The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.
Re: [PATCH] nfc: llcp: drop the socket reference for non-datagram UI frames
Author: Krzysztof Kozlowski
Date: Wed, 04 Nov 2026 07:11
Date: Wed, 04 Nov 2026 07:11
58 lines
10067 bytes
10067 bytes
On Wed, 04 Nov 2026 02:28:10 +0000, Wentao Liang wrote:
> nfc_llcp_recv_ui() looks the destination socket up with
> nfc_llcp_sock_get(), which takes a socket reference. Sockets of every
> type are linked into local->sockets, so a bound SOCK_STREAM socket can
> match the lookup. When the socket is not a SOCK_DGRAM one the function
> returns early without dropping the reference, leaking it for every
> received UI frame sent to such a socket.
>
> Split the check and put the reference on the non-datagram path as well.
>
> Fixes: 968272bf0087 ("NFC: Handle LLCP UI frames")
> Cc: stable@vger.kernel.org
> Assisted-by: DeepSeek-V4.1-Flash and OpenAI Codex
> Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
> ---
> net/nfc/llcp_core.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
Multiple things here:
1. Your team ignored completely previous feedback. Multiple times.
2. You use multiple identities with this email address, thus I doubt that we
speak with an actual person.
3. Your bot does not even bother running checkpatch, right?
4. Nothing of this was reproduced nor tested.
5. Finally, the same feedback:
You sent multiple independent patches, to multiple independent
subsystems. The amount of these patches clearly suggest this was
AI generated and most likely not tested.
More importantly, you sent all this work without properly organizing
relevant patches into patchsets. This makes reviewing difficult
and might cause multiple reviewers to address the same issue.
Replying to the entire set is impossible and requires handling each
patch independently, instead of applying or discarding the set.
Maintainers also won't see the bigger picture of your work. Quite
worrying.
This is on the verge of hostile patch: bomb us with so many
contributions, we won't be able to handle them in efficient manner,
like responding ONCE to ask you to slow down. Considering all this
is untested and LLM generated, I have even more doubts whether this
should be considered for review.
Please read kernel documentation BEFORE posting more work. It will
explain you how to identify subsystems, how to organize your work per
subsystem (so a patchset grouping multiple patches with a short cover
letter), how to document the issue discovery method and what was
or was not tested.
Best regards,
Krzysztof
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads