mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-25 13:58:14 +02:00
For fixing the following UAF.
==191==ERROR: AddressSanitizer: heap-use-after-free on address 0x518000000168 at pc 0x7f7aac77493e bp 0x7ffdd9dddc00 sp 0x7ffdd9dddbf8
READ of size 8 at 0x518000000168 thread T0
#0 0x7f7aac77493d in udev_input_destroy ../libweston/libinput-seat.c:388
#1 0x7f7aac73e632 in drm_shutdown ../libweston/backend-drm/drm.c:3623
#2 0x7f7aad9208b8 in weston_compositor_shutdown_backends ../libweston/compositor.c:10337
#3 0x7f7aad920a7d in weston_compositor_destroy ../libweston/compositor.c:10367
#4 0x7f7aada35ed8 in wet_main ../frontend/main.c:4934
#5 0x561e808014d6 in execute_compositor ../tests/weston-test-fixture-compositor.c:431
#6 0x561e8080556b in weston_test_harness_execute_as_client ../tests/weston-test-runner.c:570
#7 0x561e807efe1d in fixture_setup ../tests/drm-writeback-screenshot-test.c:48
#8 0x561e807efe9e in fixture_setup_run_ ../tests/drm-writeback-screenshot-test.c:50
#9 0x561e80805bb6 in main ../tests/weston-test-runner.c:726
#10 0x7f7aad496ca7 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#11 0x7f7aad496d64 in __libc_start_main_impl ../csu/libc-start.c:360
#12 0x561e807ef860 in _start (/home/mvlad/vkms/weston/b/tests/test-drm-writeback-screenshot+0xe860) (BuildId: 9f9e2ed12b9317dd859498374500f2406c32e5d3)
0x518000000168 is located 232 bytes inside of 792-byte region [0x518000000080,0x518000000398)
freed by thread T0 here:
#0 0x7f7aadb588f8 in free ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:52
#1 0x7f7aac3f2f9d in wet_module_init ../tests/weston-test.c:878
#2 0x7f7aada1b425 in wet_load_module ../frontend/main.c:989
#3 0x7f7aada1b9eb in load_modules ../frontend/main.c:1069
#4 0x7f7aada35711 in wet_main ../frontend/main.c:4865
#5 0x561e808014d6 in execute_compositor ../tests/weston-test-fixture-compositor.c:431
#6 0x561e8080556b in weston_test_harness_execute_as_client ../tests/weston-test-runner.c:570
#7 0x561e807efe1d in fixture_setup ../tests/drm-writeback-screenshot-test.c:48
#8 0x561e807efe9e in fixture_setup_run_ ../tests/drm-writeback-screenshot-test.c:50
#9 0x561e80805bb6 in main ../tests/weston-test-runner.c:726
#10 0x7f7aad496ca7 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
previously allocated by thread T0 here:
#0 0x7f7aadb59610 in calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
#1 0x7f7aac3eedc5 in zalloc ../include/libweston/zalloc.h:38
#2 0x7f7aac3f2c55 in wet_module_init ../tests/weston-test.c:836
#3 0x7f7aada1b425 in wet_load_module ../frontend/main.c:989
#4 0x7f7aada1b9eb in load_modules ../frontend/main.c:1069
#5 0x7f7aada35711 in wet_main ../frontend/main.c:4865
#6 0x561e808014d6 in execute_compositor ../tests/weston-test-fixture-compositor.c:431
#7 0x561e8080556b in weston_test_harness_execute_as_client ../tests/weston-test-runner.c:570
#8 0x561e807efe1d in fixture_setup ../tests/drm-writeback-screenshot-test.c:48
#9 0x561e807efe9e in fixture_setup_run_ ../tests/drm-writeback-screenshot-test.c:50
#10 0x561e80805bb6 in main ../tests/weston-test-runner.c:726
#11 0x7f7aad496ca7 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
This would be caused by not being able to compile keymaps.
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
|
||
|---|---|---|
| .. | ||
| reference | ||
| visualization | ||
| alpha-blending-test.c | ||
| assert-test.c | ||
| bad-buffer-test.c | ||
| buffer-transforms-test.c | ||
| client-buffer-test.c | ||
| color-icc-output-test.c | ||
| color-lcms-optimizer-test.c | ||
| color-management-parametric-test.c | ||
| color-management-test.c | ||
| color-math-test.c | ||
| color-metadata-errors-test.c | ||
| color-metadata-parsing-test.c | ||
| color_util.c | ||
| color_util.h | ||
| config-parser-test.c | ||
| constraints-test.c | ||
| custom-env-test.c | ||
| devices-test.c | ||
| drm-formats-test.c | ||
| drm-smoke-test.c | ||
| drm-writeback-screenshot-test.c | ||
| event-test.c | ||
| idalloc-test.c | ||
| image-iter.h | ||
| input-timestamps-helper.c | ||
| input-timestamps-helper.h | ||
| internal-screenshot-test.c | ||
| iterate-debug-scopes-test.c | ||
| ivi-layout-internal-test.c | ||
| ivi-layout-test-client.c | ||
| ivi-layout-test-plugin.c | ||
| ivi-shell-app-test.c | ||
| ivi-test.h | ||
| keyboard-test.c | ||
| kiosk-shell-test.c | ||
| lcms-util-test.c | ||
| lcms_util.c | ||
| lcms_util.h | ||
| linalg-test.c | ||
| linux-explicit-synchronization-test.c | ||
| lua-shell-test.c | ||
| matrix-test.c | ||
| matrix-transform-test.c | ||
| meson.build | ||
| output-capture-protocol-test.c | ||
| output-damage-test.c | ||
| output-decorations-test.c | ||
| output-transforms-test.c | ||
| paint-node-test.c | ||
| plugin-registry-test.c | ||
| pointer-shot-test.c | ||
| pointer-test.c | ||
| presentation-test.c | ||
| roles-test.c | ||
| safe-signal-output-removal-test.c | ||
| safe-signal-test.c | ||
| setbacklight.c | ||
| single-pixel-buffer-test.c | ||
| string-test.c | ||
| subsurface-shot-test.c | ||
| subsurface-test.c | ||
| surface-global-test.c | ||
| surface-screenshot-test.c | ||
| surface-test.c | ||
| text-test.c | ||
| timespec-test.c | ||
| touch-test.c | ||
| vertex-clip-test.c | ||
| viewporter-shot-test.c | ||
| viewporter-test.c | ||
| weston-test-assert.h | ||
| weston-test-client-helper.c | ||
| weston-test-client-helper.h | ||
| weston-test-desktop-shell.c | ||
| weston-test-fixture-compositor.c | ||
| weston-test-fixture-compositor.h | ||
| weston-test-runner.c | ||
| weston-test-runner.h | ||
| weston-test.c | ||
| weston-testsuite-data.h | ||
| xcb-client-helper.c | ||
| xcb-client-helper.h | ||
| xdg-client-helper.c | ||
| xdg-client-helper.h | ||
| xwayland-test.c | ||