From: David Hildenbrand <david@redhat.com>
To: aigourensheng <shechenglong001@gmail.com>, akpm@linux-foundation.org
Cc: shuah@kernel.org, linux-mm@kvack.org,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests/mm:fix test_prctl_fork_exec return failure
Date: Mon, 17 Jun 2024 10:01:44 +0200 [thread overview]
Message-ID: <3f5ad53c-f473-469a-a834-afb9b069cb13@redhat.com> (raw)
In-Reply-To: <20240617052934.5834-1-shechenglong001@gmail.com>
On 17.06.24 07:29, aigourensheng wrote:
> after calling fork() in the test_prctl_fork_exec() function,
> the global variable ksm_full_scans_fd is initialized to 0
> in the child process upon entering the main function
> of ./ksm_functional_tests.
> In the function call chain test_child_ksm() ->
> __mmap_and_merge_range -> ksm_merge-> ksm_get_full_scans,
> start_scans = ksm_get_full_scans() will return an error.
> Therefore, the value of ksm_full_scans_fd needs to be
> initialized before calling test_child_ksm in the child process.
>
> Signed-off-by: aigourensheng <shechenglong001@gmail.com>
> ---
Acked-by: David Hildenbrand <david@redhat.com>
--
Cheers,
David / dhildenb
prev parent reply other threads:[~2024-06-17 8:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-17 5:29 aigourensheng
2024-06-17 8:01 ` David Hildenbrand [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=3f5ad53c-f473-469a-a834-afb9b069cb13@redhat.com \
--to=david@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=shechenglong001@gmail.com \
--cc=shuah@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox