[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240216-fluggast-wohnt-17a30f7420d4@brauner>
Date: Fri, 16 Feb 2024 15:52:13 +0100
From: Christian Brauner <brauner@...nel.org>
To: Eric Dumazet <edumazet@...gle.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel <linux-kernel@...r.kernel.org>, "Rafael J . Wysocki" <rafael@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>, netdev@...r.kernel.org, "David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [PATCH 1/2] kobject: make uevent_seqnum atomic
On Wed, Feb 14, 2024 at 08:48:28AM +0000, Eric Dumazet wrote:
> 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@...gle.com>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Cc: Christian Brauner <brauner@...nel.org>
> ---
Nice,
Reviewed-by: Christian Brauner <brauner@...nel.org>
Powered by blists - more mailing lists