|
From: | Eric Blake |
Subject: | Re: [Qemu-devel] [PULL 02/46] qemu-thread: fix races on threads that exit very quickly |
Date: | Thu, 21 Dec 2017 08:33:11 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
On 12/20/2017 09:40 PM, linzhecheng wrote:
If qemu_thread_args is freed here, start_routine(arg) will lead to use after free because arg equals to qemu_thread_argsNo, we explicitly copied qemu_thread_args->arg into a local variable prior to freeing qemu_thread_args, so that we do not have to dereference the freed variable.OK, that's true.
By the way, your mailer is breaking threading; it is omitting 'In-Reply-To:' and 'References:' headers, which makes every mail from you show up as a new top-level thread, rather than properly threaded to what you are responding to.
-- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |