From: linuxtestproject.agent@gmail.com
To: Darren Chang <chihsheng@google.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] syscalls/xattr: Add runtime probe for socket xattr backports
Date: Mon, 1 Jun 2026 16:03:59 +0000 [thread overview]
Message-ID: <20260601160400.4003-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260601151400.4024541-1-chihsheng@google.com>
Hi Darren,
Thank you for this patch. The overall approach — using a runtime probe to
detect backported socket xattr support rather than relying solely on the
version check — is correct and useful for Android downstream kernels.
A couple of issues to fix before merging:
---
[COMMIT MESSAGE]
> was merged in v7.1.0
> strictly expect EPERM for sockets on kernels < 7.1.0.
Kernel mainline releases are tagged as "v7.1", not "v7.1.0". The sublevel
".0" is not part of the release tag. Please replace "v7.1.0" → "v7.1" and
"7.1.0" → "7.1" throughout the commit message.
---
[testcases/kernel/syscalls/fsetxattr/fsetxattr02.c]
> + if (socket_idx != -1) {
> + if (fsetxattr(tc[socket_idx].fd, tc[socket_idx].key,
> + tc[socket_idx].value, tc[socket_idx].size,
> + tc[socket_idx].flags) == 0) {
> +
> + tst_res(TINFO, "Socket xattr support detected (backport)");
Blank line between the opening brace and the first statement. Linux kernel
coding style does not permit blank lines immediately after an opening '{'.
Please remove the blank line.
Also, the inline code comment (line just added in setup()) reads:
> + * merged in 7.1.0 mainline, but might be backported.
Same version notation issue: "7.1.0" → "7.1".
---
[testcases/kernel/syscalls/setxattr/setxattr02.c]
> + if (setxattr(SOCK, XATTR_TEST_KEY, XATTR_TEST_VALUE,
> + XATTR_TEST_VALUE_SIZE, XATTR_CREATE) == 0) {
> +
> + tst_res(TINFO, "Socket xattr support detected (backport)");
Same blank-line-after-brace issue as in fsetxattr02.c. Remove the blank
line.
Also:
> + * merged in 7.1.0 mainline, but might be backported.
"7.1.0" → "7.1".
---
Verdict: Needs revision
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-06-01 16:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-01 10:13 [LTP] [PATCH] syscalls/xattr: Add runtime probe for socket xattr backports Darren Chang via ltp
2026-06-01 13:35 ` [LTP] " linuxtestproject.agent
2026-06-01 15:14 ` [LTP] [PATCH v2] " Darren Chang via ltp
2026-06-01 16:03 ` linuxtestproject.agent [this message]
2026-06-01 16:53 ` [LTP] [PATCH v3] " Darren Chang via ltp
2026-06-01 20:26 ` [LTP] " linuxtestproject.agent
2026-06-02 1:07 ` [LTP] [PATCH v4] " Darren Chang via ltp
2026-06-02 4:06 ` [LTP] " linuxtestproject.agent
2026-06-03 10:34 ` [LTP] [PATCH v4] " Cyril Hrubis
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=20260601160400.4003-1-linuxtestproject.agent@gmail.com \
--to=linuxtestproject.agent@gmail.com \
--cc=chihsheng@google.com \
--cc=ltp@lists.linux.it \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox