From: sashiko-bot@kernel.org
To: zhangchujun <zhangchujun@cmss.chinamobile.com>,
kees@kernel.org, shuah@kernel.org
Cc: akpm@linux-foundation.org, richard.weiyang@gmail.com, linux-mm@kvack.org
Subject: Re: [PATCH] selftests/exec: check malloc() return in execveat concat()
Date: Sat, 14 Nov 2026 07:23:41 +0000 [thread overview]
Message-ID: <sashiko-outbox-214263@kernel.org> (raw)
In-Reply-To: <20261113072313.1723-1-zhangchujun@cmss.chinamobile.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] selftests/exec: single-word username in Signed-off-by trailer
- [Low] selftests/exec: missing Fixes trailer for unchecked malloc() in
concat()
--
commit 1c579e8be1fe05d3235ea43d298729637c25d600
Author: zhangchujun <zhangchujun@cmss.chinamobile.com>
> selftests/exec: check malloc() return in execveat concat()
>
> concat() strcpy()s into the buffer returned by malloc() without
> checking it for NULL. If the allocation fails, the helper
> dereferences NULL and crashes the test.
>
> Check the allocation and exit with a failure message via
> ksft_exit_fail_msg(), which is how the file already reports
> unrecoverable errors.
>
> Signed-off-by: zhangchujun <zhangchujun@cmss.chinamobile.com>
[Severity: High]
The Signed-off-by trailer and Author header use a single-word username
("zhangchujun") rather than a full real name. Per
Documentation/process/submitting-patches.rst, the Developer's Certificate
of Origin requires a known real human name (given and family name) rather
than a single-token handle.
[Severity: Low]
Since this fixes an unchecked malloc() in concat(), should the commit
message include:
Fixes: c9b26b81af9c ("syscalls: add selftest for execveat(2)")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261113072313.1723-1-zhangchujun@cmss.chinamobile.com?part=1
prev parent reply other threads:[~2026-11-14 7:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 7:23 [PATCH] selftests/exec: check malloc() return in execveat concat() zhangchujun
2026-11-14 7:23 ` sashiko-bot [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=sashiko-outbox-214263@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=kees@kernel.org \
--cc=linux-mm@kvack.org \
--cc=richard.weiyang@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=shuah@kernel.org \
--cc=zhangchujun@cmss.chinamobile.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.