Jason Andryuk
d2ecf97f91
libxl: Don't segfault on soft-reset failure
...
If domain_soft_reset_cb can't rename the save file, it doesn't call
initiate_domain_create() and calls domcreate_complete().
Skipping initiate_domain_create() means dcs->console_wait is
uninitialized and all 0s.
We have:
domcreate_complete()
libxl__xswait_stop()
libxl__ev_xswatch_deregister().
The uninitialized slotnum 0 is considered valid (-1 is the invalid
sentinel), so the NULL pointer path to passed to xs_unwatch() which
segfaults.
libxl__ev_xswatch_deregister:watch w=0x12bc250 wpath=(null) token=0/0: deregister slotnum=0
Move dcs->console_xswait initialization into the callers of
initiate_domain_create, do_domain_create() and do_domain_soft_reset(),
so it is initialized along with the other dcs state.
Fixes: c57e6ebd8c ("(lib)xl: soft reset support")
Signed-off-by: Jason Andryuk <jandryuk@gmail.com >
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com >
2022-04-01 17:01:57 +01:00
..
2020-10-01 13:26:09 +02:00
2021-10-13 15:10:38 +01:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-12-15 16:24:16 +00:00
2022-02-08 11:10:52 +00:00
2021-10-15 12:40:21 -07:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2021-10-15 12:40:21 -07:00
2020-10-01 13:58:42 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2021-09-03 15:09:48 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-12-15 16:24:16 +00:00
2020-10-01 13:26:09 +02:00
2022-02-08 18:00:08 +00:00
2020-10-01 13:26:09 +02:00
2022-04-01 17:01:57 +01:00
2022-02-08 11:10:52 +00:00
2022-02-08 11:10:52 +00:00
2021-11-08 15:10:05 +00:00
2020-10-01 13:26:09 +02:00
2021-03-18 14:56:33 +01:00
2021-12-16 20:27:12 +00:00
2022-02-08 11:10:52 +00:00
2022-02-08 11:10:52 +00:00
2020-10-08 12:47:59 +00:00
2020-10-01 13:26:09 +02:00
2022-02-08 11:10:52 +00:00
2021-01-29 22:50:08 +00:00
2020-10-01 13:26:09 +02:00
2021-03-12 08:59:56 +01:00
2022-03-31 19:50:03 +01:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2021-01-29 22:50:08 +00:00
2020-10-08 12:56:03 +00:00
2021-01-29 22:50:08 +00:00
2020-10-01 13:26:09 +02:00
2022-01-27 13:51:19 +01:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2021-05-04 18:35:35 +01:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2022-01-13 14:33:16 +01:00
2020-10-01 13:26:09 +02:00
2020-12-15 16:24:16 +00:00
2022-02-08 11:10:52 +00:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2021-02-08 16:28:34 +00:00
2020-10-01 13:26:09 +02:00
2021-01-29 22:50:08 +00:00
2020-10-01 13:26:09 +02:00
2022-02-08 11:10:52 +00:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2021-11-08 15:10:05 +00:00
2020-12-15 16:24:16 +00:00
2021-12-16 20:27:12 +00:00
2021-01-29 22:50:08 +00:00
2020-12-15 16:24:16 +00:00
2020-12-15 16:24:16 +00:00
2020-10-01 13:58:42 +02:00
2020-12-15 16:24:16 +00:00
2020-12-15 16:24:16 +00:00
2021-09-24 11:07:50 +01:00
2020-10-01 13:26:09 +02:00
2021-10-15 12:40:21 -07:00
2020-10-01 13:26:09 +02:00
2022-02-08 11:10:52 +00:00
2022-02-08 11:15:53 +00:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00
2020-10-01 13:26:09 +02:00