From: linuxtestproject.agent@gmail.com
To: lepillai@linux.ibm.com
Cc: ltp@lists.linux.it
Subject: Re: [LTP] Added new_behavior flag to detect kernel version Kernel >= 6.11: Tests that creat() succeeds (write to executed file allowed)
Date: Tue, 21 Apr 2026 05:35:23 +0000 [thread overview]
Message-ID: <20260421053523.3918-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260421050251.3662828-1-lepillai@linux.ibm.com>
Hi Lekshmi,
On 2026-04-21, lekshmi-cpillai wrote:
> Added new_behavior flag to detect kernel version Kernel >= 6.11: Tests that creat() succeeds (write to executed file allowed)
Use imperative mood in the subject: "creat07: Support both old and new
write-to-executed-file behavior". Also add a commit body explaining why
the change is needed — that the previous tst_brk(TCONF) silently skipped
the test on all kernels >= 6.11 instead of verifying the allowed behavior.
Finally, the Signed-off-by tag is missing.
> +static int new_behavior;
[...]
> - tst_brk(TCONF, "Skipping test, write to executed file is "
> - "allowed since 6.11-rc1.\n"
> - "2a010c412853 (\"fs: don't block i_writecount during exec\")");
> + new_behavior = 1;
The logic change is correct. However the doc comment at the top of the
file still only mentions ETXTBSY — update it to describe both behaviors.
[...]
Pre-existing issues noticed in the surrounding code (not introduced
by this patch):
- creat07.c:35 — O_WRONLY (value 1) is passed as the mode argument to
creat(); the second parameter is mode_t, not open flags — likely
intended to be 0600.
---
Note:
Our agent completed the review of the patch. The full review can be
found at: https://github.com/linux-test-project/ltp-agent/actions/runs/24705759346
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2026-04-21 5:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-08 5:36 [LTP] [PATCH] Added new_behavior flag to detect kernel version Kernel >= 6.11: Tests that creat() succeeds (write to executed file allowed) lepillai
2026-04-08 10:10 ` Cyril Hrubis
2026-04-21 5:02 ` lepillai
2026-04-21 5:35 ` linuxtestproject.agent [this message]
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=20260421053523.3918-1-linuxtestproject.agent@gmail.com \
--to=linuxtestproject.agent@gmail.com \
--cc=lepillai@linux.ibm.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