[lustre-devel] [bug report] staging: add Lustre file system client support

Dan Carpenter dan.carpenter at oracle.com
Tue Dec 6 10:37:39 PST 2016


On Tue, Dec 06, 2016 at 10:44:54AM -0500, Oleg Drokin wrote:
> I see, indeed, it all makes sense now.
> So basically if we unconditionally check for the size to be > 0, we should be
> fine then, I imagine.
> On the other hand there's probably no se for no param and nonzero param len,
> so it's probably even better to enforce size as zero when no param.

Checking for > 0 is not enough, because it could also have an integer
overflow on 32 bit systems.  We need to cap the upper bound as well.

regards,
dan carpenter



More information about the lustre-devel mailing list