Received: by 10.223.176.5 with SMTP id f5csp803144wra; Sat, 3 Feb 2018 10:38:14 -0800 (PST) X-Google-Smtp-Source: AH8x2262+YjozGN2T+jBmTfUZsluRTlgzXTTiSxht1RBqOhn3Sbtf12yojvzkTQZZnd/Fz62hmyA X-Received: by 2002:a17:902:780f:: with SMTP id p15-v6mr23625006pll.161.1517683094062; Sat, 03 Feb 2018 10:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517683094; cv=none; d=google.com; s=arc-20160816; b=iMqshuQLNFBFg93ys2rSUEkHaXmEKyVKe3n9HZOpmldEniFrCS6EdWKGe/PPtcR8DE zdI35ExmPmZI6p09eXFcR8Jeo3WytCvt/Ts+BLK0izkT8KZBEPMHVVl6Fq/oJtKwdsBz frq6flKwJ8Xy6mmmURIf73VULjFTyfIpspyIohw2kyDGZdTayc/8ZaZWGS9hOtTL9ZGu ZsuzNmLRSxbdp8KztO5mBOzls35w4/UlgDgDd+H8n6gzVUoI1iG5jAr78Qdre/pkHNC8 qaW/g/h5+0bRU8lc4mDXWyqqPsMfmNxFhpQS3zmfZ5Za6HNc1MqsJYerZB0MX2RqaWEt IG2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ioBCHcxcjf1/4Fov29F8aY2pxx//9se78+nVbkGDx1M=; b=rP+sjYnUQUeTflc2+tBQNYTQLFjqlfIJE5Tv8Ld4ZmVUOZnABjYC2R1BBkqV6oOSbW kS3O5D9W8yXhcWUSCdh6KBzsyqmVxVEC/uKCCW3bneIiCnX51GdiBHAm1ie7Or9Edh8x 8HZBeQmQPqz2upQNG5hsYF/1lzTWVI7ocdaQVnH4i/hFcY2MAXEg/37Mhoa56fcK+VBx JU5axWuePqeJuglRuINxFUjYRPDCjZK1Xi8lmElc0S82CxLGd47S1BvW+dTZliM1LFcq UEaXtAY+dbRNlinJAib/qOp3Zi6EAu0l3JC+SxQPiP4qJAJ5+RpR4ARTffo6Fbfi9wB1 ybtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=UTMC/wbB; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1-v6si2245168plg.56.2018.02.03.10.37.59; Sat, 03 Feb 2018 10:38:14 -0800 (PST) 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=@microsoft.com header.s=selector1 header.b=UTMC/wbB; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754566AbeBCSgF (ORCPT + 99 others); Sat, 3 Feb 2018 13:36:05 -0500 Received: from mail-bl2nam02on0115.outbound.protection.outlook.com ([104.47.38.115]:21822 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753009AbeBCSD5 (ORCPT ); Sat, 3 Feb 2018 13:03:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ioBCHcxcjf1/4Fov29F8aY2pxx//9se78+nVbkGDx1M=; b=UTMC/wbBsyP5aPfj8KagoftpIkSVUXXacPiioj7SAH5jIUfC8Nln1De5MYinN7EqM/i4XB3bg7IVrw2KKc/jAocj+r21/JhUcXRvCg3+925Pyi4Erncn71hnYklV91++/ncak22CTMZkK8m57KzvNWJ9/nVXzUJZAIOfpwCeLus= Received: from BL0PR2101MB1027.namprd21.prod.outlook.com (52.132.20.161) by BL0PR2101MB1041.namprd21.prod.outlook.com (52.132.23.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.506.3; Sat, 3 Feb 2018 18:02:15 +0000 Received: from BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9]) by BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9%3]) with mapi id 15.20.0485.006; Sat, 3 Feb 2018 18:02:15 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Johannes Berg , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 088/110] mac80211: mesh: drop frames appearing to be from us Thread-Topic: [PATCH AUTOSEL for 4.14 088/110] mac80211: mesh: drop frames appearing to be from us Thread-Index: AQHTnRkBaPXB47p/OUmD6Je0hjjZ/g== Date: Sat, 3 Feb 2018 18:01:25 +0000 Message-ID: <20180203180015.29073-88-alexander.levin@microsoft.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> In-Reply-To: <20180203180015.29073-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR2101MB1041;7:7Aq8muQK1+uFMKKUHfOupRfDCgpwBwTFINw32Dcrjr0WMwA4W6C0QGo1rectwDW8SUlB1OE4z3enz5Xpzay7IJYfelfqSLcrUTMl94ofGBYFxokR8ZPJPxvIh3qop18IAL0wMuHpppImeXHHP8xQRNm+W4QBETAumPnyHmhy5Cy1/pRJPhyf39NB1ljYN98g3QmOnKDLGQpWkRw4w5GOG99ZIkrAYCXcOcfbXKsfm7OJYDrry8jbGUhp9hNoeVNN x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2c0be462-c9c9-48eb-8fa4-08d56b3041de x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:BL0PR2101MB1041; x-ms-traffictypediagnostic: BL0PR2101MB1041: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3231101)(2400082)(944501161)(93006095)(93001095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011);SRVR:BL0PR2101MB1041;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB1041; x-forefront-prvs: 05724A8921 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(396003)(366004)(39860400002)(376002)(346002)(189003)(199004)(52314003)(2501003)(305945005)(3660700001)(5250100002)(81156014)(99286004)(81166006)(36756003)(7736002)(10290500003)(106356001)(53936002)(5660300001)(316002)(22452003)(8936002)(54906003)(110136005)(3280700002)(478600001)(72206003)(4326008)(25786009)(107886003)(102836004)(97736004)(76176011)(6666003)(66066001)(6506007)(2950100002)(2900100001)(68736007)(8676002)(6116002)(3846002)(186003)(1076002)(6346003)(105586002)(26005)(10090500001)(2906002)(6512007)(86612001)(14454004)(86362001)(6436002)(6486002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB1041;H:BL0PR2101MB1027.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: dg4w304K3NJu7NVCPuOVFF0ExKooP39p6zTTGT23bzvWoW/bpZdJRlr+kVGdxhBoOv2l41F7fHgUV/v41L0byQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c0be462-c9c9-48eb-8fa4-08d56b3041de X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2018 18:01:25.1128 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB1041 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg [ Upstream commit 736a80bbfda709fb3631f5f62056f250a38e5804 ] If there are multiple mesh stations with the same MAC address, they will both get confused and start throwing warnings. Obviously in this case nothing can actually work anyway, so just drop frames that look like they're from ourselves early on. Reported-by: Gui Iribarren Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/rx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 70e9d2ca8bbe..4daafb07602f 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -3632,6 +3632,8 @@ static bool ieee80211_accept_frame(struct ieee80211_r= x_data *rx) } return true; case NL80211_IFTYPE_MESH_POINT: + if (ether_addr_equal(sdata->vif.addr, hdr->addr2)) + return false; if (multicast) return true; return ether_addr_equal(sdata->vif.addr, hdr->addr1); --=20 2.11.0