[PATCH net] wireguard: device: provide sane limits for mtu setting

Jason A. Donenfeld Jason at zx2c4.com
Fri Feb 14 10:11:34 CET 2020


Hi Eric,

On 2/14/20, Eric Dumazet <edumazet at google.com> wrote:
> If wireguard device mtu is set to zero, a divide by zero
> crash happens in calculate_skb_padding().
>
> This patch provides dev->min_mtu and dev->max_mtu bounds.

Thanks for the patch. However, I solved this slightly differently
yesterday afternoon already:
https://git.zx2c4.com/wireguard-linux/commit/?h=stable&id=06e79ab0d545a20dec1b179fa26841eb0afb1f07
. I've got some additional testing of this to do this afternoon, and
then I'll submit it to the list.

Jason


More information about the WireGuard mailing list