From: linuxtestproject.agent@gmail.com
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] sched_setattr: Convert to new API
Date: Fri, 11 Sep 2026 17:51:11 +0000 [thread overview]
Message-ID: <20260911175111.9972-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260911-cve-ghostlock-v10-1-817cfb0187eb@suse.com>
Hi Andrea,
On Fri, 11 Sep 2026 15:14:34 +0200, Andrea Cervesato wrote:
> sched_setattr: Convert to new API
--- [PATCH 1/5] ---
> + if (sched_getattr(0, &read_attr, sizeof(read_attr), 0) == -1) {
> + tst_res(TFAIL | TERRNO, "sched_getattr() failed");
> + return;
> + }
Returning early with tst_res() skips reset_sched(), leaving the process in
SCHED_DEADLINE for subsequent iterations (-i). Use tst_brk(TBROK | TERRNO,
"sched_getattr() failed") so that cleanup is triggered on failure.
--- [PATCH 2/5] ---
> + TST_EXP_PASS(sched_getattr(0, read_attr, sizeof(*read_attr), 0),
> + "sched_getattr() with valid parameters");
> + if (!TST_PASS)
> + return;
Returning early on failure skips reset_sched() at the end of run(),
leaving the process in SCHED_DEADLINE for subsequent iterations (-i).
Call reset_sched() before returning.
--- [PATCH 3/5] ---
> diff --git a/include/lapi/sched.h b/include/lapi/sched.h
This commit should be placed before patches 1 and 2 in the series so
that those tests can use SAFE_SCHED_SETATTR() directly upon conversion.
Verdict - Needs revision
---
Note:
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
next prev parent reply other threads:[~2026-09-11 17:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-11 13:14 [LTP] [PATCH v10 0/5] Reproducer for ghostlock Andrea Cervesato
2026-09-11 13:14 ` [LTP] [PATCH v10 1/5] sched_setattr: Convert to new API Andrea Cervesato
2026-09-11 17:51 ` linuxtestproject.agent [this message]
2026-09-11 13:14 ` [LTP] [PATCH v10 2/5] sched_getattr01: " Andrea Cervesato
2026-09-11 13:14 ` [LTP] [PATCH v10 3/5] lapi/sched: add SAFE_SCHED_SETATTR() Andrea Cervesato
2026-09-11 13:14 ` [LTP] [PATCH v10 4/5] lapi/prctl: add more fallback definitions Andrea Cervesato
2026-09-11 13:14 ` [LTP] [PATCH v10 5/5] cve: add CVE-2026-43499 reproducer Andrea Cervesato
2026-09-14 11:21 ` [LTP] [PATCH v10 0/5] Reproducer for ghostlock 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=20260911175111.9972-1-linuxtestproject.agent@gmail.com \
--to=linuxtestproject.agent@gmail.com \
--cc=andrea.cervesato@suse.de \
--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 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.