Re: [PATCH net-next v2] net: sched: act_tunnel_key: fix metadata handling

2019-02-27 Thread David Miller
From: Vlad Buslov Date: Mon, 25 Feb 2019 17:30:14 +0200 > Tunnel key action params->tcft_enc_metadata is only set when action is > TCA_TUNNEL_KEY_ACT_SET. However, metadata pointer is incorrectly > dereferenced during tunnel key init and release without verifying that > action is if correct type,

Re: [PATCH net-next v2] net: sched: act_tunnel_key: fix metadata handling

2019-02-27 Thread Roi Dayan
On 25/02/2019 17:30, Vlad Buslov wrote: > Tunnel key action params->tcft_enc_metadata is only set when action is > TCA_TUNNEL_KEY_ACT_SET. However, metadata pointer is incorrectly > dereferenced during tunnel key init and release without verifying that > action is if correct type, which causes NU

[PATCH net-next v2] net: sched: act_tunnel_key: fix metadata handling

2019-02-25 Thread Vlad Buslov
Tunnel key action params->tcft_enc_metadata is only set when action is TCA_TUNNEL_KEY_ACT_SET. However, metadata pointer is incorrectly dereferenced during tunnel key init and release without verifying that action is if correct type, which causes NULL pointer dereference. Metadata tunnel dst_cache