openvswitch: change type of UPCALL_PID attribute to NLA_UNSPEC
authorLi RongQing <lirongqing@baidu.com>
Tue, 24 Sep 2019 11:11:52 +0000 (19:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Sep 2019 07:32:33 +0000 (09:32 +0200)
commitea8564c865299815095bebeb4b25bef474218e4c
tree2bc2ce40f2e70c4673bfb5ebcc700c2903c5e351
parentc1d419d00494487b8401b2ac38d7e8e2a4977d9e
openvswitch: change type of UPCALL_PID attribute to NLA_UNSPEC

userspace openvswitch patch "(dpif-linux: Implement the API
functions to allow multiple handler threads read upcall)"
changes its type from U32 to UNSPEC, but leave the kernel
unchanged

and after kernel 6e237d099fac "(netlink: Relax attr validation
for fixed length types)", this bug is exposed by the below
warning

[   57.215841] netlink: 'ovs-vswitchd': attribute type 5 has an invalid length.

Fixes: 5cd667b0a456 ("openvswitch: Allow each vport to have an array of 'port_id's")
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c