On Fri, Sep 10, 2021 at 06:08:39PM +0200, Andrea Claudi wrote: > ip_vs_conn_tab_bits may be provided by the user through the > conn_tab_bits module parameter. If this value is greater than 31, or > less than 0, the shift operator used to derive tab_size causes undefined > behaviour. > > Fix this checking ip_vs_conn_tab_bits value to be in the range specified > in ipvs Kconfig. If not, simply use default value. > > Fixes: 6f7edb4881bf ("IPVS: Allow boot time change of hash size") > Reported-by: Yi Chen <yiche@xxxxxxxxxx> > Signed-off-by: Andrea Claudi <aclaudi@xxxxxxxxxx> Acked-by: Simon Horman <horms@xxxxxxxxxxxx>