zephyr/subsys
Jukka Rissanen 535e70a298 net: socket: Release packets in accepted socket in close
If we have received data to the accepted socket, then release
those before removing the accepted socket. This is a rare event
as it requires that we get multiple simultaneous connections
and there is a failure before the socket accept is called by
the application.
For example one such scenario is when HTTP server receives multiple
connection attempts at the same time, and the server poll fails
before socket accept is called. This leads to buffer leak as the
socket close is not called for the accepted socket because the
accepted is not yet created from application point of view.
The solution is to flush the received queue of the accepted socket
before removing the actual accepted socket.

Fixes #84538

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-01-28 18:24:39 +01:00
..
bindesc
bluetooth Bluetooth: CCP: Initial CCP Client implemenation 2025-01-28 09:46:39 +01:00
canbus
console
dap
debug drivers: coredump: Place API into iterable section 2024-12-03 02:36:38 +01:00
demand_paging demand_paging: use ram backend by default 2025-01-09 15:50:37 +01:00
dfu dfu: flash_img: add flash_img_get_upload_slot() 2025-01-17 09:07:45 +01:00
disk
dsp
emul
fb drivers: display: Place API into iterable section 2024-12-02 22:05:41 +00:00
fs fs: allow enabling filesystems with FILE_SYSTEM_LIB_LINK 2025-01-21 15:13:05 +01:00
input input: prevent the caller from sleeping in sysworkq 2024-11-29 14:49:43 +01:00
ipc ipc: ipc_service: Null terminate RPMsg endpoint names 2025-01-22 10:40:27 +01:00
jwt mbedtls: select ENTROPY_GENERATOR when a driver is available 2024-12-19 17:53:37 +01:00
llext llext: support multiple string and symbol tables 2025-01-27 08:54:44 +01:00
logging logging: frontends: stmesp: Fix logging single argument log twice 2025-01-24 15:43:19 +01:00
lorawan
mctp mctp: mark MCTP as experimental 2025-01-15 22:58:09 +01:00
mem_mgmt
mgmt mgmt: mcumgr: grp: img_mgmt: Fix unused label warning 2025-01-21 11:11:51 +01:00
modbus modbus: initialize return variable. 2025-01-21 19:28:52 +01:00
modem
net net: socket: Release packets in accepted socket in close 2025-01-28 18:24:39 +01:00
pm shell: use shell_device_get_binding 2024-12-18 15:32:10 +01:00
portability Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
profiling arch: remove z_arch_esf_t 2025-01-23 16:32:36 +01:00
random mbedtls: select ENTROPY_GENERATOR when a driver is available 2024-12-19 17:53:37 +01:00
retention
rtio
sd
secure_storage secure storage: Add missing include for mbedtls_platform_zeroize 2025-01-27 21:04:20 +01:00
sensing sensing: Fix static assert in get_sensor_by_dev() 2025-01-18 12:40:03 +01:00
settings
shell shell: fix unsafe API calls and add configurable autoflush behavior 2025-01-23 13:45:20 +01:00
sip_svc
stats
storage stream_flash: Enforce size to be explicitly present on init 2025-01-07 15:56:49 +01:00
task_wdt task_wdt: Kconfig: Increase TASK_WDT_HW_FALLBACK_DELAY range 2025-01-07 20:34:41 +01:00
testsuite boards: Allow llvm toolchain for unit tests 2025-01-24 08:38:55 +01:00
timing
tracing tracing: k_pipe: Add tracing support for reworked k_pipe API 2025-01-17 19:43:44 +01:00
usb usb: device_next: cdc_acm: allow setting the interface description 2025-01-24 01:14:28 +01:00
zbus zbus: assert when inside an ISR and time out is not zero 2025-01-21 19:30:20 +01:00
CMakeLists.txt mctp: Add mctp subsystem with uart binding 2025-01-14 22:55:41 +01:00
Kconfig mctp: Add mctp subsystem with uart binding 2025-01-14 22:55:41 +01:00