Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2057731imm; Thu, 24 May 2018 05:12:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq6sN/Y/1gkOUlinaLLVmGbhdP6tktyZLgBftItN6eaduxuUszExR6tYWcsrY5hvaSCuY0F X-Received: by 2002:a17:902:3081:: with SMTP id v1-v6mr7300982plb.266.1527163938015; Thu, 24 May 2018 05:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527163937; cv=none; d=google.com; s=arc-20160816; b=JvE522ugpvQebIWc1g4dDNtsD2Lmub6fEk8979JkvblxGABbMPqgxnodq2rK8GXjuL yoRcLTYueFTcudis+ZWnJWqiBO88q3dT3zcpVKzrZT5cE+CNU+KVRS0kQBI8sezvmFPY 7zBoIxa3+Y0lxOL+WcVe1obSbmd9iLRdSGbjHR9zZYUCaa/JnR/pihJ3YsvnEdfguUy5 pXOi0bErS3pryDE9YbYWFbm+/JtFeAdiP7PXgynKGyYuAWCtDBo+9ABjGFz8/FLp25hA DPiSv+4iIm72rE3sGw9+UTAwjVLzvtpYBBJTcOklIhVQkHkQGw28P6hFDcxRavSZJb8L 8RxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=pwGCsBAORvoWDXbZvgcdmz7K31WVbXjhpbSmMEVOEws=; b=HBoflKfpTwh95xdGFFplMpYPbwopYmkpFV5ZQcqs7oeUByWBhBdLBFyyDHwdDO5nlw txO6jK9EeJopDT0sxico21etRJbg8AFCO5NnW6pfRw25JXK1/sFCiEU7BL6Y48VcBKt8 Tut1Ksu+gfI8OvJPh7zJvDr7b0FVZtZW0XH+wlLvCP3TuYN/cpTg1L1qmB92eZdjlXat jB1Ajz0fLMhC3lhGQ+qBqYU9N+T4/sZurD5F3lmQEByNNb6/nEhkL0M4NBxJCGQdIWLF IN1Y/TyNU9OU7qxonvMChExAHJwcHLd5apzpM5haVn/plBi2x1Fkax8vrLrA7GJvMhk6 SNPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=o3icjI9o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4-v6si20086236plt.430.2018.05.24.05.11.56; Thu, 24 May 2018 05:12:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=o3icjI9o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969744AbeEXMLN (ORCPT + 99 others); Thu, 24 May 2018 08:11:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:54708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965956AbeEXJnM (ORCPT ); Thu, 24 May 2018 05:43:12 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9C3F2208B8; Thu, 24 May 2018 09:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527154992; bh=DdGsb07p1OuzTyMzW74EK2Sk4sFLf9k8dEuXUiPRyWI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o3icjI9oOcywaqn7TB7acj8OyXE4xFFmmpwD5Dap/hhCKP2pU2akXkYyIG1zZpbgK 5VXo6Kg086482mITkoRYkx+kdpQjgeeNsXWeBnyGy8szqTNeFw809m7MtHRTOiwoej q5gegUpTZZaayyh2MRBDvDidfBUjzjtdzEGU35x8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Debabrata Banerjee , "David S. Miller" Subject: [PATCH 4.4 16/92] bonding: do not allow rlb updates to invalid mac Date: Thu, 24 May 2018 11:37:53 +0200 Message-Id: <20180524093200.686610227@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093159.286472249@linuxfoundation.org> References: <20180524093159.286472249@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Debabrata Banerjee [ Upstream commit 4fa8667ca3989ce14cf66301fa251544fbddbdd0 ] Make sure multicast, broadcast, and zero mac's cannot be the output of rlb updates, which should all be directed arps. Receive load balancing will be collapsed if any of these happen, as the switch will broadcast. Signed-off-by: Debabrata Banerjee Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/bonding/bond_alb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c @@ -453,7 +453,7 @@ static void rlb_update_client(struct rlb { int i; - if (!client_info->slave) + if (!client_info->slave || !is_valid_ether_addr(client_info->mac_dst)) return; for (i = 0; i < RLB_ARP_BURST_SIZE; i++) {