Files
linux/drivers
Dan Carpenter ee2104ea86 staging/bcm: integer underflow leads to Oom
We do:

        if (NOB > DEFAULT_BUFF_SIZE)
                BuffSize = DEFAULT_BUFF_SIZE;
        else
                BuffSize = NOB;

Since NOB can be negative it results in a larger than intended BuffSize
and makes kzalloc() fail.

The code is still a bit crap because it lets the users read as much as
they want from nvram, but I don't know what a sensible upper limit
should be.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-18 11:18:10 -08:00
..
2014-02-14 10:40:47 +01:00
2014-01-12 23:48:18 +01:00
2014-01-15 14:51:22 -08:00
2014-02-13 11:12:00 -08:00
2014-02-17 14:45:02 -08:00