zephyr/tests/net
Chaitanya Tata 40ee8791f2 net: socketpair: Fix use after free
In low memory conditions, its possible for socketpair memory allocation
to fail and then the socketpair is freed but after that the remote
semaphore is released causing a crash.

Fix this by freeing the socketpair after releasing the semaphore. Add a
test case to induce low memory conditions (low HEAP and high socketpair
buffer size), with the fix issue is not seen.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2023-09-18 20:34:12 +02:00
..
6lo samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
all net: l2: ieee802154: deprecate NET_L2_IEEE802154_ACK_REPLY 2023-06-17 16:20:21 -04:00
arp tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
bridge samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
buf tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
buf_simple samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
checksum_offload samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
conn_mgr_conn net: conn_mgr: Rename connectivity monitor 2023-08-29 16:13:37 +02:00
conn_mgr_monitor tests: net: conn_mgr_monitor: increase stack size 2023-09-06 09:32:36 +02:00
context samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
dhcpv4 test: DHCPv4: Add test for option callbacks 2023-05-22 15:25:40 +02:00
ethernet_mgmt samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
hostname samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
icmpv4 tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
icmpv6 samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
ieee802154 tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
iface tests: net: iface: Add unit test for interface name support 2023-08-31 14:43:36 +02:00
igmp tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
ip-addr samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
ipv4_fragment tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
ipv6 tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
ipv6_fragment samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
lib tests: mqtt: disable debug log level 2023-09-12 10:56:35 +02:00
mgmt samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
mld tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
mocks test: net: buf_simple: Add unit tests for simple buffers 2023-03-15 10:50:16 +01:00
neighbor samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
net_pkt
npf tests: net: pkt_filter: Add TCs for new hooks 2023-07-10 09:27:47 +02:00
offloaded_netdev samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
pm samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
ppp/driver tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
promiscuous samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
ptp/clock samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
route tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
route_mcast samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
shell tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
socket net: socketpair: Fix use after free 2023-09-18 20:34:12 +02:00
tcp tests: net: tcp: Add test case for SYN/RST+ACK scenario 2023-09-07 11:41:52 +02:00
traffic_class samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
trickle samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
tx_timestamp samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
udp tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
utils samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
virtual samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
vlan samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
wifi/wifi_nm tests: wifi: Add Wi-Fi test suite 2023-07-11 14:55:30 +02:00