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.
Showing the changes to net/openvswitch (1 of 1 file). Show all
Unified · Split
| @@ -2294,7 +2294,7 @@ static const struct nla_policy vport_policy[OVS_VPORT_ATTR_MAX + 1] = { · 2293 unmodified lines | |||
| 2294 | [OVS_VPORT_ATTR_STATS] = { .len = sizeof(struct ovs_vport_stats) }, | 2294 | [OVS_VPORT_ATTR_STATS] = { .len = sizeof(struct ovs_vport_stats) }, |
| 2295 | [OVS_VPORT_ATTR_PORT_NO] = { .type = NLA_U32 }, | 2295 | [OVS_VPORT_ATTR_PORT_NO] = { .type = NLA_U32 }, |
| 2296 | [OVS_VPORT_ATTR_TYPE] = { .type = NLA_U32 }, | 2296 | [OVS_VPORT_ATTR_TYPE] = { .type = NLA_U32 }, |
| 2297 | [OVS_VPORT_ATTR_UPCALL_PID] = { .type = NLA_U32 }, | 2297 | [OVS_VPORT_ATTR_UPCALL_PID] = { .type = NLA_UNSPEC }, |
| 2298 | [OVS_VPORT_ATTR_OPTIONS] = { .type = NLA_NESTED }, | 2298 | [OVS_VPORT_ATTR_OPTIONS] = { .type = NLA_NESTED }, |
| 2299 | [OVS_VPORT_ATTR_IFINDEX] = { .type = NLA_U32 }, | 2299 | [OVS_VPORT_ATTR_IFINDEX] = { .type = NLA_U32 }, |
| 2300 | [OVS_VPORT_ATTR_NETNSID] = { .type = NLA_S32 }, | 2300 | [OVS_VPORT_ATTR_NETNSID] = { .type = NLA_S32 }, |