[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140717.164853.1912480906913796691.davem@davemloft.net>
Date: Thu, 17 Jul 2014 16:48:53 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: teg@...m.no, dh.herrmann@...il.com, netdev@...r.kernel.org,
eric.dumazet@...il.com, David.Laight@...LAB.COM,
kernel-janitors@...r.kernel.org
Subject: Re: [patch v2] wan/x25_asy: integer overflow in
x25_asy_change_mtu()
From: Dan Carpenter <dan.carpenter@...cle.com>
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@...cle.com>
> ---
> 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 netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists