Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754960Ab0KIBsO (ORCPT ); Mon, 8 Nov 2010 20:48:14 -0500 Received: from zene.cmpxchg.org ([85.214.230.12]:53156 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752899Ab0KIBsN (ORCPT ); Mon, 8 Nov 2010 20:48:13 -0500 Date: Tue, 9 Nov 2010 02:47:47 +0100 From: Johannes Weiner To: Greg Thelen Cc: Andrew Morton , Balbir Singh , KAMEZAWA Hiroyuki , Daisuke Nishimura , Wu Fengguang , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] memcg: avoid overflow in memcg_hierarchical_free_pages() Message-ID: <20101109014746.GP23393@cmpxchg.org> References: <1289265320-7025-1-git-send-email-gthelen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1289265320-7025-1-git-send-email-gthelen@google.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 506 Lines: 12 On Mon, Nov 08, 2010 at 05:15:20PM -0800, Greg Thelen wrote: > Use page counts rather than byte counts to avoid overflowing > unsigned long local variables. > > Signed-off-by: Greg Thelen Reviewed-by: Johannes Weiner -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/