Messages in this thread | | | Date | Fri, 17 Jul 2009 18:28:19 -0700 | From | Chris Wright <> | Subject | Re: [PATCH 00/20] ceph: Ceph distributed file system client v0.10 |
| |
* 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
| |