 ixgbe: fix incorrect map used in eee linkmode · gregkh/linux@682105a · GitHub Skip to content Navigation Menu Toggle navigation Sign in Appearance settings Platform AI CODE CREATION GitHub Copilot Write better code with AI GitHub Spark Build and deploy intelligent apps GitHub Models Manage and compare prompts MCP Registry New Integrate external tools DEVELOPER WORKFLOWS Actions Automate any workflow Codespaces Instant dev environments Issues Plan and track work Code Review Manage code changes APPLICATION SECURITY GitHub Advanced Security Find and fix vulnerabilities Code security Secure your code as you build Secret protection  EXPLORE Why GitHub Documentation Blog Changelog Marketplace View all features Solutions BY COMPANY SIZE Enterprises Small and medium teams Startups Nonprofits BY USE CASE App Modernization DevSecOps DevOps CI/CD View all use cases BY INDUSTRY Healthcare Financial services Manufacturing Government View all industries View all solutions Resources EXPLORE BY TOPIC AI Software Development DevOps Security View all topics EXPLORE BY TYPE Customer stories Events &amp; webinars Ebooks &amp; reports Business insights GitHub Skills SUPPORT &amp; SERVICES Documentation Customer support Community forum Trust center Partners View all resources Open Source COMMUNITY GitHub Sponsors Fund open source developers PROGRAMS Security Lab Maintainer Community Accelerator GitHub Stars Archive Program REPOSITORIES Topics Trending Collections Enterprise ENTERPRISE SOLUTIONS Enterprise platform AI-powered developer platform AVAILABLE ADD-ONS GitHub Advanced Security Enterprise-grade security features Copilot for Business Enterprise-grade AI features Premium Support Enterprise-grade 24/7 support Pricing Search or jump to... Search code, repositories, users, issues, pull requests... --> Search Clear Search syntax tips Provide feedback --> We read every piece of feedback, and take your input very seriously.  Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly --> Name Query To see all available qualifiers, see our documentation . Cancel Create saved search Sign in Sign up Appearance settings Resetting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} gregkh / linux Public Notifications You must be signed in to change notification settings Fork 686 Star 644 Code Actions Security and quality 0 Insights Additional navigation options Code Actions Security and quality Insights Commit 682105a Browse files Browse files aloktiwa authored and gregkh committed ixgbe: fix incorrect map used in eee linkmode [ Upstream commit b7e5c3e ] incorrectly used ixgbe_lp_map in loops intended to populate the supported and advertised EEE linkmode bitmaps based on ixgbe_ls_map. This results in incorrect bit setting and potential out-of-bounds access, since ixgbe_lp_map and ixgbe_ls_map have different sizes and purposes. ixgbe_lp_map[i] -&gt; ixgbe_ls_map[i] Use ixgbe_ls_map for supported and advertised linkmodes, and keep ixgbe_lp_map usage only for link partner (lp_advertised) mapping. Fixes: 9356b6d ("net: ethernet: ixgbe: Convert EEE to use linkmodes") Signed-off-by: Alok Tiwari &lt;alok.a.tiwari@oracle.com&gt; Reviewed-by: Aleksandr Loktionov &lt;aleksandr.loktionov@intel.com&gt; Reviewed-by: Paul Menzel &lt;pmenzel@molgen.mpg.de&gt; Tested-by: Rinitha S &lt;sx.rinitha@intel.com&gt; (A Contingent worker at Intel) Signed-off-by: Tony Nguyen &lt;anthony.l.nguyen@intel.com&gt; Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt; 1 parent 66e7cdb commit 682105a Copy full SHA for 682105a 1 file changed + 2 - 2 Lines changed: 2 additions &amp; 2 deletions File tree Expand file tree Collapse file tree Open diff view settings Filter options drivers/net/ethernet/intel/ixgbe ixgbe_ethtool.c Expand file tree Collapse file tree Open diff view settings Collapse file ‎ drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ‎ Copy file name to clipboard Expand all lines: drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c + 2 - 2 Lines changed: 2 additions &amp; 2 deletions Original file line number Diff line number Diff line change @@ -3443,13 +3443,13 @@ ixgbe_get_eee_fw(struct ixgbe_adapter *adapter, struct ethtool_keee *edata) 3443 3443 3444 3444 for ( i = 0 ; i &lt; ARRAY_SIZE ( ixgbe_ls_map ); ++ i ) { 3445 3445 if ( hw -&gt; phy . eee_speeds_supported &amp; ixgbe_ls_map [ i ]. mac_speed ) 3446 - linkmode_set_bit ( ixgbe_lp_map [ i ]. link_mode , 3446 + linkmode_set_bit ( ixgbe_ls_map [ i ]. link_mode , 3447 3447 edata -&gt; supported ); 3448 3448 } 3449 3449 3450 3450 for ( i = 0 ; i &lt; ARRAY_SIZE ( ixgbe_ls_map ); ++ i ) { 3451 3451 if ( hw -&gt; phy . eee_speeds_advertised &amp; ixgbe_ls_map [ i ]. mac_speed ) 3452 - linkmode_set_bit ( ixgbe_lp_map [ i ]. link_mode , 3452 + linkmode_set_bit ( ixgbe_ls_map [ i ]. link_mode , 3453 3453 edata -&gt; advertised ); 3454 3454 } 3455 3455 0 commit comments Comments 0 ( 0 ) Footer &copy; 2026 GitHub,&nbsp;Inc. Footer navigation Terms Privacy Security Status Community Docs Contact Manage cookies Do not share my personal information You can’t perform that action at this time. 