diff options
author | Koichiro Den <den@klaipeden.com> | 2017-08-01 23:21:46 +0900 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-08-02 13:37:37 +0200 |
commit | 3f5a95ad6c6c05e6b00f0c20e30da66c986564d5 (patch) | |
tree | b455549c1a6116277a7aa50f5ea2b7e761cc54c9 /net/xfrm/xfrm_policy.c | |
parent | e6194923237f3952b955c343b65b211f36bce01c (diff) |
xfrm: fix null pointer dereference on state and tmpl sort
Creating sub policy that matches the same outer flow as main policy does
leads to a null pointer dereference if the outer mode's family is ipv4.
For userspace compatibility, this patch just eliminates the crash i.e.,
does not introduce any new sorting rule, which would fruitlessly affect
all but the aforementioned case.
Signed-off-by: Koichiro Den <den@klaipeden.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
0 files changed, 0 insertions, 0 deletions