mbox series

[v2,0/5] net: ipv6/addrconf: ensure that temporary addresses' preferred lifetimes are in the valid range

Message ID 20230829054623.104293-1-alexhenrie24@gmail.com (mailing list archive)
Headers show
Series net: ipv6/addrconf: ensure that temporary addresses' preferred lifetimes are in the valid range | expand

Message

Alex Henrie Aug. 29, 2023, 5:44 a.m. UTC
Changes from v1:
- Split into multiple patches
- Add "Fixes" lines to the commit messages
- Use long instead of __s64
- Ensure that the valid lifetime is not shorter than the required lifetime
- Ensure that the preferred lifetime is not longer than the valid lifetime
- Update the documentation

Thanks to David, Jiri, and Paolo for your feedback.

Alex Henrie (5):
  net: ipv6/addrconf: avoid integer underflow in ipv6_create_tempaddr
  net: ipv6/addrconf: clamp preferred_lft to the maximum allowed
  net: ipv6/addrconf: clamp preferred_lft to the minimum required
  Documentation: networking: explain what happens if temp_valid_lft is
    too small
  Documentation: networking: explain what happens if temp_prefered_lft
    is too small or too large

 Documentation/networking/ip-sysctl.rst | 10 ++++++++--
 net/ipv6/addrconf.c                    | 21 +++++++++++++++------
 2 files changed, 23 insertions(+), 8 deletions(-)