OSDN Git Service

st/nine: fix stack corruption due to ABI mismatch
authorAndre Heider <a.heider@gmail.com>
Tue, 6 Nov 2018 08:27:12 +0000 (09:27 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 14 Nov 2018 18:53:02 +0000 (18:53 +0000)
commit5f137e94b992a62e98dfa604cd43f57c5385e53b
treeb71223b8b5c51e2fb3252d49d1178182f0259b5f
parentc64a78ec0a5daf862e10d8a4fb931348167b6d3f
st/nine: fix stack corruption due to ABI mismatch

This fixes various crashes and hangs when using nine's 'thread_submit'
feature.

On 64bit, the thread function's data argument would just be NULL.
On 32bit, the data argument would be garbage depending on the compiler
flags (in my case -march>=core2).

Fixes: f3fa7e3068512d ("st/nine: Use WINE thread for threadpool")
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Andre Heider <a.heider@gmail.com>
Reviewed-by: Axel Davy <davyaxel0@gmail.com>
(cherry picked from commit 10598c9667a9c5ea04ac8279549b1df8c026ef51)
src/gallium/state_trackers/nine/threadpool.c