[LTP] ima_kexec.sh: Use %s in printf to prevent evaluating cmdline backslashes

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Wed Apr 15 07:29:17 CEST 2026


Hi Avinesh,

On Wed, 15 Apr 2026 06:46:36 +0200, Avinesh Kumar wrote:
> ima_kexec.sh: Use %s in printf to prevent evaluating cmdline backslashes

> -       printf "$cmdline" > file1
> +       printf "%s" "$cmdline" > file1

Fix is correct. Please add a Fixes: tag pointing to the commit that
introduced `printf "$cmdline"`.

---
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/24437929854

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


More information about the ltp mailing list