zephyr/tests/net/socket
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
..
af_packet samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
af_packet_ipproto_raw samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
can samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
getaddrinfo samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
getnameinfo samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
misc net: socket: Change SO_BINDTODEVICE to use interface name 2023-08-31 14:43:36 +02:00
net_mgmt samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
offload_dispatcher net: socket: Change SO_BINDTODEVICE to use interface name 2023-08-31 14:43:36 +02:00
poll net: tcp: Avoid double acknowlegding retransmitted data 2023-05-15 15:25:51 +02:00
register samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
select samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
socketpair net: socketpair: Fix use after free 2023-09-18 20:34:12 +02:00
tcp tests: net: socket: tcp: reduce number of file descriptors 2023-08-22 09:59:44 +02:00
tls tests: net: socket: tls: Verify accept is interrupted correctly on close 2023-05-29 14:34:03 -04:00
tls_ext samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
udp tests: net: socket: udp: Add test to verify connected socket behavior 2023-08-25 10:31:19 +02:00
websocket tests: net: renames shadow variables 2023-08-10 08:14:43 +00:00
socket_helpers.h test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00