[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090718012819.GE8150@sequoia.sous-sol.org>
Date: Fri, 17 Jul 2009 18:28:19 -0700
From: Chris Wright <chrisw@...s-sol.org>
To: Sage Weil <sage@...dream.net>
Cc: Andi Kleen <andi@...stfloor.org>, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 00/20] ceph: Ceph distributed file system client v0.10
* Sage Weil (sage@...dream.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@...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