Commit d1076871 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

zdtm/netns-dev: restrict hop_limit sysctl setting to range [1;255]

$ git log v4.4-rc1-465-gd6df198
commit d6df198d924775e4751561cf60ef0294e95f74df
Author: Phil Sutter <phil@nwl.cc>
Date:   Tue Dec 1 22:45:15 2015 +0100

    net: ipv6: restrict hop_limit sysctl setting to range [1; 255]

    Setting a value bigger than 255 resulted in using only the lower eight
    bits of that value as it is assigned to the u8 header field. To avoid
    this unexpected result, reject such values.

https://github.com/xemul/criu/issues/164Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent dc21641b
......@@ -156,7 +156,7 @@ struct range rand_range6[] = {
{0, 2}, /* force_mld_version */
{0, 1}, /* force_tllao */
{0, 1}, /* forwarding */
{0, INT_MAX}, /* hop_limit */
{0, 255}, /* hop_limit */
{0, 1}, /* ignore_routes_with_linkdown */
{-1, 1}, /* keep_addr_on_down */
{0, MAX_ADDRESSES}, /* max_addresses */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment