From: Suyuan Wang via B4 Relay <devnull+shyckless.gmail.com@kernel.org>
To: netdev@vger.kernel.org, david@ixit.cz
Cc: edumazet@kernel.org, kuba@kernel.org, horms@kernel.org,
oe-linux-nfc@lists.linux.dev, linux-kernel@vger.kernel.org,
pabeni@redhat.com, davem@davemloft.net
Subject: [PATCH net 0/2] nfc: llcp: clone LSM attributes; st21nfca: fix skb leak
Date: Thu, 12 Nov 2026 10:04:47 +0000 [thread overview]
Message-ID: <20261112-nfc-v1-0-ab0ef166f382@gmail.com> (raw)
Hi,
Two unrelated NFC fixes. Both came out of a static analysis run, and I
checked them by hand on next-20261109.
The first one makes LLCP accepted sockets inherit the listener's LSM
attributes. nfc_llcp_recv_connect() never calls security_sk_clone(),
which bluetooth, iucv and vsock all had to add for the same reason.
The second one plugs an skb leak in st21nfca: the ATR_REQ skb is never
freed after the HCI layer has copied it.
Both are compile tested only. I don't have ST21NFCA hardware, and I
haven't set up SELinux with an LLCP peer to test the first one.
Thanks,
Suyuan
---
Suyuan Wang (2):
nfc: llcp: Clone LSM attributes to newly created child sockets
nfc: st21nfca: Free the ATR_REQ skb after sending it
drivers/nfc/st21nfca/dep.c | 9 ++++++---
net/nfc/llcp_core.c | 3 +++
2 files changed, 9 insertions(+), 3 deletions(-)
---
base-commit: 630059a5a632377b9b7b487baccde92b7ae1dd47
change-id: 20261112-nfc-402434cf5f79
Best regards,
--
Suyuan Wang <shyckless@gmail.com>
WARNING: multiple messages have this Message-ID (diff)
From: Suyuan Wang <shyckless@gmail.com>
To: netdev@vger.kernel.org, david@ixit.cz
Cc: edumazet@kernel.org, kuba@kernel.org, horms@kernel.org,
oe-linux-nfc@lists.linux.dev, linux-kernel@vger.kernel.org,
pabeni@redhat.com, davem@davemloft.net
Subject: [PATCH net 0/2] nfc: llcp: clone LSM attributes; st21nfca: fix skb leak
Date: Thu, 12 Nov 2026 10:04:47 +0000 [thread overview]
Message-ID: <20261112-nfc-v1-0-ab0ef166f382@gmail.com> (raw)
Hi,
Two unrelated NFC fixes. Both came out of a static analysis run, and I
checked them by hand on next-20261109.
The first one makes LLCP accepted sockets inherit the listener's LSM
attributes. nfc_llcp_recv_connect() never calls security_sk_clone(),
which bluetooth, iucv and vsock all had to add for the same reason.
The second one plugs an skb leak in st21nfca: the ATR_REQ skb is never
freed after the HCI layer has copied it.
Both are compile tested only. I don't have ST21NFCA hardware, and I
haven't set up SELinux with an LLCP peer to test the first one.
Thanks,
Suyuan
---
Suyuan Wang (2):
nfc: llcp: Clone LSM attributes to newly created child sockets
nfc: st21nfca: Free the ATR_REQ skb after sending it
drivers/nfc/st21nfca/dep.c | 9 ++++++---
net/nfc/llcp_core.c | 3 +++
2 files changed, 9 insertions(+), 3 deletions(-)
---
base-commit: 630059a5a632377b9b7b487baccde92b7ae1dd47
change-id: 20261112-nfc-402434cf5f79
Best regards,
--
Suyuan Wang <shyckless@gmail.com>
next reply other threads:[~2026-11-12 10:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 10:04 Suyuan Wang via B4 Relay [this message]
2026-11-12 10:04 ` [PATCH net 0/2] nfc: llcp: clone LSM attributes; st21nfca: fix skb leak Suyuan Wang
2026-11-12 10:04 ` [PATCH net 1/2] nfc: llcp: Clone LSM attributes to newly created child sockets Suyuan Wang via B4 Relay
2026-11-12 10:04 ` Suyuan Wang
2026-11-18 18:16 ` Simon Horman
2026-11-12 10:04 ` [PATCH net 2/2] nfc: st21nfca: Free the ATR_REQ skb after sending it Suyuan Wang via B4 Relay
2026-11-12 10:04 ` Suyuan Wang
2026-11-18 18:16 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261112-nfc-v1-0-ab0ef166f382@gmail.com \
--to=devnull+shyckless.gmail.com@kernel.org \
--cc=davem@davemloft.net \
--cc=david@ixit.cz \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oe-linux-nfc@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=shyckless@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.