public inbox for chrome-platform@lists.linux.dev
 help / color / mirror / Atom feed
From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Danilo Krummrich <dakr@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>, Shuah Khan <shuah@kernel.org>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Bartosz Golaszewski <brgl@bgdev.pl>,
	Wolfram Sang <wsa+renesas@sang-engineering.com>,
	Jason Gunthorpe <jgg@nvidia.com>, Johan Hovold <johan@kernel.org>,
	linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
	chrome-platform@lists.linux.dev, tzungbi@kernel.org
Subject: [PATCH 0/4] revocable: Fix reported race conditions
Date: Thu, 29 Jan 2026 14:37:29 +0000	[thread overview]
Message-ID: <20260129143733.45618-1-tzungbi@kernel.org> (raw)

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


             reply	other threads:[~2026-01-29 14:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-29 14:37 Tzung-Bi Shih [this message]
2026-01-29 14:37 ` [PATCH 1/4] revocable: Fix races in revocable_alloc() using RCU Tzung-Bi Shih
2026-01-29 14:37 ` [PATCH 2/4] revocable: Add KUnit test for provider lifetime races Tzung-Bi Shih
2026-01-29 14:37 ` [PATCH 3/4] revocable: fix SRCU index corruption by requiring caller-provided storage Tzung-Bi Shih
2026-01-29 14:37 ` [PATCH 4/4] revocable: Add KUnit test for concurrent access Tzung-Bi Shih

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260129143733.45618-1-tzungbi@kernel.org \
    --to=tzungbi@kernel.org \
    --cc=brgl@bgdev.pl \
    --cc=chrome-platform@lists.linux.dev \
    --cc=corbet@lwn.net \
    --cc=dakr@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jgg@nvidia.com \
    --cc=johan@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=shuah@kernel.org \
    --cc=wsa+renesas@sang-engineering.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox