diff options
author | 2024-12-20 09:37:40 +0100 | |
---|---|---|
committer | 2024-12-23 10:38:46 -0800 | |
commit | 4c61d809cf608842112c77880f50810a564cd9cb (patch) | |
tree | eb4b6caaaf125d8158cad6f46f9e58d5768a744c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'eth-fbnic-support-basic-rss-config-and-setting-channel-count' (diff) | |
download | wireguard-linux-4c61d809cf608842112c77880f50810a564cd9cb.tar.xz wireguard-linux-4c61d809cf608842112c77880f50810a564cd9cb.zip |
net: ethtool: Fix suspicious rcu_dereference usage
The __ethtool_get_ts_info function can be called with or without the
rtnl lock held. When the rtnl lock is not held, using rtnl_dereference()
triggers a warning due to the lack of lock context.
Add an rcu_read_lock() to ensure the lock is acquired and to maintain
synchronization.
Reported-by: syzbot+a344326c05c98ba19682@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/netdev/676147f8.050a0220.37aaf.0154.GAE@google.com/
Fixes: b9e3f7dc9ed9 ("net: ethtool: tsinfo: Enhance tsinfo to support several hwtstamp by net topology")
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241220083741.175329-1-kory.maincent@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions