Re: [PATCH net] openvswitch: fix skb_panic due to the incorrect actions attrlen

2017-08-14 Thread Liping Zhang
2017-08-15 13:01 GMT+08:00 Pravin Shelar : [...] >> net/openvswitch/actions.c | 39 +-- >> net/openvswitch/datapath.c | 2 +- >> net/openvswitch/datapath.h | 1 + >> 3 files changed, 27 insertions(+), 15 deletions(-) >> >> diff --git a/net/openvswitch/actions

Re: [PATCH net] openvswitch: fix skb_panic due to the incorrect actions attrlen

2017-08-14 Thread Pravin Shelar
On Sun, Aug 13, 2017 at 12:04 AM, Liping Zhang wrote: > From: Liping Zhang > > For sw_flow_actions, the actions_len only represents the kernel part's > size, and when we dump the actions to the userspace, we will do the > convertions, so it's true size may become bigger than the actions_len. > >

[PATCH net] openvswitch: fix skb_panic due to the incorrect actions attrlen

2017-08-13 Thread Liping Zhang
From: Liping Zhang For sw_flow_actions, the actions_len only represents the kernel part's size, and when we dump the actions to the userspace, we will do the convertions, so it's true size may become bigger than the actions_len. But unfortunately, for OVS_PACKET_ATTR_ACTIONS, we use the actions_