lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 15 Jan 2013 00:44:13 +0100
From:	Sedat Dilek <sedat.dilek@...il.com>
To:	Sasha Levin <sasha.levin@...cle.com>,
	Shaohua Li <shli@...ionio.com>
Cc:	linux-mm <linux-mm@...ck.org>, LKML <linux-kernel@...r.kernel.org>,
	linux-next <linux-next@...r.kernel.org>
Subject: Re: [PATCH] mm: fix BUG on madvise early failure

On Mon, Jan 14, 2013 at 10:29 PM, Sedat Dilek <sedat.dilek@...il.com> wrote:
> Hi,
>
> this patch is for Linux-Next - more exactly next-20130114.
> Can you please enhance the subject-line of your patch next time.
>
> Your patch fixes the issue I have reported a few hours ago in [1].
>
> [ TESTCASE ]
>
> "madvise02" from Linux Test Project (LTP) see [2]
>
> $ cd /opt/ltp/testcases/bin/
>
> $ sudo ./madvise02
> [ OUTPUT ]
> madvise02    1  TPASS  :  failed as expected: TEST_ERRNO=EINVAL(22):
> Invalid argument
> madvise02    2  TPASS  :  failed as expected: TEST_ERRNO=EINVAL(22):
> Invalid argument
> madvise02    3  TPASS  :  failed as expected: TEST_ERRNO=EINVAL(22):
> Invalid argument
> madvise02    4  TPASS  :  failed as expected: TEST_ERRNO=ENOMEM(12):
> Cannot allocate memory
> madvise02    5  TFAIL  :  madvise succeeded unexpectedly
>
> [ /TESTCASE ]
>
> Please feel free and add a...
>
>      Tested-by: Sedat Dilek <sedat.dilek@...il.com>
>
> Thanks!
>
> Regards,
> - Sedat -
>
> [1] http://marc.info/?l=linux-mm&m=135818843710244&w=2
> [2] http://sourceforge.net/projects/ltp/

You happen to know how I get more verbose-debug outputs?

You have...

[   57.320031] kernel BUG at block/blk-core.c:2981!
[   57.320031] invalid opcode: 0000 [#3] PREEMPT SMP DEBUG_PAGEALLOC

Me has...

[ 1263.965989] Kernel BUG at ffffffff81328b2b [verbose debug info unavailable]
[ 1263.966022] invalid opcode: 0000 [#1] SMP

CONFIG_DEBUG_PAGEALLOC=y ?

Block-specific debug settings?

$ egrep -i 'block|blk' .config | egrep -i 'debug|dbg'
# CONFIG_DEBUG_BLK_CGROUP is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set

- Sedat -
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ