zephyr/subsys/net/ip
Robert Lubos ea191bddaf net: pkt: Fix fixed buffer allocation with headroom bug
The size calculation for the first buffer, in case extra headroom is
requested, had a bug which could result in a size variable underflow
followed by net_buf exhaustion.

In case the net_buf size was larger than requested size, but smaller
than requested size + headroom, the whole buffer size was subtracted
from the requested size. This however did not take the extra headroom
into account and in effect could result in underflow.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-01-23 16:31:03 +01:00
..
6lo.c net: ip: 6lo: Fix corner case with packet format after IPHC 2023-02-19 20:33:36 -05:00
6lo.h
6lo_private.h
canbus_socket.c
canbus_socket.h
CMakeLists.txt net: ip: pmtu: Add generic IP PMTU Discovery support 2024-11-18 07:26:07 -05:00
connection.c net: ip: fix typo 2024-06-25 21:19:00 -04:00
connection.h everywhere: replace double words 2024-06-22 05:40:22 -04:00
icmp.c net: icmp: Add a way to send ICMP Echo-Req without waiting 2024-12-19 15:18:33 +01:00
icmpv4.c net: ipv4: Add PMTU support 2024-11-18 07:26:07 -05:00
icmpv4.h net: ipv4: Add PMTU support 2024-11-18 07:26:07 -05:00
icmpv6.c net: Support partial checksum offloading 2024-06-14 17:10:43 -04:00
icmpv6.h net: ipv6: Add PMTU support 2024-11-18 07:26:07 -05:00
igmp.c net: ip: igmp: Add igmp.h for definitions 2024-10-17 09:44:33 +02:00
igmp.h net: ip: igmp: Add igmp.h for definitions 2024-10-17 09:44:33 +02:00
ipv4.c net: ipv4: Do not change the protocol type when sending 2025-01-21 19:29:55 +01:00
ipv4.h net: ipv4: Add PMTU support 2024-11-18 07:26:07 -05:00
ipv4_acd.c net: ipv4: Fix ARP probe check in address conflict detection 2024-10-29 07:07:59 -05:00
ipv4_autoconf.c net: ipv4: autoconf: Integrate with the ACD module 2024-06-10 00:59:28 -07:00
ipv4_fragment.c net: Set the protocol type of fragmented packet 2025-01-21 19:29:55 +01:00
ipv6.c net: ethernet: Set the ptype by the caller in send 2025-01-16 22:37:28 +01:00
ipv6.h net: ipv6: Make Multicast Listener Discovery API public 2024-10-08 17:00:06 +02:00
ipv6_fragment.c net: Set the protocol type of fragmented packet 2025-01-21 19:29:55 +01:00
ipv6_mld.c net: ipv6: Make Multicast Listener Discovery API public 2024-10-08 17:00:06 +02:00
ipv6_nbr.c net: ipv6: Do not set ptype when preparing for sending 2025-01-21 19:29:55 +01:00
ipv6_pe.c net: ipv6_pe: Check return value from mbedtls_md_setup 2024-11-28 15:42:08 +00:00
iterables_net_pkt_alloc_stats.ld net: pkt: Collect net_pkt allocation statistics 2024-10-22 20:38:57 +02:00
Kconfig net: support configuring offloaded network device as default interface 2025-01-08 19:11:15 +01:00
Kconfig.debug
Kconfig.ipv4 net: ipv4: Specify default netmask for IPv4 addresses registered 2024-11-29 11:44:39 +01:00
Kconfig.ipv6 net: ip: pmtu: Add generic IP PMTU Discovery support 2024-11-18 07:26:07 -05:00
Kconfig.mgmt net: Increase net_mgmt task priority 2024-10-25 13:53:49 +02:00
Kconfig.stack
Kconfig.stats net: stats: Add prometheus support 2024-11-26 15:42:40 -05:00
Kconfig.tcp net: Remove deprecated CONFIG_NET_TCP_ACK_TIMEOUT option 2024-12-11 21:32:02 +01:00
nbr.c net/ip: Removing useless extra data capability in neighbors 2024-03-01 15:33:53 +01:00
nbr.h net/ip: Removing useless extra data capability in neighbors 2024-03-01 15:33:53 +01:00
net_context.c net: ethernet: Set the ptype by the caller in send 2025-01-16 22:37:28 +01:00
net_core.c net: ip: pmtu: Add generic IP PMTU Discovery support 2024-11-18 07:26:07 -05:00
net_if.c net: support configuring offloaded network device as default interface 2025-01-08 19:11:15 +01:00
net_mgmt.c net: Increase net_mgmt task priority 2024-10-25 13:53:49 +02:00
net_pkt.c net: pkt: Fix fixed buffer allocation with headroom bug 2025-01-23 16:31:03 +01:00
net_private.h net: Extend the protocol handling in Ethernet 2025-01-20 09:21:32 +01:00
net_stats.c net: stats: Add prometheus support 2024-11-26 15:42:40 -05:00
net_stats.h net: stats: ipv4: pmtu: Add Path MTU Discovery statistics 2024-11-18 07:26:07 -05:00
net_tc.c net: ip: Allow traffic class thread priority customization 2024-02-26 12:11:19 +01:00
net_tc_mapping.h
net_timeout.c everywhere: replace double words 2024-06-22 05:40:22 -04:00
packet_socket.c all: Fix "#if IS_ENABLED(CONFIG_FOO)" occurrences 2022-12-21 10:09:23 +01:00
packet_socket.h
pmtu.c net: pmtu: Send net_mgmt event for changed path MTU 2024-11-18 07:26:07 -05:00
pmtu.h net: ip: pmtu: Add generic IP PMTU Discovery support 2024-11-18 07:26:07 -05:00
promiscuous.c
route.c net: ipv6: route: get nexthop's LL address only if relevant 2024-08-08 15:37:32 +02:00
route.h net: ipv6: mcast_routing: hop limit handling 2024-06-13 05:44:30 -04:00
tcp.c tests: net: pmtu: Add IPv4 specific PMTU TCP tests 2024-11-18 07:26:07 -05:00
tcp.h net: tcp: Rework data queueing API 2023-11-21 08:46:45 +00:00
tcp_internal.h net: context: Add helpers for figuring out local endpoint address 2024-05-06 22:50:18 +01:00
tcp_private.h net: tcp: Keep track of recv window size change since last ACK 2024-07-31 12:56:52 +02:00
tp.c net: change controlling expressions in while to Boolean 2024-06-11 20:03:16 +03:00
tp.h all: Fix "#if IS_ENABLED(CONFIG_FOO)" occurrences 2022-12-21 10:09:23 +01:00
tp_priv.h net: change controlling expressions in while to Boolean 2024-06-11 20:03:16 +03:00
udp.c net: Support partial checksum offloading 2024-06-14 17:10:43 -04:00
udp_internal.h net: ip: Add option to force checksum calculation 2023-11-08 15:09:37 +00:00
utils.c net: utils: Port parsing failure in net_ipaddr_parse() 2024-11-16 13:51:27 -05:00