This is an idea suggested by Peter Maydell:
https://lore.kernel.org/all/CAFEAcA--K0=EJNNvj98i=ewGY=tN3u4S0+fNb9kJpYynzjHEhw@mail.gmail.com/
After this small series applied, we should be able to assert on misuse of
accidental (wrong) re-use on a rcu head.
Please review, thanks.
Peter Xu (3):
qht: Zero-initialize qht_map
tests/test-rcu-*: Zero-initialize allocated elements
rcu: Avoid double rcu frees
tests/unit/test-rcu-list.c | 4 ++--
util/qht.c | 2 +-
util/rcu.c | 2 ++
3 files changed, 5 insertions(+), 3 deletions(-)
--
2.50.1