diff options
| author | Kory Maincent <[email protected]> | 2024-12-20 08:37:40 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-12-23 18:38:46 +0000 |
| commit | 4c61d809cf608842112c77880f50810a564cd9cb (patch) | |
| tree | eb4b6caaaf125d8158cad6f46f9e58d5768a744c /drivers/fpga/xilinx-spi.c | |
| parent | Merge branch 'eth-fbnic-support-basic-rss-config-and-setting-channel-count' (diff) | |
| download | kernel-4c61d809cf608842112c77880f50810a564cd9cb.tar.gz kernel-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: [email protected]
Closes: https://lore.kernel.org/netdev/[email protected]/
Fixes: b9e3f7dc9ed9 ("net: ethtool: tsinfo: Enhance tsinfo to support several hwtstamp by net topology")
Signed-off-by: Kory Maincent <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions
