public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
To: Li Wang <liwang@redhat.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH v2 2/2] syscalls/mmap16: regression test for data corruption when blocksize < pagesize for mmaped data
Date: Fri, 6 Feb 2015 15:13:27 +0800	[thread overview]
Message-ID: <54D46997.6050704@cn.fujitsu.com> (raw)
In-Reply-To: <1423206548.27888.29.camel@dhcp-13-206.nay.redhat.com>

Hi,

On 02/06/2015 03:09 PM, Li Wang wrote:
> Hi,
> 
> I found there are two new LTP changes have been applied, which would be
> probably impact to your case:
> commit aabb8340f63ed31afe995fd97795e542dc68b93c
>     Include usctest.h in test.h
> commit 605fa3362fd7cef0baa2131be32cf44661783d3e
>     Get rid of TEST_CLEANUP
> 
> Seems we should remove two lines of the testcase as below otherwise it 
> can't be compile.

OK, thanks!
I'll send V3 next Monday, in case somebody has other comments ;)
> 
> BTW, I tested it on patched kernel it can works well and Bug reproduced
> with unpatched kernel.
Thanks!

Regards,
Xiaoguang Wang
> 
> Thanks,
> Li Wang
> 
> On Wed, 2015-02-04 at 16:59 +0800, Xiaoguang Wang wrote:
>> This data corruption fixed by:
> ...
>> +
>> +#include <stdio.h>
>> +#include <errno.h>
>> +#include <fcntl.h>
>> +#include <sys/types.h>
>> +#include <sys/wait.h>
>> +#include <unistd.h>
>> +#include <sys/mount.h>
>> +#include <sys/mman.h>
>> +
>> +#include "usctest.h"    <=========== remove 
>> +#include "test.h"
>> +#include "safe_macros.h"
>> +
>> +#define MNTPOINT	"mntpoint"
>> +#define FS_BLOCKSIZE	1024
> ...
>> +
>> +static void cleanup(void)
>> +{
>> +	TEST_CLEANUP;   <============ remove
>> +
>> +	if (chdir(".."))
>> +		tst_resm(TWARN | TERRNO, "chdir('..') failed");
>> +	if (mount_flag && tst_umount(MNTPOINT) < 0)
>> +		tst_resm(TWARN | TERRNO, "umount device:%s failed", device);
>> +	if (device)
>> +		tst_release_device(NULL, device);
>> +	tst_rmdir();
>> +}
> 
> .
> 


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2015-02-06  7:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1422876702-3152-1-git-send-email-wangxg.fnst@cn.fujitsu.com>
     [not found] ` <1422876702-3152-2-git-send-email-wangxg.fnst@cn.fujitsu.com>
2015-02-02 16:07   ` [LTP] [PATCH 2/2] syscalls/mmap16: regression test for data corruption when blocksize < pagesize for mmaped data Jan Stancek
2015-02-03  2:04     ` Xiaoguang Wang
2015-02-03  9:57   ` Cyril Hrubis
2015-02-04  8:59     ` [LTP] [PATCH v2 1/2] lib: add SAFE_PWRITE() and SAFE_PREAD() Xiaoguang Wang
2015-02-04  8:59       ` [LTP] [PATCH v2 2/2] syscalls/mmap16: regression test for data corruption when blocksize < pagesize for mmaped data Xiaoguang Wang
2015-02-06  7:09         ` Li Wang
2015-02-06  7:13           ` Xiaoguang Wang [this message]
2015-02-10 10:29             ` Cyril Hrubis

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=54D46997.6050704@cn.fujitsu.com \
    --to=wangxg.fnst@cn.fujitsu.com \
    --cc=liwang@redhat.com \
    --cc=ltp-list@lists.sourceforge.net \
    /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