[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1401081825470.15616@chino.kir.corp.google.com>
Date: Wed, 8 Jan 2014 18:26:24 -0800 (PST)
From: David Rientjes <rientjes@...gle.com>
To: Han Pingtian <hanpt@...ux.vnet.ibm.com>
cc: linux-kernel@...r.kernel.org, Mel Gorman <mgorman@...e.de>,
Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
Michal Hocko <mhocko@...e.cz>,
Dave Hansen <dave.hansen@...el.com>
Subject: Re: [RFC] mm: prevent set a value less than 0 to min_free_kbytes
On Wed, 8 Jan 2014, Han Pingtian wrote:
> If echo -1 > /proc/vm/sys/min_free_kbytes, the system will hang.
> Changing proc_dointvec() to proc_dointvec_minmax() in the
> min_free_kbytes_sysctl_handler() can prevent this to happen.
>
> Signed-off-by: Han Pingtian <hanpt@...ux.vnet.ibm.com>
Acked-by: David Rientjes <rientjes@...gle.com>
Nice catch!
--
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