| e492ad08 | 30-May-2026 |
Olivier Cochard <olivier@FreeBSD.org> |
netlink/route: extend pre-2.6.19 Linux compat shim to del/getroute
Commit f34aca55adef ("netlink/route: provide pre-2.6.19 Linux compat shim", 2024-06) fixed the partial fix for net/bird2 on the net
netlink/route: extend pre-2.6.19 Linux compat shim to del/getroute
Commit f34aca55adef ("netlink/route: provide pre-2.6.19 Linux compat shim", 2024-06) fixed the partial fix for net/bird2 on the netlink path by mapping the legacy 8-bit struct rtmsg::rtm_table field onto the modern 32-bit RTA_TABLE attribute when the latter is absent.
That fix, however, was only applied to rtnl_handle_newroute. The two sibling handlers: rtnl_handle_delroute and rtnl_handle_getroute were left looking at attrs.rta_table directly. They are reachable from exactly the same client (bird, in its netlink scan path), so any FIB number that fits in 8 bits silently maps to RT_TABLE_UNSPEC in those handlers.
Reviewed by: melifaro (previous version) Approved by: emaste MFC after: 1 week Sponsored by: Netflix
show more ...
|
| 4d125ed6 | 22-May-2026 |
Ed Maste <emaste@FreeBSD.org> |
netlink: Avoid potential undefined behaviour
Taking the address of an OOB array element is UB, even if not dereferenced.
Reviewed by: des, bz Sponsored by: The FreeBSD Foundation Differential Revis
netlink: Avoid potential undefined behaviour
Taking the address of an OOB array element is UB, even if not dereferenced.
Reviewed by: des, bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57172
show more ...
|
| 1a4ad649 | 22-May-2026 |
Ed Maste <emaste@FreeBSD.org> |
netlink: Avoid undefined behaviour
Even though it is not dereferenced, it is UB to take the address of an out of bounds array element.
Reviewed by: pouria, bz, des, adrian Sponsored by: The FreeBSD
netlink: Avoid undefined behaviour
Even though it is not dereferenced, it is UB to take the address of an out of bounds array element.
Reviewed by: pouria, bz, des, adrian Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57158
show more ...
|
| e924a2c8 | 20-May-2026 |
Gleb Smirnoff <glebius@FreeBSD.org> |
netlink: fix unsigned overflow on a truncated message
PR: 295106 Submitted by: Robert Morris <rtm@lcs.mit.edu> Reviewed by: pouria, melifaro Differential Revision: https://reviews.freebsd.org/D5
netlink: fix unsigned overflow on a truncated message
PR: 295106 Submitted by: Robert Morris <rtm@lcs.mit.edu> Reviewed by: pouria, melifaro Differential Revision: https://reviews.freebsd.org/D56916
show more ...
|