linux/net/llc
Ernestas Kulik 864ba40c80 llc: Return -EINPROGRESS from llc_ui_connect()
Given a zero sk_sndtimeo, llc_ui_connect() skips waiting for state
change and returns 0, confusing userspace applications that will assume
the socket is connected, making e.g. getpeername() calls error out.

More specifically, the issue was discovered in libcoap, where
newly-added AF_LLC socket support was behaving differently from AF_INET
connections due to EINPROGRESS handling being skipped.

Set rc to -EINPROGRESS if connect() would not block, akin to AF_INET
sockets.

Signed-off-by: Ernestas Kulik <ernestas.k@iconn-networks.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260421060304.285419-1-ernestas.k@iconn-networks.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-04-23 11:40:39 -07:00
..
af_llc.c llc: Return -EINPROGRESS from llc_ui_connect() 2026-04-23 11:40:39 -07:00
Kconfig
llc_c_ac.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
llc_c_ev.c
llc_c_st.c llc: Constify struct llc_conn_state_trans 2024-07-15 08:51:01 -07:00
llc_conn.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
llc_core.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
llc_if.c llc: Check netns in llc_estab_match() and llc_listener_match(). 2023-07-20 10:46:28 +02:00
llc_input.c net: llc: reset skb->transport_header 2024-12-27 11:23:37 -08:00
llc_output.c
llc_pdu.c
llc_proc.c net: remove sock_i_uid() 2025-06-23 17:04:03 -07:00
llc_s_ac.c llc: do not use skb_get() before dev_queue_xmit() 2025-03-03 14:00:04 +00:00
llc_s_ev.c
llc_s_st.c llc: Constify struct llc_sap_state_trans 2024-07-15 08:51:19 -07:00
llc_sap.c llc: Constify struct llc_sap_state_trans 2024-07-15 08:51:19 -07:00
llc_station.c llc: verify mac len before reading mac header 2023-11-01 22:21:32 -07:00
Makefile
sysctl_net_llc.c sysctl net: Remove macro checks for CONFIG_SYSCTL 2025-01-20 12:01:34 -08:00