diff options
| author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2025-01-15 18:55:43 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-08 09:57:23 +0100 |
| commit | f98ccd7d77210ff939bb2a8d854d2ff3619ed8d7 (patch) | |
| tree | 081a44cb9bfa78ae94bbf5eed5d1d579f2a0ebd7 /tools/testing | |
| parent | eb5516343dafc58554355f65c49be60304d47c39 (diff) | |
| download | linux-f98ccd7d77210ff939bb2a8d854d2ff3619ed8d7.tar.gz linux-f98ccd7d77210ff939bb2a8d854d2ff3619ed8d7.tar.bz2 linux-f98ccd7d77210ff939bb2a8d854d2ff3619ed8d7.zip | |
dev: Acquire netdev_rename_lock before restoring dev->name in dev_change_name().
[ Upstream commit e361560a7912958ba3059f51e7dd21612d119169 ]
The cited commit forgot to add netdev_rename_lock in one of the
error paths in dev_change_name().
Let's hold netdev_rename_lock before restoring the old dev->name.
Fixes: 0840556e5a3a ("net: Protect dev->name by seqlock.")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250115095545.52709-2-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions
