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: <20070419092903.a286be3a.kamezawa.hiroyu@jp.fujitsu.com>
Date:	Thu, 19 Apr 2007 09:29:03 +0900
From:	KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To:	Hugh Dickins <hugh@...itas.com>
Cc:	akpm@...ux-foundation.org, clameter@...r.sgi.com,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fix OOM killing processes wrongly thought MPOL_BIND

On Wed, 18 Apr 2007 20:35:22 +0100 (BST)
Hugh Dickins <hugh@...itas.com> wrote:

> I only have CONFIG_NUMA=y for build testing: surprised when trying a memhog
> to see lots of other processes killed with "No available memory (MPOL_BIND)".
> memhog is killed correctly once we initialize nodemask in constrained_alloc().
> 

thank you for catching bug.

Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>


> Signed-off-by: Hugh Dickins <hugh@...itas.com>
> ---
> Perhaps appropriate for 2.6.20-stable too - regression since 2.6.19.
> 
>  mm/oom_kill.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> --- 2.6.21-rc7/mm/oom_kill.c	2007-03-26 07:30:54.000000000 +0100
> +++ linux/mm/oom_kill.c	2007-04-18 20:18:21.000000000 +0100
> @@ -176,6 +176,8 @@ static inline int constrained_alloc(stru
>  	struct zone **z;
>  	nodemask_t nodes;
>  	int node;
> +
> +	nodes_clear(nodes);
>  	/* node has memory ? */
>  	for_each_online_node(node)
>  		if (NODE_DATA(node)->node_present_pages)
> -
> 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/
> 

-
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