netconfig: RA route, SLAAC lifetime and DNS fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | netconfig: Allocate the expired listsell/ | +4 | 0 replies | |
| 2/6 | netconfig: Fix leak of RA route dataell/ | +13 | 0 replies | |
| 3/6 | netconfig: Expire RA routes never refreshedell/ | +8 | 0 replies | |
| 4/6 | netconfig: Fix the RFC 4862 2-hour ruleell/ | +8 | 0 replies | |
| 5/6 | netconfig: Skip duplicate DNS servers and domainsell/ | +34 | 0 replies | |
| 6/6 | icmp6: Fix RA leak when stopped from a handlerell/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] netconfig: RA route, SLAAC lifetime and DNS fixes
Hi,
I've been working on SLAAC + IPv6 (RA M+A mode) support for iwd and have identified a handful of bugs in l_netconfig's IPv6 handling.
Each was reproduced on 0.83 with an ASan build of ell and a small program running l_netconfig on a veth pair between two network namespaces, with a script sending RAs and dnsmasq for DHCPv6, and checked again with the patch applied.
1: routes and addresses were never put on the expired lists, as those
were never allocated.
2: 32 bytes leaked for every RA route withdrawn or expired. 3: an RA route that's not refreshed stays on the current list after the
kernel has removed it, and is reported as removed on unconfigure.
4: an RA cutting a prefix's valid lifetime to 60 seconds raised the
lifetime of an address with an hour left to 2 hours.
5: a DNS server in both the DHCPv6 lease and the RA's RDNSS option is
listed twice, so it's in resolv.conf twice.
6: 104 bytes leaked when the first RA can't be used and IPv6 fails.
AI was used to draft patches and commit messages, with all manually reviewed and tested on my dual-stack home network, and roaming on a ThinkPad with iwd (debian sid) and the mt7921e network driver.
Ryan Walklin (6):
netconfig: Allocate the expired lists
netconfig: Fix leak of RA route data
netconfig: Expire RA routes never refreshed
netconfig: Fix the RFC 4862 2-hour rule
netconfig: Skip duplicate DNS servers and domains
icmp6: Fix RA leak when stopped from a handler
ell/icmp6.c | 4 ++- ell/netconfig.c | 93 +++++++++++++++++++++++++++++++++++-------------- 2 files changed, 70 insertions(+), 27 deletions(-)
Signature · 1 line
2.55.0