From: Ayush Jain <ayush.jain3@amd.com>
To: David Hildenbrand <david@redhat.com>,
akpm@linux-foundation.org, shuah@kernel.org,
pasha.tatashin@soleen.com, zhansayabagdaulet@gmail.com,
tyhicks@linux.microsoft.com,
raghavendra.kodsarathimmappa@amd.com
Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org, Narasimhan.V@amd.com,
Santosh.Shukla@amd.com
Subject: Re: [PATCH 1/2] selftests: mm: ksm: Fix incorrect evaluation of parameter
Date: Fri, 28 Jul 2023 21:45:04 +0530 [thread overview]
Message-ID: <d1e720a1-d52c-a14b-3389-a2fb830c208e@amd.com> (raw)
In-Reply-To: <8e4d9fa7-7550-87a9-ead1-2d2a8691cdab@redhat.com>
Hello David,
On 7/28/2023 8:05 PM, David Hildenbrand wrote:
> On 28.07.23 08:01, Ayush Jain wrote:
>> A missing break in kms_tests leads to kselftest hang when the
>> parameter -s is used.
>> In current code flow because of missing break in -s, -t parses
>> args spilled from -s and as -t accepts only valid values as 0,1
>> so any arg in -s >1 or <0, gets in ksm_test failure
>>
>> This went undetected since, before the addition of option -t,
>> the next case -M would immediately break out of the switch
>> statement but that is no longer the case
>>
>> Add the missing break statement.
>>
>> ----Before----
>> ./ksm_tests -H -s 100
>> Invalid merge type
>>
>> ----After----
>> ./ksm_tests -H -s 100
>> Number of normal pages: 0
>> Number of huge pages: 50
>> Total size: 100 MiB
>> Total time: 0.401732682 s
>> Average speed: 248.922 MiB/s
>>
>> Fixes: 9e7cb94ca218 ("selftests: vm: add KSM merging time test")
>
> I think this actually fixes 07115fcc15b4 ("selftests/mm: add new selftests for KSM") that added the "t" parsing.
>
Sure will update in v2.
> Reviewed-by: David Hildenbrand <david@redhat.com>
>
Thanks,
Ayush Jain
prev parent reply other threads:[~2023-07-28 16:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-28 6:01 Ayush Jain
2023-07-28 6:01 ` [PATCH 2/2] selftests: mm: add KSM_MERGE_TIME tests Ayush Jain
2023-07-28 14:35 ` David Hildenbrand
2023-07-28 14:35 ` [PATCH 1/2] selftests: mm: ksm: Fix incorrect evaluation of parameter David Hildenbrand
2023-07-28 16:15 ` Ayush Jain [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=d1e720a1-d52c-a14b-3389-a2fb830c208e@amd.com \
--to=ayush.jain3@amd.com \
--cc=Narasimhan.V@amd.com \
--cc=Santosh.Shukla@amd.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pasha.tatashin@soleen.com \
--cc=raghavendra.kodsarathimmappa@amd.com \
--cc=shuah@kernel.org \
--cc=tyhicks@linux.microsoft.com \
--cc=zhansayabagdaulet@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox