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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170726113112.GJ2981@dhcp22.suse.cz>
Date:   Wed, 26 Jul 2017 13:31:12 +0200
From:   Michal Hocko <mhocko@...nel.org>
To:     Heiko Carstens <heiko.carstens@...ibm.com>
Cc:     Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
        linux-s390@...r.kernel.org, linux-kernel@...r.kernel.org,
        Andre Wild <wild@...ux.vnet.ibm.com>,
        KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
        Thomas Gleixner <tglx@...utronix.de>,
        Vlastimil Babka <vbabka@...e.cz>
Subject: Re: [PATCH] mm: take memory hotplug lock within
 numa_zonelist_order_handler()

On Wed 26-07-17 13:17:38, Heiko Carstens wrote:
[...]
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index 6d30e914afb6..fc32aa81f359 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -4891,9 +4891,11 @@ int numa_zonelist_order_handler(struct ctl_table *table, int write,
>  				NUMA_ZONELIST_ORDER_LEN);
>  			user_zonelist_order = oldval;
>  		} else if (oldval != user_zonelist_order) {
> +			mem_hotplug_begin();
>  			mutex_lock(&zonelists_mutex);
>  			build_all_zonelists(NULL, NULL);
>  			mutex_unlock(&zonelists_mutex);
> +			mem_hotplug_done();
>  		}
>  	}
>  out:

Please note that this code has been removed by
http://lkml.kernel.org/r/20170721143915.14161-2-mhocko@kernel.org. It
will get to linux-next as soon as Andrew releases a new version mmotm
tree.

-- 
Michal Hocko
SUSE Labs

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ