Hyunwoo Kim
22312eeab3
net/x25: Fix to not accept on connected socket
...
[ Upstream commit f2b0b5210f ]
When listen() and accept() are called on an x25 socket
that connect() succeeds, accept() succeeds immediately.
This is because x25_connect() queues the skb to
sk->sk_receive_queue, and x25_accept() dequeues it.
This creates a child socket with the sk of the parent
x25 socket, which can cause confusion.
Fix x25_listen() to return -EINVAL if the socket has
already been successfully connect()ed to avoid this issue.
Signed-off-by: Hyunwoo Kim <v4bel@theori.io >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-02-09 11:28:13 +01:00
..
2022-06-09 21:53:28 +02:00
2023-02-09 11:28:04 +01:00
2022-12-31 13:33:02 +01:00
2022-08-25 10:33:21 +02:00
2022-04-06 13:45:26 +01:00
2022-10-15 11:08:36 +01:00
2022-08-22 17:55:50 -07:00
2022-09-22 13:02:10 -07:00
2023-02-09 11:28:04 +01:00
2022-12-31 13:32:14 +01:00
2022-02-25 09:36:06 +01:00
2023-02-09 11:28:08 +01:00
2023-01-12 12:02:33 +01:00
2023-02-09 11:28:10 +01:00
2023-02-09 11:28:04 +01:00
2023-02-09 11:28:05 +01:00
2022-03-03 08:01:55 -08:00
2022-11-22 20:15:37 -08:00
2021-01-27 17:04:12 -08:00
2022-12-31 13:32:29 +01:00
2022-08-25 10:33:21 +02:00
2023-01-24 07:24:31 +01:00
2022-12-31 13:32:22 +01:00
2022-10-07 09:29:17 +02:00
2021-01-27 17:04:12 -08:00
2023-02-09 11:28:04 +01:00
2023-02-09 11:28:09 +01:00
2022-06-10 16:21:27 -07:00
2022-11-15 12:42:26 +01:00
2022-11-22 07:14:55 +01:00
2023-02-01 08:34:24 +01:00
2022-04-15 14:27:24 -07:00
2021-06-08 16:31:25 -07:00
2022-06-09 21:52:55 -07:00
2023-02-06 08:06:31 +01:00
2022-12-05 09:53:08 +01:00
2023-02-06 08:06:34 +01:00
2022-08-29 13:02:27 +01:00
2023-01-24 07:24:37 +01:00
2022-08-29 12:47:15 +01:00
2023-02-09 11:28:04 +01:00
2022-08-29 12:47:15 +01:00
2023-02-01 08:34:45 +01:00
2023-02-09 11:28:06 +01:00
2023-02-01 08:34:17 +01:00
2023-02-09 11:28:11 +01:00
2022-11-29 08:30:18 -08:00
2022-04-12 15:00:25 +02:00
2022-08-29 12:47:15 +01:00
2022-08-15 11:21:42 +01:00
2022-10-11 17:42:58 -06:00
2022-03-18 13:09:17 +02:00
2022-11-02 11:57:30 +00:00
2022-12-31 13:32:55 +01:00
2023-02-01 08:34:46 +01:00
2023-02-09 11:28:09 +01:00
2023-02-09 11:28:04 +01:00
2022-07-08 18:38:44 -07:00
2023-02-09 11:28:04 +01:00
2022-06-09 21:52:55 -07:00
2023-02-09 11:28:04 +01:00
2023-02-09 11:28:08 +01:00
2022-12-31 13:32:54 +01:00
2022-12-31 13:32:26 +01:00
2022-12-31 13:32:20 +01:00
2023-02-09 11:28:13 +01:00
2022-10-03 17:44:18 -07:00
2023-02-09 11:28:04 +01:00
2023-02-09 11:28:04 +01:00
2021-06-11 12:55:28 -07:00
2022-08-22 14:26:30 +01:00
2022-09-20 14:23:56 -07:00
2022-08-22 14:26:30 +01:00
2023-02-09 11:28:04 +01:00
2021-11-09 10:02:50 -08:00