linux-numa.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Cliff Wickman <cpw@sgi.com>
To: Petr Holasek <pholasek@redhat.com>
Cc: linux-numa@vger.kernel.org
Subject: Re: [PATCH] numademo: msize check for ptrchase test
Date: Thu, 16 Feb 2012 09:21:30 -0600	[thread overview]
Message-ID: <20120216152130.GA8065@sgi.com> (raw)
In-Reply-To: <a5bced8f-f66d-4d15-a743-147b95393d00@zmail17.collab.prod.int.phx2.redhat.com>


Thanks Petr.  I've included your patch in numactl-2.0.8-rc4.tar.gz
( ftp://oss.sgi.com/www/projects/libnuma/download/ )


To all interested in libnuma and numactl:

These are the changes since the 2.0.7, released in April, 2011:

2.0.8-rc1
- 110818 Checking of sucessful allocations in numademo (Petr Holasek)
2.0.8-rc2
- 110823 Fix of numactl (--touch) warnings and man page (Cliff W.) 2.0.8-rc3
- 111214 Add "same" nodemask alias to numactl (Andi Kleen)
- 111214 Add constructors for numa_init/exit (Andi Kleen)
- 111214 Add use of glibc syscall stub where possible (Andi Kleen)
- 111214 Fix regress1 to show all the problems before exiting (Andi Kleen)
- 111214 Add IO affinity support (Andi Kleen)
- 111214 Clean regression test temp files (Andi Kleen)
- 111214 Add an option to memhog to disable transparent huge pages (Andi Kleen)
- 111214 Fix the test suite on systems that force THP, disable them (Andi Kleen)
2.0.8-rc4
- 120106 Install man pages migspeed, migratepages and numastat (Petr Holasek)
- 120106 Warnings in numa_node_to_cpus_v1 to be more verbose (Petr Holasek)
- 120216 Fix for numademo: msize check for ptrchase test (Petr Holasek)

Version 2.0.8 should probably be released soon.  If you have any plans in hand
or in mind for fixes or enhancements, please send them or let me know that
they are coming.

Any testing of the current (2.0.8-rc4) would also be appreciated.

-Cliff


On Thu, Feb 16, 2012 at 08:54:25AM -0500, Petr Holasek wrote:
> From: Petr Holasek <pholasek@redhat.com>
> 
> This patch fixes ptrchase test segfault, when numademo is 
> called with argument lower than sizeof(struct union node) 
> (8 bytes on x86_64).
> 
> --
> diff -up numactl-2.0.8-rc3/numademo.c.orig numactl-2.0.8-rc3/numademo.c
> --- numactl-2.0.8-rc3/numademo.c.orig	2011-12-19 15:51:35.000000000 +0100
> +++ numactl-2.0.8-rc3/numademo.c	2012-02-16 14:44:34.510249987 +0100
> @@ -529,7 +529,13 @@ int main(int ac, char **av)
>  #ifdef HAVE_STREAM_LIB
>  		test(STREAM);
>  #endif
> -		test(PTRCHASE);
> +		if (msize >= sizeof(union node)) {
> +			test(PTRCHASE);
> +		} else {
> +			fprintf(stderr, "You must set msize at least %lu bytes for ptrchase test.\n",
> +				sizeof(union node));
> +			exit(1);
> +		}
>  	} else {
>  		int k;
>  		for (k = 2; k < ac; k++) {

-- 
Cliff Wickman
SGI
cpw@sgi.com
(651) 683-3824

      reply	other threads:[~2012-02-16 15:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <d2a80b30-6855-47b7-a8e1-57bb3f1c5268@zmail17.collab.prod.int.phx2.redhat.com>
2012-02-16 13:54 ` [PATCH] numademo: msize check for ptrchase test Petr Holasek
2012-02-16 15:21   ` Cliff Wickman [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=20120216152130.GA8065@sgi.com \
    --to=cpw@sgi.com \
    --cc=linux-numa@vger.kernel.org \
    --cc=pholasek@redhat.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 NNTP newsgroup(s).