Bug#1003116: NULL pointer dereference getting Vulkan surface properties if DISPLAY points to remote X server

Simon Richter sjr at debian.org
Tue Jan 4 13:19:04 GMT 2022


Package: libnvidia-eglcore
Version: 460.91.03-1
Severity: important
File: /usr/lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.91.03
Tags: upstream
X-Debbugs-Cc: sjr at debian.org

Hi,

I have a small test Vulkan application that just opens an X11 window and
then asks the installed Vulkan ICDs if they are capable of using this
window as a presentation surface.

When logged in over SSH, $DISPLAY points to a remote server, so my
expectation would be for the nV driver to graciously decline when asked
if this is a valid render target. Instead, I get

==30443== Warning: invalid file descriptor -1 in syscall close()
==30443== Warning: unimplemented fcntl command: 1033
==30443== Jump to the invalid address stated on the next line
==30443==    at 0x0: ???
==30443==    by 0x123B284E: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.91.03)
==30443==    by 0x123A601B: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.91.03)
==30443==    by 0x123B2D82: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.91.03)
==30443==    by 0x1457033D: vulkan_layer_chassis::GetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice_T*, VkSurfaceKHR_T*, VkSurfaceCapabilitiesKHR*) (chassis.cpp:4703)
==30443==    by 0x1098C0: vulkan_setup (vulkan_setup.c:211)
==30443==    by 0x109319: main (vkload.c:27)
==30443==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

In the same way, calling vulkaninfo gives

ERROR at /build/vulkan-tools-oFB8Ns/vulkan-tools-1.2.162.0+dfsg1/vulkaninfo/vulkaninfo.h:248:vkGetPhysicalDeviceSurfaceFormats2KHR failed with ERROR_INITIALIZATION_FAILED

with DISPLAY unset, vulkaninfo shows both my GTK980 and the llvmpipe
driver as normal, with no presentable surfaces.

   Simon

-- System Information:
Debian Release: 11.2
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-9-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages libnvidia-eglcore:amd64 depends on:
ii  libc6  2.31-13+deb11u2

libnvidia-eglcore:amd64 recommends no packages.

libnvidia-eglcore:amd64 suggests no packages.

-- no debconf information



More information about the pkg-nvidia-devel mailing list