diff options
| author | Steffen Klassert <[email protected]> | 2013-10-30 10:16:28 +0000 |
|---|---|---|
| committer | Steffen Klassert <[email protected]> | 2013-11-01 06:08:46 +0000 |
| commit | 84502b5ef9849a9694673b15c31bd3ac693010ae (patch) | |
| tree | 5c9ac913180be97c15453a4e79384f18fae50410 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | xfrm: Increase the garbage collector threshold (diff) | |
| download | kernel-84502b5ef9849a9694673b15c31bd3ac693010ae.tar.gz kernel-84502b5ef9849a9694673b15c31bd3ac693010ae.zip | |
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 <[email protected]>
Tested-by: Meelis Roos <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
