Revision 9cc20b268a5a14f5e57b8ad405a83513ab0d78dc authored by Eric Dumazet on 18 November 2011, 20:24:32 UTC, committed by David S. Miller on 18 November 2011, 20:24:32 UTC
commit f39925dbde77 (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 7cc9150ebe (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: Ivan Zahariev <famzah@icdsoft.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fb120c0
History
File Mode Size
Kconfig -rw-r--r-- 1.2 KB
Makefile -rw-r--r-- 240 bytes
alloc.c -rw-r--r-- 21.2 KB
alloc.h -rw-r--r-- 3.5 KB
bmap.c -rw-r--r-- 14.4 KB
bmap.h -rw-r--r-- 7.9 KB
btnode.c -rw-r--r-- 7.7 KB
btnode.h -rw-r--r-- 1.8 KB
btree.c -rw-r--r-- 60.0 KB
btree.h -rw-r--r-- 2.7 KB
cpfile.c -rw-r--r-- 24.9 KB
cpfile.h -rw-r--r-- 1.7 KB
dat.c -rw-r--r-- 13.1 KB
dat.h -rw-r--r-- 2.3 KB
dir.c -rw-r--r-- 17.4 KB
direct.c -rw-r--r-- 8.9 KB
direct.h -rw-r--r-- 1.5 KB
export.h -rw-r--r-- 253 bytes
file.c -rw-r--r-- 4.4 KB
gcinode.c -rw-r--r-- 5.6 KB
ifile.c -rw-r--r-- 5.2 KB
ifile.h -rw-r--r-- 1.8 KB
inode.c -rw-r--r-- 28.1 KB
ioctl.c -rw-r--r-- 20.7 KB
mdt.c -rw-r--r-- 14.4 KB
mdt.h -rw-r--r-- 3.8 KB
namei.c -rw-r--r-- 13.3 KB
nilfs.h -rw-r--r-- 11.1 KB
page.c -rw-r--r-- 13.7 KB
page.h -rw-r--r-- 2.6 KB
recovery.c -rw-r--r-- 24.4 KB
segbuf.c -rw-r--r-- 13.8 KB
segbuf.h -rw-r--r-- 6.2 KB
segment.c -rw-r--r-- 71.0 KB
segment.h -rw-r--r-- 8.1 KB
sufile.c -rw-r--r-- 24.7 KB
sufile.h -rw-r--r-- 4.8 KB
super.c -rw-r--r-- 35.7 KB
the_nilfs.c -rw-r--r-- 20.3 KB
the_nilfs.h -rw-r--r-- 10.8 KB

back to top