]> www.infradead.org Git - users/dwmw2/linux.git/commit
Catch dwmw2's deadlock kvm-srcu-lockdep
authorMichal Luczaj <mhal@rbox.co>
Sat, 31 Dec 2022 01:26:49 +0000 (02:26 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 13 Jan 2023 10:00:16 +0000 (10:00 +0000)
commitb553205abfd0dda040027716736621bfd9999a0f
tree9430a539355f0edefa040b8a76b3392579dcc10d
parent652a19630713424501a2e8529df3f369e92bc047
Catch dwmw2's deadlock

On 12/30/22 14:18, Joel Fernandes wrote:
> I think the patch from Matthew Wilcox will address it because the
> read side section already acquires the dep_map. So lockdep subsystem
> should be able to nail the dependency. (...)

Perhaps it's something misconfigured on my side, but I still don't see any
lockdep splats, just the usual task hang warning after 120s.

If that's any help, here's a crude selftest (actually a severed version of
xen_shinfo_test). Under current mainline 6.2.0-rc1 it results in exactly
the type of deadlocks described by David.

Michal
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/x86_64/deadlocks_test.c [new file with mode: 0644]