Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756878AbZGRB2d (ORCPT ); Fri, 17 Jul 2009 21:28:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755543AbZGRB2a (ORCPT ); Fri, 17 Jul 2009 21:28:30 -0400 Received: from sous-sol.org ([216.99.217.87]:51617 "EHLO sequoia.sous-sol.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751936AbZGRB23 (ORCPT ); Fri, 17 Jul 2009 21:28:29 -0400 Date: Fri, 17 Jul 2009 18:28:19 -0700 From: Chris Wright To: Sage Weil Cc: Andi Kleen , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/20] ceph: Ceph distributed file system client v0.10 Message-ID: <20090718012819.GE8150@sequoia.sous-sol.org> References: <1247693090-27796-1-git-send-email-sage@newdream.net> <87hbxcx182.fsf@basil.nowhere.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 705 Lines: 17 * Sage Weil (sage@newdream.net) wrote: > I don't always verify that things like element counts are "sane", though, > so there's currently the possibility of trying to allocate large chunks of > memory. There's also the potential of allocating a small amount of memory w/ a large element count if you overflow on multiply. You should definitely protect against this if you have such code in ceph client (kcalloc has simple example defense). thanks, -chris -- 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/