diff options
| author | 2024-02-14 08:48:28 +0000 | |
|---|---|---|
| committer | 2024-02-17 16:20:41 +0100 | |
| commit | 2444a80c1cc2c4240f60f2162abef3797c1803de (patch) | |
| tree | 2a977ffce3acb403fba8704d50edacb7681dcf3e /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | workqueue: make wq_subsys const (diff) | |
kobject: make uevent_seqnum atomic
We will soon no longer acquire uevent_sock_mutex
for most kobject_uevent_net_broadcast() calls,
and also while calling uevent_net_broadcast().
Make uevent_seqnum an atomic64_t to get its own protection.
This fixes a race while reading /sys/kernel/uevent_seqnum.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Christian Brauner <brauner@kernel.org>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Link: https://lore.kernel.org/r/20240214084829.684541-2-edumazet@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
