diff options
author | Nikolay Aleksandrov <[email protected]> | 2021-12-27 19:21:15 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-12-29 12:59:37 -0800 |
commit | 99b40610956a8a8755653a67392e2a8b772453be (patch) | |
tree | 53c62e4e8b7202de4f28fc10af540f87de143ce1 /net/lapb/lapb_timer.c | |
parent | fb7bc9204095090731430c8921f9e629740c110a (diff) |
net: bridge: mcast: add and enforce query interval minimum
As reported[1] if query interval is set too low and we have multiple
bridges or even a single bridge with multiple querier vlans configured
we can crash the machine. Add a 1 second minimum which must be enforced
by overwriting the value if set lower (i.e. without returning an error) to
avoid breaking user-space. If that happens a log message is emitted to let
the administrator know that the interval has been set to the minimum.
The issue has been present since these intervals could be user-controlled.
[1] https://lore.kernel.org/netdev/[email protected]/
Fixes: d902eee43f19 ("bridge: Add multicast count/interval sysfs entries")
Reported-by: Eric Dumazet <[email protected]>
Signed-off-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions