Skip to content

Commit e0e1b6d

Browse files
Asbjørn Sloth Tønnesenzx2c4
authored andcommitted
wireguard: netlink: enable strict genetlink validation
WireGuard is a modern enough genetlink family, that it doesn't need resv_start_op. It already had policies in place when it was first merged, it has also never used the reserved field, or other things toggled by resv_start_op. wireguard-tools have always used zero initialized memory, and have never touched the reserved field, neither have any other clients I have checked. Closed-source clients are much more likely to use the embeddedable library from wireguard-tools, than a DIY implementation using uninitialized memory. Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 parent 0177f0f commit e0e1b6d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/net/wireguard/netlink.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,6 @@ static const struct genl_ops genl_ops[] = {
631631
static struct genl_family genl_family __ro_after_init = {
632632
.ops = genl_ops,
633633
.n_ops = ARRAY_SIZE(genl_ops),
634-
.resv_start_op = WG_CMD_SET_DEVICE + 1,
635634
.name = WG_GENL_NAME,
636635
.version = WG_GENL_VERSION,
637636
.maxattr = WGDEVICE_A_MAX,

0 commit comments

Comments
 (0)