From: linuxtestproject.agent@gmail.com
To: Praveen K Pandey <praveen@linux.ibm.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] ftrace: Add common library for C implementation
Date: Mon, 8 Jun 2026 09:01:48 +0000 [thread overview]
Message-ID: <20260608090148.3944-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260608055000.97154-2-praveen@linux.ibm.com>
Hi Praveen,
On Mon, Jun 8 2026, Praveen K Pandey wrote:
> ftrace: Add common library for C implementation
--- [PATCH 2/5] ---
> +/*\
> + * [Description]
> + *
> + * Test for kernel panic while using userstacktrace with page fault events.
The [Description] header is deprecated and must not be used. Remove
the `[Description]` line and start directly with the test description
text. The same applies to ftrace_regression02.c.
--- [PATCH 4/5] ---
> +static void cleanup(void)
> +{
> + stop_testing = 1;
> + ftrace_cleanup();
> +}
If the test is interrupted (e.g. SIGTERM on timeout), cleanup() is
called while stress threads may still be running. Setting stop_testing
does not guarantee threads have exited before ftrace_cleanup() frees
tracing_path and debugfs_path. Threads accessing those globals after
free is a use-after-free.
The fix is to join all threads in cleanup() before calling
ftrace_cleanup(), for example by calling stop_stress_tests() here
(guarded by thread_count > 0).
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-06-08 9:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-08 5:49 [LTP] [LTP PATCH v4 0/5] ftrace: Convert shell tests to C Praveen K Pandey
2026-06-08 5:49 ` [LTP] [LTP PATCH v4 1/5] ftrace: Add common library for C implementation Praveen K Pandey
2026-06-08 9:01 ` linuxtestproject.agent [this message]
2026-06-08 9:41 ` Cyril Hrubis
2026-06-08 5:49 ` [LTP] [LTP PATCH v4 2/5] ftrace: Convert ftrace_regression01.sh to C Praveen K Pandey
2026-06-08 5:49 ` [LTP] [LTP PATCH v4 3/5] ftrace: Convert ftrace_regression02.sh " Praveen K Pandey
2026-06-08 5:49 ` [LTP] [LTP PATCH v4 4/5] ftrace: Convert ftrace_stress_test.sh " Praveen K Pandey
2026-06-08 5:50 ` [LTP] [LTP PATCH v4 5/5] ftrace: Remove obsolete shell test files Praveen K Pandey
-- strict thread matches above, loose matches on Subject: below --
2026-06-09 4:16 [LTP] [PATCH v6 1/5] ftrace: Add common library for C implementation Praveen K Pandey
2026-06-09 5:14 ` [LTP] " linuxtestproject.agent
2026-06-08 13:25 [LTP] [PATCH v5 1/5] " Praveen K Pandey
2026-06-08 14:39 ` [LTP] " linuxtestproject.agent
2026-06-07 4:41 [LTP] [LTP PATCH v3 1/5] " Praveen K Pandey
2026-06-07 8:02 ` [LTP] " linuxtestproject.agent
2026-06-06 19:58 [LTP] [LTP PATCH v2 1/5] " Praveen K Pandey
2026-06-06 21:11 ` [LTP] " linuxtestproject.agent
2026-06-06 14:31 [LTP] [LTP PATCH 1/5] " Praveen K Pandey
2026-06-06 15:26 ` [LTP] " linuxtestproject.agent
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=20260608090148.3944-1-linuxtestproject.agent@gmail.com \
--to=linuxtestproject.agent@gmail.com \
--cc=ltp@lists.linux.it \
--cc=praveen@linux.ibm.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.