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_private.h
6lo.c
6lo.h
canbus_socket.c
canbus_socket.h
CMakeLists.txt
connection.c
connection.h
icmp.c net: icmp: Add a way to send ICMP Echo-Req without waiting 2024-12-19 15:18:33 +01:00
icmpv4.c
icmpv4.h
icmpv6.c
icmpv6.h
igmp.c
igmp.h
ipv4_acd.c
ipv4_autoconf.c
ipv4_fragment.c net: Set the protocol type of fragmented packet 2025-01-21 19:29:55 +01:00
ipv4.c net: ipv4: Do not change the protocol type when sending 2025-01-21 19:29:55 +01:00
ipv4.h
ipv6_fragment.c net: Set the protocol type of fragmented packet 2025-01-21 19:29:55 +01:00
ipv6_mld.c
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
ipv6.c net: ethernet: Set the ptype by the caller in send 2025-01-16 22:37:28 +01:00
ipv6.h
iterables_net_pkt_alloc_stats.ld
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
Kconfig.mgmt
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
nbr.h
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_if.c net: support configuring offloaded network device as default interface 2025-01-08 19:11:15 +01:00
net_mgmt.c
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_tc_mapping.h
net_tc.c
net_timeout.c
packet_socket.c
packet_socket.h
pmtu.c
pmtu.h
promiscuous.c
route.c
route.h
tcp_internal.h
tcp_private.h
tcp.c
tcp.h
tp_priv.h
tp.c
tp.h
udp_internal.h
udp.c
utils.c