[PATCH v2 0/3] rcu: Detect accidental reuse of rcu head

Peter Xu posted 3 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251014191944.2225735-1-peterx@redhat.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>
tests/unit/test-rcu-list.c | 4 ++--
util/qht.c                 | 2 +-
util/rcu.c                 | 5 +++++
3 files changed, 8 insertions(+), 3 deletions(-)
[PATCH v2 0/3] rcu: Detect accidental reuse of rcu head
Posted by Peter Xu 1 month ago
v2:
- Change patch 2 subject and wording to avoid mentioning "double free" [PeterM]

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: Catch rcu_head misuse

 tests/unit/test-rcu-list.c | 4 ++--
 util/qht.c                 | 2 +-
 util/rcu.c                 | 5 +++++
 3 files changed, 8 insertions(+), 3 deletions(-)

-- 
2.50.1
Re: [PATCH v2 0/3] rcu: Detect accidental reuse of rcu head
Posted by Richard Henderson 1 month ago
On 10/14/25 12:19, Peter Xu wrote:
> Peter Xu (3):
>    qht: Zero-initialize qht_map
>    tests/test-rcu-*: Zero-initialize allocated elements
>    rcu: Catch rcu_head misuse

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~