https://github.com/torvalds/linux
Revision 48d5cad87c3a4998d0bda16ccfb5c60dfe4de5fb authored by Patrick McHardy on 15 February 2006, 23:10:22 UTC, committed by David S. Miller on 15 February 2006, 23:10:22 UTC
When a packet matching an IPsec policy is SNATed so it doesn't match any
policy anymore it looses its xfrm bundle, which makes xfrm4_output_finish
crash because of a NULL pointer dereference.

This patch directs these packets to the original output path instead. Since
the packets have already passed the POST_ROUTING hook, but need to start at
the beginning of the original output path which includes another
POST_ROUTING invocation, a flag is added to the IPCB to indicate that the
packet was rerouted and doesn't need to pass the POST_ROUTING hook again.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5ecfbae
History
Tip revision: 48d5cad87c3a4998d0bda16ccfb5c60dfe4de5fb authored by Patrick McHardy on 15 February 2006, 23:10:22 UTC
[XFRM]: Fix SNAT-related crash in xfrm4_output_finish
Tip revision: 48d5cad
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 424 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.5 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 66.3 KB
Makefile -rw-r--r-- 43.8 KB
README -rw-r--r-- 15.1 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top