Re: [PATCH v2] ethtool: fix a potential missing-check bug

2018-05-01 Thread David Miller
From: Wenwen Wang Date: Mon, 30 Apr 2018 12:31:13 -0500 > In ethtool_get_rxnfc(), the object "info" is firstly copied from > user-space. If the FLOW_RSS flag is set in the member field flow_type of > "info" (and cmd is ETHTOOL_GRXFH), info needs to be copied again from >

Re: [PATCH v2] ethtool: fix a potential missing-check bug

2018-05-01 Thread David Miller
From: Wenwen Wang Date: Mon, 30 Apr 2018 12:31:13 -0500 > In ethtool_get_rxnfc(), the object "info" is firstly copied from > user-space. If the FLOW_RSS flag is set in the member field flow_type of > "info" (and cmd is ETHTOOL_GRXFH), info needs to be copied again from > user-space because

[PATCH v2] ethtool: fix a potential missing-check bug

2018-04-30 Thread Wenwen Wang
In ethtool_get_rxnfc(), the object "info" is firstly copied from user-space. If the FLOW_RSS flag is set in the member field flow_type of "info" (and cmd is ETHTOOL_GRXFH), info needs to be copied again from user-space because FLOW_RSS is newer and has new definition, as mentioned in the comment.

[PATCH v2] ethtool: fix a potential missing-check bug

2018-04-30 Thread Wenwen Wang
In ethtool_get_rxnfc(), the object "info" is firstly copied from user-space. If the FLOW_RSS flag is set in the member field flow_type of "info" (and cmd is ETHTOOL_GRXFH), info needs to be copied again from user-space because FLOW_RSS is newer and has new definition, as mentioned in the comment.