diff options
author | Andrea Claudi <[email protected]> | 2021-09-10 18:08:39 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <[email protected]> | 2021-09-14 00:57:28 +0200 |
commit | 69e73dbfda14fbfe748d3812da1244cce2928dcb (patch) | |
tree | f8b3a20280d8dbd5c4ea376ab1a12aa80dd81c93 /lib/test-string_helpers.c | |
parent | 7bbc3d385bd813077acaf0e6fdb2a86a901f5382 (diff) |
ipvs: check that ip_vs_conn_tab_bits is between 8 and 20
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 <[email protected]>
Signed-off-by: Andrea Claudi <[email protected]>
Acked-by: Julian Anastasov <[email protected]>
Acked-by: Simon Horman <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions