net: openvswitch: add missing .resv_start_op
authorJakub Kicinski <kuba@kernel.org>
Fri, 28 Oct 2022 03:25:01 +0000 (20:25 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Oct 2022 03:19:53 +0000 (20:19 -0700)
I missed one of the families in OvS when annotating .resv_start_op.
This triggers the warning added in commit ce48ebdd5651 ("genetlink:
limit the use of validation workarounds to old ops").

Reported-by: syzbot+40eb8c0447c0e47a7e9b@syzkaller.appspotmail.com
Fixes: 9c5d03d36251 ("genetlink: start to validate reserved header bytes")
Link: https://lore.kernel.org/r/20221028032501.2724270-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/openvswitch/datapath.c

index 155263e..8b84869 100644 (file)
@@ -2544,6 +2544,7 @@ struct genl_family dp_vport_genl_family __ro_after_init = {
        .parallel_ops = true,
        .small_ops = dp_vport_genl_ops,
        .n_small_ops = ARRAY_SIZE(dp_vport_genl_ops),
+       .resv_start_op = OVS_VPORT_CMD_SET + 1,
        .mcgrps = &ovs_dp_vport_multicast_group,
        .n_mcgrps = 1,
        .module = THIS_MODULE,