diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2015-10-23 07:31:23 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2015-10-23 07:31:23 +0200 |
commit | 1a14f1e5550a341f76e5c8f596e9b5f8a886dfbc (patch) | |
tree | 51d56a04d8d955f1eb661d239f4ec01f226b0ae5 /init | |
parent | xfrm: Fix unaligned access to stats in copy_to_user_state() (diff) | |
download | linux-1a14f1e5550a341f76e5c8f596e9b5f8a886dfbc.tar.xz linux-1a14f1e5550a341f76e5c8f596e9b5f8a886dfbc.zip |
xfrm4: Fix header checks in _decode_session4.
We skip the header informations if the data pointer points
already behind the header in question for some protocols.
This is because we call pskb_may_pull with a negative value
converted to unsigened int from pskb_may_pull in this case.
Skipping the header informations can lead to incorrect policy
lookups, so fix it by a check of the data pointer position
before we call pskb_may_pull.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions