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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200715022152.GA54790@lca.pw>
Date:   Tue, 14 Jul 2020 22:21:53 -0400
From:   Qian Cai <cai@....pw>
To:     Oscar Salvador <osalvador@...e.de>
Cc:     nao.horiguchi@...il.com, linux-mm@...ck.org, mhocko@...nel.org,
        akpm@...ux-foundation.org, mike.kravetz@...cle.com,
        tony.luck@...el.com, david@...hat.com,
        aneesh.kumar@...ux.vnet.ibm.com, zeil@...dex-team.ru,
        naoya.horiguchi@....com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 00/15] HWPOISON: soft offline rework

On Tue, Jul 14, 2020 at 12:08:46PM +0200, Oscar Salvador wrote:
> On Tue, Jun 30, 2020 at 01:08:03AM -0400, Qian Cai wrote:
> > Even after applied the compling fix,
> > 
> > https://lore.kernel.org/linux-mm/20200628065409.GA546944@u2004/
> > 
> > madvise(MADV_SOFT_OFFLINE) will fail with EIO with hugetlb where it
> > would succeed without this series. Steps:
> > 
> > # git clone https://github.com/cailca/linux-mm
> > # cd linux-mm; make
> > # ./random 1 (Need at least two NUMA memory nodes)
> >  start: migrate_huge_offline
> > - use NUMA nodes 0,4.
> > - mmap and free 8388608 bytes hugepages on node 0
> > - mmap and free 8388608 bytes hugepages on node 4
> > madvise: Input/output error
> 
> Ok, sorry for the lateness, but I had to re-fetch the code on my brain again.
> 
> I just finished v4 of this patchset and it seems this problem is gone:
> 
> # ./random 1
> - start: migrate_huge_offline
> - use NUMA nodes 0,1.
> - mmap and free 8388608 bytes hugepages on node 0
> - mmap and free 8388608 bytes hugepages on node 1
> - pass: mmap_offline_node_huge
> - start: hotplug_memory
> offline: Device or resource busy
> offline: Device or resource busy
> offline: Device or resource busy
> offline: Device or resource busy
> offline: Device or resource busy
> offline: Device or resource busy
> offline: Device or resource busy
> offline: Device or resource busy
> offline: Invalid argument
> offline: Device or resource busy
> offline: Invalid argument
> offline: Device or resource busy
> offline: Device or resource busy
> offline: Device or resource busy
> offline: Device or resource busy
> - pass: hotplug_memory
> 
> The test seems to suceed and no crash on the kernel side.
> 
> I will just run some more tests to make sure the thing is solid enough
> and then I will post v4.

Great, I plan to reproduce a bit more of the crash below which I am not 100%
sure yet which patchset/patch is the culprit where that LTP move_pages12
reproducer does the similar things.

https://lore.kernel.org/lkml/20200708012044.GC992@lca.pw/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ