]> www.infradead.org Git - users/hch/xfs.git/commit
af_unix: Annotate data-race of net->unx.sysctl_max_dgram_qlen.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Tue, 4 Jun 2024 16:52:37 +0000 (09:52 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 6 Jun 2024 10:57:15 +0000 (12:57 +0200)
commitbd9f2d05731f6a112d0c7391a0d537bfc588dbe6
treeee79208fb687f270e67903ebdd83667de7b1a92e
parentb0632e53e0da8054e36bc973f0eec69d30f1b7c6
af_unix: Annotate data-race of net->unx.sysctl_max_dgram_qlen.

net->unx.sysctl_max_dgram_qlen is exposed as a sysctl knob and can be
changed concurrently.

Let's use READ_ONCE() in unix_create1().

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/unix/af_unix.c