YueHaibing
a069d4d98c
tcp: restrict net.ipv4.tcp_app_win
...
[ Upstream commit dc5110c2d959c1707e12df5f792f41d90614adaa ]
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:10:26 +02:00
..
2020-09-29 14:02:53 -07:00
2021-12-22 09:30:55 +01:00
2020-10-28 11:41:15 -06:00
2020-09-03 10:38:22 -07:00
2019-07-31 13:31:56 -06:00
2020-02-28 14:52:36 +01:00
2020-04-28 14:38:38 -07:00
2020-08-31 21:18:00 +02:00
2018-07-18 15:28:27 -07:00
2020-05-01 12:24:43 -07:00
2020-07-04 17:46:21 -07:00
2020-04-28 14:38:38 -07:00
2020-07-04 17:46:21 -07:00
2020-07-28 17:53:03 -07:00
2020-06-26 10:36:30 +02:00
2021-12-29 12:25:57 +01:00
2018-07-18 15:28:27 -07:00
2020-07-04 17:46:21 -07:00
2020-04-30 12:56:36 -07:00
2020-04-28 14:38:39 -07:00
2020-04-30 12:56:36 -07:00
2020-07-22 17:00:37 -07:00
2020-04-28 14:38:39 -07:00
2020-04-28 14:39:45 -07:00
2020-04-28 14:39:46 -07:00
2020-04-28 14:39:46 -07:00
2020-04-28 14:39:46 -07:00
2020-09-22 16:45:34 -07:00
2018-05-28 22:59:54 -04:00
2020-04-28 14:39:46 -07:00
2020-07-31 18:17:51 +02:00
2020-04-28 14:39:46 -07:00
2020-04-28 14:39:46 -07:00
2020-04-28 14:39:46 -07:00
2020-04-28 14:39:46 -07:00
2020-04-28 14:39:46 -07:00
2020-10-15 07:49:41 +02:00
2020-04-28 14:39:47 -07:00
2020-10-15 18:42:13 -07:00
2020-04-28 14:39:47 -07:00
2023-04-20 12:10:26 +02:00
2020-04-28 14:39:47 -07:00
2020-04-28 14:39:47 -07:00
2020-04-28 14:40:18 -07:00
2020-04-28 14:40:18 -07:00
2021-12-01 09:19:02 +01:00
2020-11-03 22:30:31 +01:00
2020-09-23 18:02:49 -07:00
2020-04-28 14:40:19 -07:00
2020-08-22 12:44:37 -07:00
2020-04-30 12:56:35 -07:00
2012-04-10 14:54:07 -04:00
2020-06-08 10:05:53 +02:00
2020-04-30 12:56:36 -07:00
2019-03-18 09:50:21 -07:00
2020-04-30 12:56:36 -07:00
2020-04-10 18:11:04 -07:00
2020-03-03 16:07:02 -08:00
2020-04-30 12:56:36 -07:00
2021-03-17 17:06:13 +01:00
2020-04-30 12:56:36 -07:00
2022-07-29 17:19:07 +02:00
2020-04-30 12:56:36 -07:00
2020-04-30 12:56:36 -07:00
2020-04-30 12:56:36 -07:00
2020-10-20 13:54:53 +02:00
2019-11-23 11:00:19 -08:00
2020-04-30 12:56:36 -07:00
2020-04-30 12:56:37 -07:00
2020-04-30 12:56:38 -07:00
2020-02-21 08:13:30 -08:00
2020-04-30 12:56:37 -07:00
2020-11-09 17:28:06 -08:00
2020-04-30 12:56:37 -07:00
2020-04-30 12:56:37 -07:00
2020-04-30 12:56:37 -07:00
2020-04-30 12:56:37 -07:00
2020-04-30 12:56:37 -07:00
2020-04-30 12:56:37 -07:00
2020-06-08 10:05:53 +02:00
2020-07-04 17:46:21 -07:00
2020-10-13 16:21:54 -07:00
2020-04-30 12:56:38 -07:00
2020-04-30 12:56:38 -07:00
2020-04-30 12:56:38 -07:00
2019-05-20 20:24:34 -04:00
2020-03-03 15:33:55 -08:00
2020-04-28 14:40:18 -07:00
2020-10-28 11:26:10 -06:00
2020-04-30 12:56:38 -07:00
2020-04-30 12:56:38 -07:00
2020-10-09 09:33:23 -06:00
2020-04-30 12:56:38 -07:00
2020-04-30 12:56:38 -07:00
2020-04-30 12:56:38 -07:00
2020-07-15 17:51:30 -07:00
2019-05-22 12:18:20 -07:00
2019-05-22 12:18:20 -07:00
2019-05-22 12:18:20 -07:00
2020-06-27 14:00:23 -07:00
2019-10-05 16:29:00 -07:00
2020-04-30 12:56:38 -07:00
2020-05-01 12:24:40 -07:00
2020-05-01 12:24:40 -07:00
2020-05-01 12:24:40 -07:00
2020-09-28 12:50:12 -07:00
2020-05-01 12:24:40 -07:00
2020-05-01 12:24:40 -07:00
2020-05-01 12:24:40 -07:00
2020-05-01 12:24:40 -07:00
2020-05-01 12:24:41 -07:00
2020-05-01 12:24:41 -07:00