kwin/src/plugins/platforms/drm
Vlad Zahorodnii b3e7031893 platforms/drm: Fix potential stack corruption
If the file descriptor of the DRM device is greater than FD_SETSIZE, the
stack will be corrupted. However, it is highly unlikely that we ever hit
this case because DRM devices are opened at startup of kwin, so the file
descriptors should small.

In order to prevent the potential stack corruption, this change replaces
the usage of select() with poll().

Unlike select(), the api of poll() is much more sensible. Back 20 or so
years ago the main argument against poll() was that it's not implemented
by all platforms. But, nowadays, it's supported on all major platforms.
2021-03-09 10:27:17 +02:00
..
abstract_egl_drm_backend.cpp
abstract_egl_drm_backend.h
CMakeLists.txt
drm.json
drm_backend.cpp Improve teardown of DrmGpu 2021-02-22 21:56:03 +01:00
drm_backend.h Improve teardown of DrmGpu 2021-02-22 21:56:03 +01:00
drm_buffer.cpp
drm_buffer.h
drm_buffer_gbm.cpp
drm_buffer_gbm.h
drm_gpu.cpp platforms/drm: Fix potential stack corruption 2021-03-09 10:27:17 +02:00
drm_gpu.h Improve teardown of DrmGpu 2021-02-22 21:56:03 +01:00
drm_inputeventfilter.cpp [platforms/drm] accept both keypress and keyrelease event in filter 2021-02-22 21:52:57 +05:30
drm_inputeventfilter.h
drm_object.cpp
drm_object.h
drm_object_connector.cpp
drm_object_connector.h
drm_object_crtc.cpp
drm_object_crtc.h
drm_object_plane.cpp
drm_object_plane.h
drm_output.cpp platforms/drm: inhibit the renderloop when screen is turned off 2021-03-04 15:01:15 +00:00
drm_output.h
drm_pointer.h
edid.cpp
edid.h
egl_gbm_backend.cpp Improvements for direct scanout 2021-03-02 17:17:36 +00:00
egl_gbm_backend.h
egl_multi_backend.cpp
egl_multi_backend.h
egl_stream_backend.cpp
egl_stream_backend.h
gbm_dmabuf.cpp
gbm_dmabuf.h
gbm_surface.cpp
gbm_surface.h
logging.cpp
logging.h
scene_qpainter_drm_backend.cpp
scene_qpainter_drm_backend.h