summaryrefslogtreecommitdiffstats
path: root/init/do_mounts.h
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2013-10-30 11:16:28 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2013-11-01 07:08:46 +0100
commit84502b5ef9849a9694673b15c31bd3ac693010ae (patch)
tree5c9ac913180be97c15453a4e79384f18fae50410 /init/do_mounts.h
parenteeb1b73378b560e00ff1da2ef09fed9254f4e128 (diff)
downloadop-kernel-dev-84502b5ef9849a9694673b15c31bd3ac693010ae.zip
op-kernel-dev-84502b5ef9849a9694673b15c31bd3ac693010ae.tar.gz
xfrm: Fix null pointer dereference when decoding sessions
On some codepaths the skb does not have a dst entry when xfrm_decode_session() is called. So check for a valid skb_dst() before dereferencing the device interface index. We use 0 as the device index if there is no valid skb_dst(), or at reverse decoding we use skb_iif as device interface index. Bug was introduced with git commit bafd4bd4dc ("xfrm: Decode sessions with output interface."). Reported-by: Meelis Roos <mroos@linux.ee> Tested-by: Meelis Roos <mroos@linux.ee> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'init/do_mounts.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud