Francesco Romani
369416b763
cm: handle nil cpumanager avoiding segfault
...
If the cpumanager feature gate is disabled, the corresponsing field
of the containerManager will be nil.
A couple functions don't check for this occurrence and happily
deference the pointer unconditionally, leading to possible segfaults.
The relevant functions were introduced to support the podresources API,
so to trigger this segfault all the following are needed:
- cpumanager feature gate has to be disabled explicitely
- any podresources API must be called
Worth pointing out that when the new functions were introduced (around
kubernetes 1.20) the default feature gate for cpumanager was already set
to true, hence this bug is expected to be triggered rarely.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-06-10 16:22:43 +02:00
..
2021-03-09 14:29:04 -08:00
2021-04-30 22:16:34 +00:00
2021-06-02 15:22:00 +00:00
2021-02-28 15:17:29 -08:00
2021-02-28 15:17:29 -08:00
2021-03-05 23:59:23 +05:30
2021-06-10 16:22:43 +02:00
2021-06-01 15:19:44 +08:00
2021-03-08 16:55:39 +08:00
2021-05-24 21:49:05 -07:00
2021-04-08 20:28:22 -07:00
2021-02-28 15:17:29 -08:00
2021-05-25 09:04:46 +02:00
2021-02-28 15:17:29 -08:00
2021-02-28 15:17:29 -08:00
2021-04-23 18:23:14 -07:00
2021-03-16 14:49:56 -07:00
2021-05-27 10:10:08 +08:00
2021-05-24 21:49:05 -07:00
2021-02-28 15:17:29 -08:00
2021-02-28 15:17:29 -08:00
2021-05-18 08:59:02 -04:00
2021-05-24 16:18:20 -07:00
2021-04-29 11:05:52 +08:00
2021-05-27 07:10:13 +09:00
2021-05-19 23:51:57 -07:00
2021-04-21 10:35:23 +02:00
2021-03-11 17:28:33 -08:00
2021-05-26 03:17:20 -07:00
2021-03-10 15:44:16 +08:00
2021-05-26 20:32:32 +05:30
2021-03-06 13:13:18 +08:00
2021-05-05 11:21:40 +02:00
2021-03-03 16:34:27 -05:00
2021-02-28 15:17:29 -08:00
2021-03-08 16:55:39 +08:00
2021-05-20 17:10:23 +02:00
2021-05-17 13:39:51 -07:00
2021-05-25 08:52:08 +08:00
2021-02-28 15:17:29 -08:00
2021-03-08 19:23:11 -08:00
2021-03-03 16:34:27 -05:00
2021-03-08 16:27:28 -08:00
2021-05-25 08:52:08 +08:00
2021-03-17 00:46:56 -07:00
2020-06-16 10:08:22 -07:00
2020-05-10 10:22:56 -04:00
2021-02-14 16:01:47 +08:00
2020-08-19 10:07:36 +09:00
2021-04-21 22:46:27 +03:00
2021-02-14 16:01:47 +08:00
2020-06-15 18:45:38 -04:00
2021-02-14 16:01:47 +08:00
2021-02-09 21:37:39 +01:00
2021-03-11 17:28:18 -08:00
2021-01-30 04:54:42 -08:00
2021-06-02 17:37:51 -07:00
2021-01-30 04:54:42 -08:00
2021-06-02 13:42:43 -07:00
2021-03-15 15:42:34 -07:00
2021-06-04 16:04:10 -07:00
2021-02-01 20:10:34 +01:00
2021-05-20 17:10:23 +02:00
2021-04-29 11:49:58 -05:00
2021-05-25 08:52:08 +08:00
2021-02-09 21:43:35 +01:00
2020-06-19 15:48:08 +00:00
2021-03-17 08:59:03 +08:00
2020-07-24 16:23:12 -04:00
2021-04-28 15:26:46 +08:00
2021-03-10 01:16:37 +09:00
2021-03-17 08:59:03 +08:00
2020-03-31 16:47:32 +08:00
2020-07-21 15:54:29 -04:00
2020-09-13 21:08:19 +08:00
2021-03-17 08:59:03 +08:00