Re: [PATCH 00/20] ceph: Ceph distributed file system client v0.10

From: Chris Wright
Date: Fri Jul 17 2009 - 21:28:40 EST


* Sage Weil (sage@xxxxxxxxxxxx) 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/