diff options
author | 2023-02-14 15:08:27 +0100 | |
---|---|---|
committer | 2023-02-21 08:44:13 -1000 | |
commit | df8a688032280ecd07ace7c6fbc70f5650cca9af (patch) | |
tree | 1bd5deeda135d8a288d0c822e6619425831b120f /scripts/coverage/compare_gcov_json.py | |
parent | linux-user: Always exit from exclusive state in fork_end() (diff) | |
download | qemu-df8a688032280ecd07ace7c6fbc70f5650cca9af.tar.xz qemu-df8a688032280ecd07ace7c6fbc70f5650cca9af.zip |
cpus: Make {start,end}_exclusive() recursive
Currently dying to one of the core_dump_signal()s deadlocks, because
dump_core_and_abort() calls start_exclusive() two times: first via
stop_all_tasks(), and then via preexit_cleanup() ->
qemu_plugin_user_exit().
There are a number of ways to solve this: resume after dumping core;
check cpu_in_exclusive_context() in qemu_plugin_user_exit(); or make
{start,end}_exclusive() recursive. Pick the last option, since it's
the most straightforward one.
Fixes: da91c1920242 ("linux-user: Clean up when exiting due to a signal")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20230214140829.45392-3-iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/coverage/compare_gcov_json.py')
0 files changed, 0 insertions, 0 deletions