opnsense-src/sys/netlink
Gleb Smirnoff 6ed3486980 netlink: avoid underflow of groups bitset index
The subtraction is absolutely unnecessary and created an underflow with
926d2eadcb.  I don't see why it was useful before 926d2eadcb and even
before edf5608bfe.  The bitset addresses bits from zero to
NLP_MAX_GROUPS-1.  Note that check of user supplied argument for
NETLINK_ADD_MEMBERSHIP and NETLINK_DROP_MEMBERSHIP socket options is
already correct !(optval >= NLP_MAX_GROUPS).

Fixes:	926d2eadcb
2025-01-13 13:27:53 -08:00
..
route netlink: restore the ability to delete PINNED routes 2025-01-11 11:25:50 +03:00
ktest_netlink_message_writer.c netlink: use protocol specific receive buffer 2024-01-02 13:04:01 -08:00
ktest_netlink_message_writer.h netlink: use size_t through the allocation KPI 2024-12-03 12:04:27 -08:00
netlink.h netlink.h: Align macro declarations with tabs 2024-12-10 21:12:38 +03:00
netlink_bitset.h netlink: dump interface capabilities with other interface data. 2023-06-16 15:33:49 +00:00
netlink_ctl.h netlink: some refactoring of NETLINK_GENERIC layer 2025-01-10 20:59:29 -08:00
netlink_debug.h netlink: Wrap long lines 2024-07-14 14:29:15 -04:00
netlink_domain.c netlink: avoid underflow of groups bitset index 2025-01-13 13:27:53 -08:00
netlink_generic.c netlink: some refactoring of NETLINK_GENERIC layer 2025-01-10 20:59:29 -08:00
netlink_generic.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
netlink_glue.c netlink: augment group writer with priv(9) argument 2025-01-10 20:55:39 -08:00
netlink_io.c netlink: check buffer length fits into u_int 2024-12-03 12:04:22 -08:00
netlink_linux.h linux: make linux_netlink_p->msg_from_linux be able to fail 2024-03-29 13:35:51 -07:00
netlink_message_parser.c netlink: add bool type support 2024-02-28 23:26:18 +01:00
netlink_message_parser.h netlink: use nitems() and roundup(2) from param.h 2024-12-03 12:04:39 -08:00
netlink_message_writer.c netlink: augment group writer with priv(9) argument 2025-01-10 20:55:39 -08:00
netlink_message_writer.h netlink: augment group writer with priv(9) argument 2025-01-10 20:55:39 -08:00
netlink_module.c netlink: refactor writer initialization KPI 2024-12-03 12:04:18 -08:00
netlink_route.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
netlink_route.h netlink: dump interface capabilities with other interface data. 2023-06-16 15:33:49 +00:00
netlink_snl.h netlink: use nitems() and roundup(2) from param.h 2024-12-03 12:04:39 -08:00
netlink_snl_generic.h netlink: snl_create_genl_msg_request() may fail due to ENOMEM 2025-01-10 20:58:08 -08:00
netlink_snl_route.h netlink: Fix C++ compile errors 2024-05-24 22:31:42 -06:00
netlink_snl_route_compat.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
netlink_snl_route_parsers.h netlink: Fix C++ compile errors 2024-05-24 22:31:42 -06:00
netlink_sysevent.c netlink: augment group writer with priv(9) argument 2025-01-10 20:55:39 -08:00
netlink_sysevent.h nlsysevent: add default command to the events 2023-06-02 14:22:10 +02:00
netlink_var.h netlink: some refactoring of NETLINK_GENERIC layer 2025-01-10 20:59:29 -08:00