Skip to content

revocable: Fix reported race conditions

Tzung-Bi Shih chrome-platform linux-kselftest lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4revocable: Fix races in revocable_alloc() using RCUDocumentation/driver-api/driver-model/revocable.rst drivers/base/revocable.c drivers/base/revocable_test.c +2 more+72 -710 replies
2/4revocable: Add KUnit test for provider lifetime racesdrivers/base/revocable_test.c+41 -00 replies
3/4revocable: fix SRCU index corruption by requiring caller-provided storageDocumentation/driver-api/driver-model/revocable.rst drivers/base/revocable.c drivers/base/revocable_test.c +2 more+102 -1130 replies
4/4revocable: Add KUnit test for concurrent accessdrivers/base/revocable_test.c+104 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] revocable: Fix reported race conditions

The 1st patch fixes the issue reported in [1]. The 2nd patch adds KUnit test for the cases.

The 3rd patch fixes the issue reported in [2]. The 4th patch adds KUnit test for one of the cases.

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

Tzung-Bi Shih (4):
revocable: Fix races in revocable_alloc() using RCU
revocable: Add KUnit test for provider lifetime races
revocable: fix SRCU index corruption by requiring caller-provided
storage
revocable: Add KUnit test for concurrent access

 .../driver-api/driver-model/revocable.rst     |  17 +-
 drivers/base/revocable.c                      | 118 +++++-----
 drivers/base/revocable_test.c                 | 216 +++++++++++++++---
 include/linux/revocable.h                     |  60 +++--
 .../revocable/test_modules/revocable_test.c   |  54 ++---
 5 files changed, 300 insertions(+), 165 deletions(-)
Signature · 1 line
2.53.0.rc1.217.geba53bf80e-goog