[LTP] Avoid Syscall param clock_settime(tp) points to uninitialised byte(s)

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Mon Apr 13 18:17:34 CEST 2026


Hi Martin,

our agent completed the review of the patch.

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.

On Mon, 13 Apr 2026, Martin Cermak wrote:
> Subject: [PATCH] Avoid Syscall param clock_settime(tp) points to uninitialised byte(s)

The subject copies the valgrind error message verbatim. Please use
the standard LTP format:

  lib/tst_clocks: fix uninitialized memory in syscall_supported_by_kernel

> -       struct __kernel_timespec foo;
> +       struct __kernel_timespec foo = { 0, };

Fix itself looks correct.

Regards,
LTP AI Reviewer


More information about the ltp mailing list