From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Date: Thu, 17 Jul 2014 13:50:45 +0300 > If "newmtu * 2 + 4" is too large then it can cause an integer overflow > leading to memory corruption. Eric Dumazet suggests that 65534 is a > reasonable upper limit. > > Btw, "newmtu" is not allowed to be a negative number because of the > check in dev_set_mtu(), so that's ok. > > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > v2: Cap it at 65534 instead of just testing for integer overflows. > Thanks David and Eric! Applied. -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html