diff options
author | Eric Dumazet <edumazet@google.com> | 2024-02-14 11:48:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-17 18:20:41 +0300 |
commit | 2444a80c1cc2c4240f60f2162abef3797c1803de (patch) | |
tree | 2a977ffce3acb403fba8704d50edacb7681dcf3e /scripts/patch-kernel | |
parent | 5df9197edd731a44682444631d68c2384f381bf1 (diff) | |
download | linux-2444a80c1cc2c4240f60f2162abef3797c1803de.tar.xz |
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 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions