Re: [PATCH net v5] ethtool: check device is present when getting link settings
From: patchwork-bot+netdevbpf
Date: Mon Aug 26 2024 - 18:30:36 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Fri, 23 Aug 2024 16:26:58 +1000 you wrote:
> A sysfs reader can race with a device reset or removal, attempting to
> read device state when the device is not actually present. eg:
>
> [exception RIP: qed_get_current_link+17]
> #8 [ffffb9e4f2907c48] qede_get_link_ksettings at ffffffffc07a994a [qede]
> #9 [ffffb9e4f2907cd8] __rh_call_get_link_ksettings at ffffffff992b01a3
> #10 [ffffb9e4f2907d38] __ethtool_get_link_ksettings at ffffffff992b04e4
> #11 [ffffb9e4f2907d90] duplex_show at ffffffff99260300
> #12 [ffffb9e4f2907e38] dev_attr_show at ffffffff9905a01c
> #13 [ffffb9e4f2907e50] sysfs_kf_seq_show at ffffffff98e0145b
> #14 [ffffb9e4f2907e68] seq_read at ffffffff98d902e3
> #15 [ffffb9e4f2907ec8] vfs_read at ffffffff98d657d1
> #16 [ffffb9e4f2907f00] ksys_read at ffffffff98d65c3f
> #17 [ffffb9e4f2907f38] do_syscall_64 at ffffffff98a052fb
>
> [...]
Here is the summary with links:
- [net,v5] ethtool: check device is present when getting link settings
https://git.kernel.org/netdev/net/c/a699781c79ec
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html