Aurelien DARRAGON
837a26ab05
BUG/MEDIUM: server/lbprm: fix crash in _srv_set_inetaddr_port()
...
Since faa8c3e ("MEDIUM: lb-chash: Deterministic node hashes based on
server address") the following configuration will cause haproxy to crash:
backend test1
mode http
balance hash int(1)
server s1 haproxy.org:80
This is because lbprm.update_server_eweight() method is now systematically
called in _srv_set_inetaddr_port() upon srv addr/port change (and with the
above config it happens during startup after initial dns resolution).
However, depending on the chosen lbprm algo, update_server_eweight function
may not be set (it is not a mandatory method, some lb implementations don't
define it).
Thus, using 'balance hash' with map-based hashing or 'balance sticky' will
cause a crash due to a NULL de-reference in _srv_set_inetaddr_port(). To
fix the issue, we first check that the update_server_eweight() method is
set before using it.
No backport needed unless faa8c3e ("MEDIUM: lb-chash: Deterministic node
hashes based on server address") gets backported.
2024-04-03 11:58:03 +02:00
..
2024-02-03 12:08:11 +01:00
2023-09-28 08:49:22 +02:00
2024-03-28 17:28:20 +01:00
2024-04-03 09:34:08 +02:00
2024-03-29 17:08:37 +01:00
2024-03-28 17:28:20 +01:00
2023-04-27 18:14:57 +02:00
2023-04-23 09:46:15 +02:00
2024-03-15 11:31:48 +01:00
2024-04-02 15:19:18 +02:00
2024-04-02 18:47:19 +02:00
2024-03-27 11:38:28 +01:00
2023-06-06 15:15:17 +02:00
2024-04-02 07:27:33 +02:00
2023-10-17 18:51:13 +02:00
2023-11-23 16:23:14 +01:00
2023-09-08 16:25:19 +02:00
2024-03-28 17:32:55 +01:00
2023-05-17 09:33:54 +02:00
2023-06-30 16:12:36 +02:00
2024-03-22 16:12:36 +01:00
2024-04-02 07:27:33 +02:00
2024-03-29 17:21:04 +01:00
2023-10-18 17:01:19 +02:00
2024-03-25 17:34:19 +00:00
2024-03-25 17:34:19 +00:00
2023-11-23 16:23:14 +01:00
2024-03-26 15:15:59 +01:00
2024-04-02 07:27:33 +02:00
2023-11-23 16:53:57 +01:00
2024-01-30 08:27:26 +01:00
2023-04-13 18:04:46 +02:00
2023-11-18 11:16:21 +01:00
2023-11-23 16:23:14 +01:00
2023-11-29 08:59:27 +01:00
2024-03-19 07:54:25 +01:00
2023-04-27 18:22:34 +02:00
2023-11-08 16:38:06 +01:00
2023-10-26 15:18:48 +02:00
2024-01-31 15:22:12 +01:00
2024-01-31 15:22:12 +01:00
2023-10-17 18:51:13 +02:00
2024-02-01 12:00:53 +01:00
2024-01-31 16:28:54 +01:00
2024-03-25 17:34:19 +00:00
2024-04-02 07:27:33 +02:00
2024-03-13 09:24:46 +01:00
2023-02-14 08:48:54 +01:00
2023-01-26 11:36:39 +01:00
2024-01-31 16:28:54 +01:00
2024-01-30 08:27:26 +01:00
2024-03-20 14:26:57 +01:00
2024-03-28 17:32:51 +01:00
2023-04-01 18:33:40 +02:00
2024-03-25 16:24:15 +01:00
2024-02-28 16:02:33 +01:00
2024-01-30 08:27:26 +01:00
2024-01-30 08:27:26 +01:00
2024-01-11 15:10:08 +01:00
2023-11-23 16:23:14 +01:00
2023-03-08 10:43:04 +01:00
2024-04-02 07:00:10 +02:00
2024-03-29 17:08:37 +01:00
2023-08-29 11:11:50 +02:00
2024-03-14 09:34:36 +01:00
2024-03-29 17:08:37 +01:00
2023-05-05 16:28:32 +02:00
2024-03-28 17:28:20 +01:00
2023-05-11 09:22:46 +02:00
2024-03-25 11:06:41 +01:00
2024-03-22 17:10:06 +01:00
2024-03-22 17:10:06 +01:00
2024-02-14 15:41:04 +01:00
2024-03-25 10:24:59 +01:00
2023-04-28 16:08:08 +02:00
2024-03-28 17:28:20 +01:00
2023-06-14 11:27:29 +02:00
2023-05-12 09:45:30 +02:00
2024-01-11 11:13:54 +01:00
2023-07-03 16:32:01 +02:00
2024-04-03 09:34:08 +02:00
2024-02-10 12:38:40 +01:00
2023-11-06 20:49:56 +01:00
2024-01-02 10:19:48 +01:00
2023-04-21 17:41:26 +02:00
2023-04-23 09:46:15 +02:00
2024-01-02 11:44:42 +01:00
2023-02-23 15:05:05 +01:00
2023-04-21 17:41:26 +02:00
2023-08-17 15:44:03 +02:00
2024-03-29 17:08:37 +01:00
2023-12-21 15:42:08 +01:00
2024-01-31 16:28:54 +01:00
2024-02-15 17:46:53 +01:00
2024-01-29 15:40:19 +01:00
2023-04-28 16:08:08 +02:00
2024-02-05 14:31:21 +01:00
2024-04-03 11:14:50 +02:00
2024-04-02 18:47:19 +02:00
2023-11-28 15:37:50 +01:00
2023-11-30 15:04:27 +01:00
2024-03-28 17:28:20 +01:00
2024-03-11 14:15:36 +01:00
2024-01-31 16:28:54 +01:00
2024-02-15 17:04:17 +01:00
2024-02-14 11:32:29 +01:00
2024-01-16 10:17:27 +01:00
2023-11-28 15:47:18 +01:00
2023-11-28 15:47:18 +01:00
2024-04-02 18:47:19 +02:00
2024-03-06 10:39:57 +01:00
2024-03-12 17:37:11 +01:00
2024-02-01 12:00:53 +01:00
2024-01-31 16:28:54 +01:00
2024-03-08 17:22:48 +01:00
2024-01-23 16:03:29 +01:00
2023-11-23 16:23:14 +01:00
2024-04-02 18:47:19 +02:00
2023-10-17 18:51:13 +02:00
2024-04-02 07:27:33 +02:00
2024-03-28 17:28:20 +01:00
2024-04-02 07:27:33 +02:00
2023-07-21 15:08:27 +02:00
2024-04-03 11:58:03 +02:00
2024-03-22 16:12:36 +01:00
2023-11-17 16:56:18 +01:00
2023-11-23 16:23:14 +01:00
2024-03-26 15:15:59 +01:00
2023-06-30 16:12:36 +02:00
2023-04-23 09:46:15 +02:00
2023-11-20 11:38:26 +01:00
2024-02-01 10:58:30 +01:00
2024-03-28 17:28:20 +01:00
2024-03-28 17:28:20 +01:00
2024-03-12 17:37:11 +01:00
2024-03-27 11:38:28 +01:00
2024-03-25 21:21:47 +01:00
2024-03-27 11:38:28 +01:00
2023-05-15 12:07:52 +02:00
2024-03-28 17:32:51 +01:00
2024-04-03 08:46:37 +02:00
2024-04-02 07:27:33 +02:00
2024-04-03 08:46:37 +02:00
2023-11-23 16:23:14 +01:00
2024-04-02 07:27:33 +02:00
2023-11-18 11:16:21 +01:00
2023-07-24 17:12:29 +02:00
2024-01-30 08:27:26 +01:00
2023-11-16 19:35:10 +01:00
2024-03-11 19:00:37 +01:00
2024-03-14 15:21:02 +01:00
2024-03-08 17:20:43 +01:00
2023-02-17 16:01:34 +01:00
2024-03-06 10:39:57 +01:00