Re: [PATCH 3/5] net/netfilter/ipvs/ip_vs_ctl.c: drop argument range chec

To: Julian Anastasov <ja@xxxxxx>
Subject: Re: [PATCH 3/5] net/netfilter/ipvs/ip_vs_ctl.c: drop argument range check just before the check for equality
Cc: "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, kernel-janitors@xxxxxxxxxxxxxxx, coreteam@xxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, dcb314@xxxxxxxxxxx, David Miller <davem@xxxxxxxxxxxxx>, kadlec@xxxxxxxxxxxxxxxxx, Patrick McHardy <kaber@xxxxxxxxx>, pablo@xxxxxxxxxxxxx, Simon Horman <horms@xxxxxxxxxxxx>, wensong@xxxxxxxxxxxx
From: Andrey Utkin <andrey.krieger.utkin@xxxxxxxxx>
Date: Sun, 20 Jul 2014 02:03:21 +0300
2014-07-20 1:59 GMT+03:00 Andrey Utkin <andrey.krieger.utkin@xxxxxxxxx>:
> This approach doesn't work, looks because sizeof() values are not
> calculated at preprocessing stage.

What about adding equivalent BUG_ON() statement to __init
ip_vs_register_nl_ioctl(), which "registers" do_ip_vs_set_ctl()

Andrey Utkin
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

<Prev in Thread] Current Thread [Next in Thread>