From: "Cen Zhang (Microsoft)" <cenzhang@linux.microsoft.com>
To: Cen Zhang <cenzhang@linux.microsoft.com>
Cc: AutonomousCodeSecurity@microsoft.com,
Christian Brauner <brauner@kernel.org>,
Davidlohr Bueso <dave@stgolabs.net>,
David Howells <dhowells@redhat.com>, Kees Cook <kees@kernel.org>,
linux-kernel@vger.kernel.org, stable@vger.kernel.org,
tgopinath@linux.microsoft.com,
"Dae R. Jeong" <threeearcat@gmail.com>
Subject: Re: [PATCH] watch_queue: Fix missing locking in watch_queue_set_size()
Date: Thu, 8 Oct 2026 23:59:13 -0400 [thread overview]
Message-ID: <20261009035913.73056-1-cenzhang@linux.microsoft.com> (raw)
In-Reply-To: <20261008224233.9675-1-cenzhang@linux.microsoft.com>
> + /* Use lock since watches may already be attached. */
> + spin_lock_bh(&wqueue->lock);
> wqueue->notes = pages;
> wqueue->notes_bitmap = bitmap;
> wqueue->nr_pages = nr_pages;
> wqueue->nr_notes = nr_notes;
> + spin_unlock_bh(&wqueue->lock);
I'll send a v2 tomorrow, replacing the lock with smp_store_release()/
smp_load_acquire() for wqueue->nr_notes.
next prev parent reply other threads:[~2026-10-09 3:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-08 22:42 Cen Zhang (Microsoft)
2026-10-09 3:59 ` Cen Zhang (Microsoft) [this message]
2026-10-09 11:05 ` Greg KH
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=20261009035913.73056-1-cenzhang@linux.microsoft.com \
--to=cenzhang@linux.microsoft.com \
--cc=AutonomousCodeSecurity@microsoft.com \
--cc=brauner@kernel.org \
--cc=dave@stgolabs.net \
--cc=dhowells@redhat.com \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=tgopinath@linux.microsoft.com \
--cc=threeearcat@gmail.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
all inboxes | Powered by JetHome®