Re: [PATCH v2] bonding: correctly handle out of range parameters for lp_interval

From: David Miller
Date: Thu Mar 06 2014 - 17:07:15 EST


From: Sasha Levin <sasha.levin@xxxxxxxxxx>
Date: Thu, 6 Mar 2014 16:53:11 -0500

> We didn't correctly check cases where the value for lp_interval is not
> within the legal range due to a missing table terminator.
>
> This would let userspace trigger a kernel panic by specifying a value out
> of range:
>
> echo -1 > /sys/devices/virtual/net/bond0/bonding/lp_interval
>
> Introduced by commit 4325b374f84 ("bonding: convert lp_interval to use
> the new option API").
>
> Acked-by: Nikolay Aleksandrov <nikolay@xxxxxxxxxx>
> Signed-off-by: Sasha Levin <sasha.levin@xxxxxxxxxx>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/