Willy Tarreau
17b4aa1adc
BUG/MINOR: ssl: properly ref-count the tls_keys entries
...
Commit 200b0fa ("MEDIUM: Add support for updating TLS ticket keys via
socket") introduced support for updating TLS ticket keys from the CLI,
but missed a small corner case : if multiple bind lines reference the
same tls_keys file, the same reference is used (as expected), but during
the clean shutdown, it will lead to a double free when destroying the
bind_conf contexts since none of the lines knows if others still use
it. The impact is very low however, mostly a core and/or a message in
the system's log upon old process termination.
Let's introduce some basic refcounting to prevent this from happening,
so that only the last bind_conf frees it.
Thanks to Janusz Dziemidowicz and Thierry Fournier for both reporting
the same issue with an easy reproducer.
This fix needs to be backported from 1.6 to 1.8.
2018-07-18 08:59:50 +02:00
..
2017-11-24 17:19:12 +01:00
2017-11-24 17:19:12 +01:00
2017-10-31 11:36:12 +01:00
2018-05-26 20:03:30 +02:00
2018-01-25 22:25:40 +01:00
2017-11-24 17:19:12 +01:00
2018-05-03 07:20:40 +02:00
2010-10-30 19:04:33 +02:00
2018-03-08 18:33:48 +01:00
2018-04-26 14:19:33 +02:00
2018-05-30 05:17:16 +02:00
2018-04-25 05:39:49 +02:00
2018-06-08 18:24:53 +02:00
2017-11-24 17:49:53 +01:00
2018-05-26 20:03:30 +02:00
2017-11-24 17:49:53 +01:00
2018-03-21 05:04:01 +01:00
2017-11-27 14:22:21 +01:00
2018-07-12 17:56:44 +02:00
2018-05-06 06:27:34 +02:00
2018-05-11 14:08:56 +02:00
2018-05-06 06:27:34 +02:00
2018-05-06 06:27:34 +02:00
2018-06-20 10:21:44 +02:00
2017-11-24 17:49:53 +01:00
2017-11-24 17:49:53 +01:00
2018-06-04 17:33:48 +02:00
2017-10-31 13:58:32 +01:00
2017-10-31 18:01:18 +01:00
2018-04-16 15:51:57 +02:00
2017-11-09 11:15:45 +01:00
2018-04-26 10:20:44 +02:00
2018-07-04 19:29:56 +02:00
2018-03-21 05:04:01 +01:00
2018-05-06 06:27:09 +02:00
2017-11-24 17:49:53 +01:00
2018-05-06 14:50:09 +02:00
2018-07-01 06:08:43 +02:00
2017-12-30 17:37:08 +01:00
2017-10-31 18:03:24 +01:00
2017-12-03 21:08:39 +01:00
2018-03-27 20:05:13 +02:00
2012-10-08 20:11:03 +02:00
2017-11-07 11:10:24 +01:00
2017-11-07 11:10:24 +01:00
2017-11-07 11:10:24 +01:00
2017-11-07 11:10:24 +01:00
2017-12-14 17:36:39 +01:00
2018-03-23 16:21:50 +01:00
2018-04-05 15:13:54 +02:00
2016-01-11 07:31:35 +01:00
2015-02-03 00:24:16 +01:00
2018-05-04 17:14:39 +02:00
2018-02-22 14:18:45 +01:00
2018-05-26 20:03:30 +02:00
2017-12-22 18:54:05 +01:00
2017-11-24 17:19:12 +01:00
2018-06-11 11:02:06 +02:00
2017-10-13 11:47:19 +02:00
2018-05-26 19:23:57 +02:00
2017-11-24 17:49:53 +01:00
2018-05-28 14:53:59 +02:00
2018-01-29 16:07:25 +01:00
2016-04-14 11:18:22 +02:00
2018-06-07 14:33:44 +02:00
2016-08-10 19:31:58 +02:00
2018-05-26 19:23:57 +02:00
2018-03-26 17:17:59 +02:00
2017-10-31 13:58:33 +01:00
2017-11-24 17:19:12 +01:00
2018-04-28 07:03:39 +02:00
2018-07-12 17:56:44 +02:00
2018-06-21 20:43:52 +02:00
2017-10-25 04:45:48 +02:00
2017-11-08 14:33:36 +01:00
2018-06-08 18:24:53 +02:00
2018-07-18 08:59:50 +02:00
2018-04-06 19:16:18 +02:00
2018-05-28 15:16:23 +02:00
2018-06-27 06:33:20 +02:00
2018-02-05 14:24:50 +01:00
2018-06-05 11:18:21 +02:00
2018-06-14 18:57:26 +02:00
2018-01-29 13:53:56 +01:00
2018-02-05 20:11:38 +01:00
2017-10-24 19:54:25 +02:00
2017-11-24 17:19:12 +01:00
2017-12-08 10:37:24 +01:00
2017-11-24 17:19:12 +01:00
2016-04-03 14:17:42 +02:00