[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260129143733.45618-1-tzungbi@kernel.org>
Date: Thu, 29 Jan 2026 14:37:29 +0000
From: Tzung-Bi Shih <tzungbi@...nel.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Danilo Krummrich <dakr@...nel.org>
Cc: Jonathan Corbet <corbet@....net>,
Shuah Khan <shuah@...nel.org>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Bartosz Golaszewski <brgl@...ev.pl>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Jason Gunthorpe <jgg@...dia.com>,
Johan Hovold <johan@...nel.org>,
linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org,
chrome-platform@...ts.linux.dev,
tzungbi@...nel.org
Subject: [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/aXdy-b3GOJkzGqYo@hovoldconsulting.com/
[2] https://lore.kernel.org/all/20260124170535.11756-4-johan@kernel.org/
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(-)
--
2.53.0.rc1.217.geba53bf80e-goog
Powered by blists - more mailing lists