mesa/src/microsoft/vulkan
David Headrick 29f5be58e9
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
dozen: Resolve Seg Fault in dzn_physical_device_create
dzn_physical_device_create runs dzn_wsi_init which allocates and initilizes wsi_interfaces.
If the wsi initlizalization fails, the wsi_interfaces are cleaned up and freed (wsi_common.c:330-> wsi_device_finish).
Once the failure propogates up, dzn_physical_device_create runs dzn_physical_device_destroy.
Then, dzn_wsi_finish frees the wsi_interfaces again.

Above path led to a Segmentation Fault on my system when running:
dEQP-VK.api.device_init.create_instance_device_intentional_alloc_fail.basic

This change removes dzn_wsi_finish call if dzn_wsi_init fails, avoiding
a "double free"

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39928>
2026-02-17 15:19:37 +00:00
..
dzn_abi_helper.h
dzn_cmd_buffer.c treewide: use BITSET_*_COUNT 2025-12-16 17:42:10 +00:00
dzn_descriptor_set.c vk: descriptors: sort bindings along with flags 2026-01-20 15:55:47 +00:00
dzn_device.c dozen: Resolve Seg Fault in dzn_physical_device_create 2026-02-17 15:19:37 +00:00
dzn_dxcore.cpp dozen: Add support for VK_EXT_memory_budget 2026-02-12 19:08:27 +00:00
dzn_dxgi.c
dzn_dxgi.h
dzn_image.c vulkan: Drop the driver_internal from vk_image_view_init/create() 2025-09-05 23:34:14 +00:00
dzn_meta.c util/hash_table: don't allocate hash_table_u64::table, declare it statically 2025-08-21 06:13:48 +00:00
dzn_nir.c dozen: Use NIR_PASS instead of NIR_PASS_V 2025-07-25 08:55:14 -07:00
dzn_nir.h dzn: Rework indirect drawing keys for shaders and command signatures 2024-04-05 00:25:41 +00:00
dzn_physical_device_enum.h dozen: Add support for VK_EXT_memory_budget 2026-02-12 19:08:27 +00:00
dzn_pipeline.c microsoft: switch to new subgroup size info 2025-09-12 21:05:17 +00:00
dzn_private.h build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dzn_query.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dzn_sync.c
dzn_util.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dzn_wsi.c vulkan/wsi: Make get_blit_queue return a struct vk_queue * 2025-08-22 23:05:03 +00:00
meson.build meson: Remove VK_ICD_FILENAMES totally from source tree. 2025-12-10 14:46:11 +00:00