Skip to content

rcu: Detect accidental reuse of rcu head

Peter Xu qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Change patch 2 subject and wording to avoid mentioning "double free" [PeterM]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qht: Zero-initialize qht_maputil/qht.c+1 -11 reply
2/3tests/test-rcu-*: Zero-initialize allocated elementstests/unit/test-rcu-list.c+2 -20 replies
3/3rcu: Catch rcu_head misuseutil/rcu.c+5 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPhilippe Mathieu-DaudéRichard Henderson
SeriesR-b
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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(-)
Signature · 1 line
2.50.1