Thread (4 messages) flat view 4 messages, 2 authors, 2018-01-09

Re: xfrm: Return error on unknown switch in init_state

From: Steffen Klassert <steffen.klassert@secunet.com>
Date: 2018-01-05 08:32:49

On Thu, Jan 04, 2018 at 10:21:04PM +1100, Herbert Xu wrote:
Currently esp will happily create an xfrm state with an unknown
encap type for IPv4 or an unknown mode for IPv6, without setting
the necessary state parameters.  This patch fixes it by returning
-EINVAL.
Looks like we catch the unknown mode in __xfrm_init_state().
But in any case, if we want to return -EINVAL on unknown mode,
we should do it for IPv6 and for IPv4.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help