Andrey V. Elsukov
efb5228ce8
Fix possible use after free in encap[46]_input().
...
There is small window, when encap_detach() can free matched entry
directly after we release encapmtx. Instead of use pointer to the
matched entry, save pointers to needed variables from this entry
and use them after release mutex.
Pass argument stored in the encaptab entry to encap_fillarg(), instead
of pointer to matched entry. Also do not allocate new mbuf tag, when
argument that we plan to save in this tag is NULL.
Also make encaptab variable static.
Obtained from: Yandex LLC
Sponsored by: Yandex LLC
2015-06-18 18:28:38 +00:00
..
2015-01-12 08:33:04 +00:00
2015-04-26 11:39:25 +00:00
2014-11-12 09:57:15 +00:00
2014-11-12 09:57:15 +00:00
2015-01-12 08:33:04 +00:00
2015-03-02 17:30:26 +00:00
2014-02-25 18:44:33 +00:00
2013-10-26 17:58:36 +00:00
2015-06-17 12:23:04 +00:00
2014-11-27 23:06:25 +00:00
2015-02-19 22:35:23 +00:00
2015-04-07 20:20:03 +00:00
2015-05-15 12:19:45 +00:00
2015-04-29 17:19:55 +00:00
2015-04-29 17:19:55 +00:00
2015-02-19 15:41:23 +00:00
2015-05-22 17:05:21 +00:00
2014-12-01 11:45:24 +00:00
2015-01-18 18:06:40 +00:00
2014-11-06 14:39:04 +00:00
2014-11-11 02:52:40 +00:00
2015-03-18 04:40:36 +00:00
2015-01-18 18:06:40 +00:00
2014-12-21 05:07:11 +00:00
2015-04-10 06:02:37 +00:00
2015-04-17 11:57:06 +00:00
2015-04-17 11:57:06 +00:00
2014-10-05 06:28:53 +00:00
2015-04-21 20:25:12 +00:00
2014-08-08 01:57:15 +00:00
2014-10-11 16:08:54 +00:00
2014-06-01 07:28:24 +00:00
2015-06-18 18:28:38 +00:00
2014-08-08 01:57:15 +00:00
2015-01-12 09:41:12 +00:00
2015-04-27 08:29:39 +00:00
2015-04-01 22:26:39 +00:00
2014-12-21 05:07:11 +00:00
2014-12-21 05:07:11 +00:00
2015-04-02 14:22:59 +00:00
2015-04-11 01:06:59 +00:00
2015-04-27 01:11:09 +00:00
2014-12-11 18:35:34 +00:00
2015-05-22 17:05:21 +00:00
2015-01-06 14:32:28 +00:00
2014-09-15 07:20:40 +00:00
2015-04-02 15:47:37 +00:00
2015-04-15 00:57:21 +00:00
2015-04-01 22:26:39 +00:00
2015-02-24 12:57:03 +00:00
2014-08-08 01:57:15 +00:00
2015-04-01 22:26:39 +00:00
2015-06-17 15:20:14 +00:00
2015-03-25 22:45:54 +00:00
2014-09-16 14:20:33 +00:00
2015-01-10 20:49:57 +00:00
2015-05-28 16:00:23 +00:00
2015-05-28 16:00:23 +00:00
2013-11-25 07:38:45 +00:00
2013-11-26 08:46:27 +00:00
2014-10-16 15:36:04 +00:00
2015-05-28 16:00:23 +00:00
2015-06-17 19:26:23 +00:00
2015-06-17 15:20:14 +00:00
2015-06-17 15:20:14 +00:00
2015-06-17 15:20:14 +00:00
2015-06-17 15:20:14 +00:00
2015-06-17 15:20:14 +00:00
2015-06-17 15:20:14 +00:00
2015-03-10 19:49:25 +00:00
2015-03-26 22:05:31 +00:00
2015-04-11 16:00:33 +00:00
2015-06-04 12:46:56 +00:00
2014-09-06 19:12:14 +00:00
2015-05-28 16:00:23 +00:00
2015-06-04 12:46:56 +00:00
2015-06-17 15:20:14 +00:00
2015-06-14 17:48:44 +00:00
2015-03-10 19:49:25 +00:00
2015-06-17 15:20:14 +00:00
2015-06-17 15:20:14 +00:00
2015-04-30 17:43:40 +00:00
2015-05-22 17:05:21 +00:00
2014-09-10 16:26:18 +00:00
2015-05-19 19:17:20 +00:00
2013-08-28 23:00:34 +00:00
2013-08-28 23:00:34 +00:00
2013-10-26 17:58:36 +00:00
2015-01-05 09:58:32 +00:00
2014-11-30 13:24:21 +00:00
2014-11-07 09:39:05 +00:00
2015-05-22 17:05:21 +00:00
2015-01-30 17:29:07 +00:00
2013-09-21 10:01:51 +00:00
2015-06-10 20:43:07 +00:00
2015-06-10 20:43:07 +00:00
2015-05-01 12:49:03 +00:00
2015-03-09 20:29:16 +00:00
2015-04-16 10:00:06 +00:00
2014-11-27 23:06:25 +00:00
2015-01-18 18:06:40 +00:00
2014-10-10 06:08:59 +00:00
2014-04-07 01:53:03 +00:00