Pietro Borrello
ee01753c5d
net: add sock_init_data_uid()
...
[ Upstream commit 584f3742890e966d2f0a1f3c418c9ead70b2d99e ]
Add sock_init_data_uid() to explicitly initialize the socket uid.
To initialise the socket uid, sock_init_data() assumes a the struct
socket* sock is always embedded in a struct socket_alloc, used to
access the corresponding inode uid. This may not be true.
Examples are sockets created in tun_chr_open() and tap_open().
Fixes: 86741ec254 ("net: core: Add a UID field to struct sock.")
Signed-off-by: Pietro Borrello <borrello@diag.uniroma1.it >
Reviewed-by: Eric Dumazet <edumazet@google.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-03-10 09:33:01 +01:00
..
2022-10-05 07:05:41 +09:00
2022-12-31 13:33:05 +01:00
2023-01-12 12:01:58 +01:00
2022-09-28 18:51:47 -07:00
2022-07-22 12:53:22 +01:00
2022-11-29 08:30:50 -08:00
2022-05-12 16:15:30 -07:00
2022-09-09 08:24:41 +01:00
2022-07-28 10:42:44 -07:00
2022-09-01 11:44:13 +01:00
2022-06-22 12:59:43 +01:00
2022-08-23 10:43:11 +02:00
2022-07-22 12:53:22 +01:00
2022-07-28 22:06:15 -07:00
2022-08-09 22:14:02 -07:00
2022-09-16 14:34:01 +01:00
2022-07-22 12:53:22 +01:00
2022-09-16 14:34:01 +01:00
2022-08-24 13:46:58 +01:00
2022-08-25 11:07:26 +02:00
2022-05-22 21:51:54 +01:00
2022-07-22 12:53:22 +01:00
2022-07-24 18:39:17 -06:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-09-30 18:17:16 -07:00
2022-09-07 15:28:08 +01:00
2022-09-30 18:17:17 -07:00
2022-10-03 07:52:13 +01:00
2022-12-31 13:33:02 +01:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-07-28 22:21:54 -07:00
2022-09-20 09:13:38 +02:00
2022-09-20 09:13:38 +02:00
2022-10-03 12:41:59 +01:00
2022-07-11 19:49:38 -07:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-10-24 19:08:46 -07:00
2022-08-25 16:07:42 -07:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-10-07 08:42:00 +01:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-07-29 11:58:54 +01:00
2022-07-22 12:53:22 +01:00
2022-08-24 19:30:07 -07:00
2022-07-22 12:53:22 +01:00
2023-01-12 12:02:15 +01:00
2022-07-29 11:58:54 +01:00
2023-01-12 12:02:15 +01:00
2022-07-22 12:53:22 +01:00
2022-10-03 07:59:06 +01:00
2022-12-31 13:32:26 +01:00
2022-11-17 10:42:45 +01:00
2022-09-29 07:18:00 +02:00
2022-07-22 12:53:22 +01:00
2022-09-02 20:34:32 -07:00
2022-11-17 10:42:45 +01:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-07-28 11:29:36 +02:00
2023-02-01 08:34:35 +01:00
2022-09-23 06:56:08 -07:00
2022-07-22 12:53:22 +01:00
2023-01-07 11:11:44 +01:00
2022-12-31 13:33:02 +01:00
2022-07-22 12:53:22 +01:00
2022-11-18 10:29:50 +00:00
2022-05-11 12:43:10 +01:00
2022-07-11 16:25:14 +02:00
2022-07-22 12:53:22 +01:00
2022-11-01 21:29:06 -07:00
2022-07-22 12:53:22 +01:00
2022-09-02 19:59:08 -07:00
2022-07-22 12:53:22 +01:00
2022-12-01 12:42:46 +01:00
2022-10-02 16:07:17 +01:00
2022-09-29 18:52:05 -07:00
2022-07-22 12:53:22 +01:00
2022-07-15 18:50:35 -07:00
2022-07-22 12:53:22 +01:00
2022-07-14 15:27:35 -07:00
2022-06-19 10:00:02 +01:00
2022-10-11 17:42:58 -06:00
2022-07-22 12:53:22 +01:00
2022-08-01 11:59:23 -07:00
2022-07-25 13:25:39 +01:00
2023-02-01 08:34:19 +01:00
2022-07-22 12:53:22 +01:00
2022-07-27 13:24:42 +01:00
2022-12-31 13:32:04 +01:00
2023-03-10 09:33:01 +01:00
2022-07-22 12:53:22 +01:00
2022-07-18 11:24:10 +01:00
2022-06-29 20:37:36 -07:00
2022-12-31 13:32:20 +01:00
2022-09-22 17:27:41 -07:00
2022-07-22 12:53:22 +01:00
2022-07-22 12:53:22 +01:00
2022-09-01 11:42:12 +01:00
2022-10-12 17:50:37 -07:00
2022-10-12 17:50:37 -07:00
2022-07-22 12:53:22 +01:00
2022-09-30 07:55:46 -07:00
2022-09-26 13:28:19 -07:00
2022-09-29 07:17:58 +02:00
2022-09-22 17:16:22 +02:00