lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211119184709.19209-1-fufuyqqqqqq@gmail.com>
Date:   Sat, 20 Nov 2021 02:47:09 +0800
From:   Yeqi Fu <fufuyqqqqqq@...il.com>
To:     hkallweit1@...il.com, nic_swsd@...ltek.com, davem@...emloft.net,
        kuba@...nel.org
Cc:     netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
        Yeqi Fu <fufuyqqqqqq@...il.com>
Subject: [PATCH] r8169: Apply configurations to the L0s/L1 entry delay of RTL8105e and RTL8401

We properly configure the L0s/L1 entry delay in the startup functions of
RTL8105e and RTL8401 through rtl_set_def_aspm_entry_latency(), which will
avoid local denial of service.

Signed-off-by: Yeqi Fu <fufuyqqqqqq@...il.com>
---
 drivers/net/ethernet/realtek/r8169_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
index bbe21db20417..4f533007a456 100644
--- a/drivers/net/ethernet/realtek/r8169_main.c
+++ b/drivers/net/ethernet/realtek/r8169_main.c
@@ -3420,6 +3420,7 @@ static void rtl_hw_start_8401(struct rtl8169_private *tp)
 		{ 0x07,	0xffff, 0x8e68 },
 	};
 
+	rtl_set_def_aspm_entry_latency(tp);
 	rtl_ephy_init(tp, e_info_8401);
 	RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Beacon_en);
 }
@@ -3437,6 +3438,7 @@ static void rtl_hw_start_8105e_1(struct rtl8169_private *tp)
 		{ 0x0a,	0, 0x0020 }
 	};
 
+	rtl_set_def_aspm_entry_latency(tp);
 	/* Force LAN exit from ASPM if Rx/Tx are not idle */
 	RTL_W32(tp, FuncEvent, RTL_R32(tp, FuncEvent) | 0x002800);
 
-- 
2.30.1 (Apple Git-130)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ