Tejaswi Tanikella
3f01ddb962
slip: Check if rstate is initialized before uncompressing
...
On receiving a packet the state index points to the rstate which must be
used to fill up IP and TCP headers. But if the state index points to a
rstate which is unitialized, i.e. filled with zeros, it gets stuck in an
infinite loop inside ip_fast_csum trying to compute the ip checsum of a
header with zero length.
89.666953: <2> [<ffffff9dd3e94d38>] slhc_uncompress+0x464/0x468
89.666965: <2> [<ffffff9dd3e87d88>] ppp_receive_nonmp_frame+0x3b4/0x65c
89.666978: <2> [<ffffff9dd3e89dd4>] ppp_receive_frame+0x64/0x7e0
89.666991: <2> [<ffffff9dd3e8a708>] ppp_input+0x104/0x198
89.667005: <2> [<ffffff9dd3e93868>] pppopns_recv_core+0x238/0x370
89.667027: <2> [<ffffff9dd4428fc8>] __sk_receive_skb+0xdc/0x250
89.667040: <2> [<ffffff9dd3e939e4>] pppopns_recv+0x44/0x60
89.667053: <2> [<ffffff9dd4426848>] __sock_queue_rcv_skb+0x16c/0x24c
89.667065: <2> [<ffffff9dd4426954>] sock_queue_rcv_skb+0x2c/0x38
89.667085: <2> [<ffffff9dd44f7358>] raw_rcv+0x124/0x154
89.667098: <2> [<ffffff9dd44f7568>] raw_local_deliver+0x1e0/0x22c
89.667117: <2> [<ffffff9dd44c8ba0>] ip_local_deliver_finish+0x70/0x24c
89.667131: <2> [<ffffff9dd44c92f4>] ip_local_deliver+0x100/0x10c
./scripts/faddr2line vmlinux slhc_uncompress+0x464/0x468 output:
ip_fast_csum at arch/arm64/include/asm/checksum.h:40
(inlined by) slhc_uncompress at drivers/net/slip/slhc.c:615
Adding a variable to indicate if the current rstate is initialized. If
such a packet arrives, move to toss state.
Signed-off-by: Tejaswi Tanikella <tejaswit@codeaurora.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2018-04-11 10:33:46 -04:00
..
2017-07-11 06:08:58 -04:00
2018-04-08 17:19:15 -04:00
2018-01-19 14:02:12 -05:00
2017-11-27 16:20:04 -05:00
2018-04-01 19:49:34 -04:00
2018-03-26 13:14:43 -04:00
2017-04-05 10:15:20 +02:00
2017-10-07 23:15:08 +01:00
2018-04-06 15:39:26 -07:00
2018-01-23 19:51:46 -05:00
2017-04-12 22:02:36 +02:00
2018-03-23 21:52:19 -04:00
2018-03-31 02:15:54 +02:00
2015-09-17 13:20:05 +02:00
2018-03-27 23:03:00 +01:00
2017-11-02 11:10:55 +01:00
2017-10-05 18:44:17 -07:00
2017-11-02 11:10:55 +01:00
2018-01-15 14:53:43 -05:00
2017-11-02 11:10:55 +01:00
2018-02-14 11:55:33 -05:00
2009-03-24 23:32:03 -07:00
2016-02-09 04:45:49 -05:00
2014-11-10 13:27:49 -05:00
2017-05-27 18:51:41 -04:00
2017-10-25 10:54:39 +09:00
2017-08-11 14:59:24 -07:00
2017-07-04 22:35:16 +01:00
2011-08-08 14:26:29 -04:00
2018-03-29 14:01:27 +02:00
2016-07-08 12:20:57 +02:00
2017-01-20 12:12:13 -05:00
2017-07-04 01:29:04 -07:00
2016-04-19 20:09:25 -04:00
2016-04-25 16:44:27 -04:00
2016-06-25 12:19:35 -04:00
2016-04-25 16:44:27 -04:00
2018-04-02 20:16:17 +02:00
2017-11-02 11:10:55 +01:00
2013-12-06 12:37:56 -05:00
2015-03-06 21:50:02 -05:00
2018-04-08 12:45:57 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-18 12:39:36 +01:00
2017-11-30 09:54:25 -05:00
2017-11-04 09:26:51 +09:00
2018-03-04 13:34:18 -05:00
2017-11-02 11:10:55 +01:00
2018-03-05 12:52:45 -05:00
2017-11-04 09:26:51 +09:00
2017-11-02 11:10:55 +01:00
2018-03-05 12:52:45 -05:00
2018-02-06 11:32:48 -05:00
2017-11-02 11:10:55 +01:00
2018-02-28 11:43:28 -05:00
2017-11-01 11:50:43 +09:00
2018-03-04 13:04:22 -05:00
2017-11-02 11:10:55 +01:00
2017-11-11 15:36:05 +09:00
2018-03-04 13:04:23 -05:00
2017-11-02 11:10:55 +01:00
2017-10-30 21:09:24 +09:00
2017-10-11 09:49:34 +02:00
2017-11-02 11:10:55 +01:00
2017-12-08 13:32:26 -05:00
2017-11-16 10:49:00 +09:00
2017-11-02 11:10:55 +01:00
2018-02-27 14:46:26 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-11 14:10:06 -05:00
2017-11-02 11:10:55 +01:00
2016-04-27 22:48:25 -04:00
2018-02-22 21:13:02 +01:00
2016-01-04 20:40:41 +01:00
2017-07-04 01:29:04 -07:00
2017-11-02 11:10:55 +01:00
2015-12-15 23:25:20 -05:00
2017-01-18 13:04:28 -05:00
2017-08-07 11:39:22 -07:00
2018-03-31 02:15:43 +02:00
2018-02-28 11:43:28 -05:00
2017-11-04 09:26:51 +09:00
2018-03-31 23:25:39 -04:00
2017-12-03 10:18:28 -05:00
2017-12-20 14:00:25 -05:00
2018-04-07 22:32:32 -04:00
2017-11-02 11:10:55 +01:00
2016-03-13 23:55:13 -04:00
2018-03-04 13:04:22 -05:00
2018-04-04 11:31:57 -04:00
2017-12-15 12:34:00 -05:00
2018-03-23 11:31:58 -04:00
2018-03-09 11:23:11 -05:00
2018-01-08 18:01:02 +01:00
2018-03-31 23:25:39 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-04 11:31:57 -04:00
2017-11-02 11:10:55 +01:00
2018-03-27 09:51:23 +02:00
2016-08-17 19:36:23 -04:00
2016-10-13 12:05:26 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-25 12:06:25 +09:00
2013-09-21 14:01:38 -04:00
2014-12-10 15:21:24 -05:00
2018-03-27 11:56:00 -04:00
2013-09-21 14:01:38 -04:00
2014-01-01 22:22:43 -05:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2014-12-10 15:21:24 -05:00
2013-09-21 14:01:38 -04:00
2017-07-04 22:35:15 +01:00
2018-02-14 14:43:32 -05:00
2018-03-29 16:23:26 -04:00
2016-07-08 13:23:12 +02:00
2013-12-06 12:37:56 -05:00
2017-11-02 11:10:55 +01:00
2017-04-01 20:21:44 -07:00
2016-10-03 02:00:22 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-04 09:26:51 +09:00
2018-03-29 13:47:53 -04:00
2017-11-02 11:10:55 +01:00
2018-03-04 13:04:23 -05:00
2017-07-01 07:39:09 -07:00
2017-11-02 11:10:55 +01:00
2015-12-08 22:02:33 -05:00
2017-11-02 11:10:55 +01:00
2018-04-07 22:32:31 -04:00
2016-07-08 12:20:57 +02:00
2017-11-08 16:12:33 +09:00
2017-11-02 11:10:55 +01:00
2016-03-23 22:09:58 -04:00
2018-02-28 12:06:01 -05:00
2018-01-16 14:56:54 -05:00
2017-11-02 11:10:55 +01:00
2017-10-01 03:55:47 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-07 11:39:21 -07:00
2017-11-02 11:10:55 +01:00
2017-12-05 14:37:13 -05:00
2018-03-29 11:11:40 +02:00
2017-10-20 13:21:36 +01:00
2017-11-02 11:10:55 +01:00
2018-03-23 11:31:58 -04:00
2018-03-13 18:37:02 +02:00
2017-12-04 11:32:53 -05:00
2018-04-01 19:49:34 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2016-11-09 20:40:06 -05:00
2017-08-25 17:10:23 -07:00
2018-04-11 10:33:46 -04:00
2017-11-02 11:10:55 +01:00
2016-04-28 11:49:45 -04:00
2017-11-02 11:10:55 +01:00
2018-04-05 21:36:24 -07:00
2018-03-01 21:21:36 -05:00
2017-11-02 11:10:55 +01:00
2017-10-25 10:37:11 +09:00
2017-11-10 13:41:40 +09:00
2018-02-21 15:06:05 -05:00
2018-03-01 21:44:28 -05:00
2015-07-09 15:12:20 -07:00
2017-11-11 15:36:05 +09:00
2018-03-31 23:37:32 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-29 15:16:52 -07:00
2017-11-02 11:10:55 +01:00
2018-03-31 02:15:54 +02:00
2018-02-16 15:57:42 -05:00
2013-07-27 22:14:06 -07:00
2018-01-17 16:07:24 -05:00
2018-01-24 19:13:45 -05:00
2014-09-05 17:35:28 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-05 15:21:21 -08:00
2018-03-30 10:59:23 -04:00