public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Noah Goldstein <goldstein.w.n@gmail.com>
To: Matheus Castanho <msc@linux.ibm.com>
Cc: GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [PATCH v4 2/5] string: Improve coverage in test-strcmp.c and test-strncmp.c
Date: Mon, 7 Feb 2022 13:03:13 -0600	[thread overview]
Message-ID: <CAFUsyfLz+9eTii6pkA0+p2FcO-qarujZG8VP+ayTKiroEEWWUA@mail.gmail.com> (raw)
In-Reply-To: <87o83idb2a.fsf@linux.ibm.com>

On Mon, Feb 7, 2022 at 8:08 AM Matheus Castanho <msc@linux.ibm.com> wrote:
>
>
> Hi Noah,
>
> Noah Goldstein via Libc-alpha <libc-alpha@sourceware.org> writes:
>
> > Add additional test cases for small / medium sizes.
> >
> > Add tests in test-strncmp.c where `n` is near ULONG_MAX or LONG_MIN to
> > test for overflow bugs in length handling.
> >
> > Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
> > ---
> >  string/test-strcmp.c  |  70 ++++++++++--
> >  string/test-strncmp.c | 257 +++++++++++++++++++++++++++++++++++++++---
> >  2 files changed, 306 insertions(+), 21 deletions(-)
> >
> > diff --git a/string/test-strcmp.c b/string/test-strcmp.c
> > index 97d7bf5043..eacbdc8857 100644
> > --- a/string/test-strcmp.c
> > +++ b/string/test-strcmp.c
> > @@ -16,6 +16,9 @@
> >     License along with the GNU C Library; if not, see
> >     <https://www.gnu.org/licenses/>.  */
> >
> > +#define TEST_LEN (4096 * 3)
> > +#define MIN_PAGE_SIZE (TEST_LEN + 2 * getpagesize ())
>
> Is this change really necessary? It broke the tests on ppc64le because
> the default page size is 64kB, which this new value is not a multiple
> of, causing mprotect to fail with EINVAL in test_init.

We can make MIN_PAGE_SIZE (8 * getpagesize ())?
>
> --
> Matheus Castanho

  reply	other threads:[~2022-02-07 19:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-03 21:42 [PATCH v4 1/5] string/test-str*cmp: remove stupid_[strcmp, strncmp, wcscmp, wcsncmp] Noah Goldstein
2022-02-03 21:42 ` [PATCH v4 2/5] string: Improve coverage in test-strcmp.c and test-strncmp.c Noah Goldstein
2022-02-03 22:28   ` H.J. Lu
2022-02-07 13:59   ` Matheus Castanho
2022-02-07 19:03     ` Noah Goldstein [this message]
2022-02-07 20:17       ` Noah Goldstein
2022-02-03 21:42 ` [PATCH v4 3/5] x86: Optimize strcmp-avx2.S Noah Goldstein
2022-02-03 22:29   ` H.J. Lu
2022-02-04 18:57   ` Joseph Myers
2022-02-04 19:13     ` H.J. Lu
2022-05-04  5:40       ` Sunil Pandey
2022-02-03 21:42 ` [PATCH v4 4/5] x86: Optimize strcmp-evex.S Noah Goldstein
2022-02-03 22:30   ` H.J. Lu
2022-05-04  5:38     ` Sunil Pandey
2022-02-03 21:42 ` [PATCH v4 5/5] benchtests: Add more coverage for strcmp and strncmp benchmarks Noah Goldstein
2022-02-03 22:30   ` H.J. Lu
2022-02-03 22:28 ` [PATCH v4 1/5] string/test-str*cmp: remove stupid_[strcmp, strncmp, wcscmp, wcsncmp] H.J. Lu
2022-02-03 23:30   ` Noah Goldstein

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=CAFUsyfLz+9eTii6pkA0+p2FcO-qarujZG8VP+ayTKiroEEWWUA@mail.gmail.com \
    --to=goldstein.w.n@gmail.com \
    --cc=libc-alpha@sourceware.org \
    --cc=msc@linux.ibm.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).