From: sashiko-bot@kernel.org
Cc: linux-security-module@vger.kernel.org
Subject: Re: [PATCH net] net/x25: inherit the listening socket's security label on accept
Date: Mon, 23 Nov 2026 00:38:47 +0000 [thread overview]
Message-ID: <sashiko-outbox-228481@kernel.org> (raw)
In-Reply-To: <20261123-x25-v1-1-4432d3892f8b@gmail.com>
> From: Suyuan Wang <stevewong@hust.edu.cn>
>
> x25_make_new() creates the socket that accept() returns by copying
> fields from the listening socket, but it never clones the listening
> socket's LSM security state -- there is no security_sk_clone(osk, sk).
> The accepted socket therefore keeps the security state that was newly
> allocated for it in x25_alloc_socket(), instead of inheriting the
> listening socket's security state.
>
> Other accept paths (bluetooth, tipc, vsock, iucv) call
> security_sk_clone() for this. Do the same for X.25.
>
> Found with a static analysis tool and checked by hand.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable@vger.kernel.org
> Co-developed-by: Kaixuan Li <kaixuan.li@ntu.edu.sg>
> Signed-off-by: Kaixuan Li <kaixuan.li@ntu.edu.sg>
> Signed-off-by: Suyuan Wang <stevewong@hust.edu.cn>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-x25-v1-1-4432d3892f8b@gmail.com?part=1
next prev parent reply other threads:[~2026-11-23 0:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 0:31 [PATCH net] net/x25: inherit the listening socket's security label on accept Suyuan Wang
2026-11-23 0:31 ` Suyuan Wang via B4 Relay
2026-11-23 0:38 ` sashiko-bot [this message]
2026-11-23 16:44 ` Martin Schiller
2026-11-24 17:10 ` Paul Moore
2026-11-24 17:19 ` Wong Steve
2026-11-24 17:34 ` Paul Moore
2026-11-29 15:10 ` patchwork-bot+netdevbpf
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=sashiko-outbox-228481@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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.