YueHaibing
9d7765638f
tcp: restrict net.ipv4.tcp_app_win
...
[ Upstream commit dc5110c2d9 ]
UBSAN: shift-out-of-bounds in net/ipv4/tcp_input.c:555:23
shift exponent 255 is too large for 32-bit type 'int'
CPU: 1 PID: 7907 Comm: ssh Not tainted 6.3.0-rc4-00161-g62bad54b26db-dirty #206
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
Call Trace:
<TASK>
dump_stack_lvl+0x136/0x150
__ubsan_handle_shift_out_of_bounds+0x21f/0x5a0
tcp_init_transfer.cold+0x3a/0xb9
tcp_finish_connect+0x1d0/0x620
tcp_rcv_state_process+0xd78/0x4d60
tcp_v4_do_rcv+0x33d/0x9d0
__release_sock+0x133/0x3b0
release_sock+0x58/0x1b0
'maxwin' is int, shifting int for 32 or more bits is undefined behaviour.
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: YueHaibing <yuehaibing@huawei.com >
Reviewed-by: Eric Dumazet <edumazet@google.com >
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-04-20 12:35:08 +02:00
..
2020-08-10 12:06:44 -07:00
2023-03-17 08:50:25 +01:00
2023-02-14 19:11:48 +01:00
2022-09-29 07:17:59 +02:00
2022-08-22 17:59:37 -07:00
2022-09-10 17:27:32 -07:00
2022-07-08 12:10:33 +01:00
2022-10-20 17:24:59 -07:00
2022-08-24 13:46:58 +01:00
2022-10-19 09:00:53 +02:00
2022-10-03 07:52:13 +01:00
2023-03-22 13:33:50 +01:00
2022-02-17 11:44:20 -08:00
2021-09-28 17:32:56 -07:00
2022-04-30 15:12:58 +01:00
2023-02-01 08:34:45 +01:00
2022-11-22 20:18:20 -08:00
2022-08-29 12:47:15 +01:00
2021-05-17 15:29:35 -07:00
2022-08-25 10:33:21 +02:00
2023-04-13 16:55:21 +02:00
2022-10-11 17:42:55 -06:00
2023-02-14 19:11:48 +01:00
2022-05-12 16:52:18 -07:00
2022-04-30 15:12:58 +01:00
2023-03-22 13:33:46 +01:00
2023-02-01 08:34:25 +01:00
2022-07-08 12:10:33 +01:00
2022-07-15 11:49:55 +01:00
2022-03-03 14:38:48 +00:00
2023-03-30 12:49:09 +02:00
2022-10-12 10:45:34 +02:00
2022-01-29 17:53:07 +00:00
2022-10-11 17:42:58 -06:00
2022-09-06 23:21:18 +02:00
2022-10-03 07:59:06 +01:00
2023-03-22 13:33:46 +01:00
2021-10-13 09:41:37 -07:00
2022-09-29 07:18:00 +02:00
2022-08-04 11:31:20 -07:00
2022-10-03 07:59:06 +01:00
2022-06-24 11:34:38 +01:00
2022-09-22 13:02:10 -07:00
2022-11-16 13:02:04 +00:00
2021-02-26 12:28:03 -08:00
2023-02-01 08:34:45 +01:00
2022-05-16 13:03:29 +02:00
2019-05-21 10:50:45 +02:00
2022-10-27 10:17:40 -07:00
2023-04-13 16:55:24 +02:00
2022-09-20 10:21:49 -07:00
2021-05-17 15:29:35 -07:00
2023-04-13 16:55:23 +02:00
2023-04-13 16:55:23 +02:00
2022-10-11 17:42:58 -06:00
2023-01-07 11:11:44 +01:00
2023-04-20 12:35:08 +02:00
2022-07-21 20:59:42 -07:00
2022-04-06 12:05:41 -07:00
2023-03-17 08:50:24 +01:00
2022-10-16 15:27:07 -07:00
2022-04-07 20:33:15 -07:00
2022-07-21 20:59:42 -07:00
2022-07-21 20:59:42 -07:00
2018-10-10 22:26:00 -07:00
2022-09-20 10:21:49 -07:00
2022-08-17 10:19:22 +01:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-10-24 10:34:48 -07:00
2023-04-20 12:35:08 +02:00
2022-04-06 12:05:41 -07:00
2022-08-29 12:47:15 +01:00
2023-03-11 13:55:29 +01:00
2022-04-06 12:05:41 -07:00
2022-10-03 12:38:34 +01:00
2023-03-22 13:33:43 +01:00
2022-04-28 13:02:01 -07:00
2022-07-20 10:14:50 +01:00
2022-04-06 12:05:41 -07:00
2022-08-17 10:19:22 +01:00
2023-01-24 07:24:43 +01:00
2022-04-06 12:05:41 -07:00
2017-11-02 11:10:55 +01:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2022-04-06 12:05:41 -07:00
2023-02-09 11:28:04 +01:00
2021-05-17 15:29:35 -07:00
2023-03-17 08:50:24 +01:00
2021-07-13 09:28:29 -07:00
2022-04-12 15:00:25 +02:00
2021-11-24 17:21:42 -08:00
2022-12-31 13:32:27 +01:00
2022-02-23 12:35:00 +00:00
2020-07-10 13:54:00 -07:00
2022-12-31 13:32:13 +01:00
2022-10-12 17:50:37 -07:00
2020-05-06 09:40:08 +02:00
2020-05-11 15:12:27 +02:00
2022-06-09 21:52:55 -07:00
2022-06-08 10:10:13 -07:00
2020-05-06 09:40:08 +02:00
2022-09-29 07:18:00 +02:00