• Eric Dumazet's avatar
    ipv4: fix redirect handling · 9cc20b26
    Eric Dumazet authored
    commit f39925db (ipv4: Cache learned redirect information in
    inetpeer.) introduced a regression in ICMP redirect handling.
    
    It assumed ipv4_dst_check() would be called because all possible routes
    were attached to the inetpeer we modify in ip_rt_redirect(), but thats
    not true.
    
    commit 7cc9150e (route: fix ICMP redirect validation) tried to fix
    this but solution was not complete. (It fixed only one route)
    
    So we must lookup existing routes (including different TOS values) and
    call check_peer_redir() on them.
    Reported-by: default avatarIvan Zahariev <famzah@icdsoft.com>
    Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
    CC: Flavio Leitner <fbl@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9cc20b26
route.c 82.9 KB