[Intel-wired-lan] [PATCH net] ice: Prevent probing virtual functions

G, GurucharanX gurucharanx.g at intel.com
Fri Aug 6 06:21:18 UTC 2021



> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Anirudh Venkataramanan
> Sent: Thursday, July 29, 2021 1:09 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH net] ice: Prevent probing virtual functions
> 
> The userspace utility "driverctl" can be used to change/override the system's
> default driver choices. This is useful in some situations (buggy driver, old
> driver missing a device ID, trying a workaround,
> etc.) where the user needs to load a different driver.
> 
> However, this is also prone to user error, where a driver is mapped to a
> device it's not designed to drive. For example, if the ice driver is mapped to
> driver iavf devices, the ice driver crashes.
> 
> Add a check to return an error if the ice driver is being used to probe a virtual
> function.
> 
> Fixes: 837f08fdecbe ("ice: Add basic driver framework for Intel(R) E800
> Series")
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_main.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 

Tested-by: Gurucharan G <gurucharanx.g at intel.com> (A Contingent worker at Intel)


More information about the Intel-wired-lan mailing list