Re: [PATCH] net: Adding parameter detection in __ethtool_get_link_ksettings.

2019-08-26 Thread Dongxu Liu
> On 8/26/19 9:23 AM, Dongxu Liu wrote: > The __ethtool_get_link_ksettings symbol will be exported, > and external users may use an illegal address. > We should check the parameters before using them, > otherwise the system will crash. > > [ 8980.991134] BUG: unable to handl

[PATCH] net: Adding parameter detection in __ethtool_get_link_ksettings.

2019-08-26 Thread Dongxu Liu
/0x80 [ 8981.047688] [] bond_netdev_event+0x137/0x360 [bonding] ... Signed-off-by: Dongxu Liu --- net/core/ethtool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 6288e69..9a50b64 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c

[PATCH] net: Add the same IP detection for duplicate address.

2019-08-20 Thread Dongxu Liu
, DROP_GRATUITOUS_ARP) is disable, The case should be added to the IP conflict handling process. Signed-off-by: Dongxu Liu --- net/ipv4/arp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 05eb42f..a51c921 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c

[PATCH] net: Fix detection for IPv4 duplicate address.

2019-08-20 Thread Dongxu Liu
The network sends an ARP REQUEST packet to determine whether there is a host with the same IP. The source IP address of the packet is 0. However, Windows may also send the source IP address to determine, then the source IP address is equal to the destination IP address. Signed-off-by: Dongxu Liu