summaryrefslogtreecommitdiff
path: root/LICENSES
diff options
context:
space:
mode:
authorMatteo Croce <mcroce@redhat.com>2019-07-01 20:01:55 +0300
committerDavid S. Miller <davem@davemloft.net>2019-07-01 21:31:38 +0300
commit2e60546368165c2449564d71f6005dda9205b5fb (patch)
treee1f5449e770ac26eae92eef2b752e1f5fcb47794 /LICENSES
parent88405680ec57c35f5886dbb81b3f6f638f74f40d (diff)
downloadlinux-2e60546368165c2449564d71f6005dda9205b5fb.tar.xz
ipv4: don't set IPv6 only flags to IPv4 addresses
Avoid the situation where an IPV6 only flag is applied to an IPv4 address: # ip addr add 192.0.2.1/24 dev dummy0 nodad home mngtmpaddr noprefixroute # ip -4 addr show dev dummy0 2: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 inet 192.0.2.1/24 scope global noprefixroute dummy0 valid_lft forever preferred_lft forever Or worse, by sending a malicious netlink command: # ip -4 addr show dev dummy0 2: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 inet 192.0.2.1/24 scope global nodad optimistic dadfailed home tentative mngtmpaddr noprefixroute stable-privacy dummy0 valid_lft forever preferred_lft forever Signed-off-by: Matteo Croce <mcroce@redhat.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions