Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp315171ybc; Tue, 19 Nov 2019 01:43:38 -0800 (PST) X-Google-Smtp-Source: APXvYqx+o5i6ZMmfwEG0y1CyvulhFQDJdAdV4g/pgkqTjbj/I9nntCkfFqdWOq3ia/OaiDqsraO6 X-Received: by 2002:a1c:2342:: with SMTP id j63mr4221029wmj.56.1574156618528; Tue, 19 Nov 2019 01:43:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574156618; cv=none; d=google.com; s=arc-20160816; b=GmFQX0ZKt9X1r74Z0cdMLkeGE083A1m3WNnK/520Bkc+K2c/k9LBWSEPCvEJmf2o0n 4W+u0yehlrH3hmHSVFxfI6bMFJTXrJ38iSZN5veytRT1aguL5DoF9EEFLdAjMbZu0TeF dNy3uP2JcAjRGl3P/PnHdayIkJ82MEuvbgNbMFbhbiT2PVGRGeEHPS1aOZCPG+c4lSrn 83jU8+IPwNfED0jCGC94jFXn7sKi+9duE/t6aeYyBWXYQ4HPBxHvjc2erP0Ez4lF3yMH mHIRrDzP/K373q1CSDJzgwvvt8vQZwl7AMWrPtRXe4FALwr9LrFXh9MG7lZjiTeyr9La 1L6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :message-id:in-reply-to:date:references:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=2KA/q2L4ACKHnDomRs+pu/BmI5jcjvSiS4OwMdS3sc0=; b=PNkXdTJbG9j/RRuCGmGd0qsKlotUl2VSBOTpWY0oSmTqvK5azRK6nraoSdBLVheBbl CryLFGkbhL4KMZOh2bwS7Dk6dnQ+kEKU5KYCS3mdQSQIUgO/PXiewrpTznKqAN39p0j6 +qDltqpwwux1FzV7pp2oMZLP7xCK1xEz5q9APcBXRRCFcODzuGz1LhYFSC/HN20XvRjm kY4BavvpMV1CadBHLmzK2JIoemwXjhXJtmZQN12yaFpOgjUKELuLBREPW79QmQbhNnf3 9OJin/PtSOTxDIY3b93xCoV7K2q24I47R5wl/4P1famduWryFFOoudVmz/Q0ZrgpECLy DDMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=GbxxjNXF; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=CADi6CG6; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 s28si16573826edc.98.2019.11.19.01.43.06; Tue, 19 Nov 2019 01:43:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=GbxxjNXF; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=CADi6CG6; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727846AbfKSJlp (ORCPT + 99 others); Tue, 19 Nov 2019 04:41:45 -0500 Received: from a27-11.smtp-out.us-west-2.amazonses.com ([54.240.27.11]:58486 "EHLO a27-11.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727450AbfKSJlh (ORCPT ); Tue, 19 Nov 2019 04:41:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1574156496; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; bh=CNLROcjX07GylV2Uwv0PmQ/A/ZgMtjrePxjyX+jgVCU=; b=GbxxjNXFcXJeRZpoy/raSVMqJa4+W/emhFKVw0BVn9QvHeO+ClZZB6iCbaxE326d dyqxJnZXO+hgiISrQWZiqXI35Fr1FQS64ely+TSQVcT5xl568hFbNZjNiiERRX5nlVJ /GPYac7+79NJN6hKsQfYvdoU1p0j6tQnF2lra5Ls= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx; d=amazonses.com; t=1574156496; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Feedback-ID; bh=CNLROcjX07GylV2Uwv0PmQ/A/ZgMtjrePxjyX+jgVCU=; b=CADi6CG6RpN+c/6KcCJm2rCFVV4R1vi9PaxrS/jAfp+fgvjMzwpeCx7YWhIbezZS V6shTMEyETX485CIwH5bAp+AmQUM4M5NXydLppXy6tT6qkiyJEc+rslTR7hOh0WpXLh EmGiOeIeu7feogQgMbZLZGvjmbQ35zw8wZLJzNmM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A1886C2BB5B Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Ming Chen Cc: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= , Ming Chen , Johannes Berg , "linux-wireless\@vger.kernel.org" Subject: Re: [PATCH v4] mac80211: Drop the packets whose source or destination mac address is empty References: <20191116060833.45752-1-ming.chen@watchguard.com> <87blt9ctd4.fsf@toke.dk> Date: Tue, 19 Nov 2019 09:41:36 +0000 In-Reply-To: (Ming Chen's message of "Tue, 19 Nov 2019 08:03:24 +0000") Message-ID: <0101016e8309ed71-c2031187-906f-4d32-8ba0-e8420c76fe1e-000000@us-west-2.amazonses.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SES-Outgoing: 2019.11.19-54.240.27.11 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Ming Chen writes: >> > Dropping this kind of error packet before it goes into the driver, >> > should be the right direction. >> >> So I still wonder why this happens from higher up in the stack. If there's a >> legitimate reason, maybe dropping the packet is not the right thing? And if >> there is *no* legitimate reason, maybe the packet should be dropped higher >> up in the stack instead? >> >> What kind of packets does this happen with? > > [Ming Chen] It should an ARP packet. I can see this kind of packet > before ARP table is complete. If so, how about dropping it in the > function of ieee80211_subif_start_xmit? The question here is why are you seeing this but nobody else? Are you using some special protocol, do you have some changes in the kernel which cause this or what could explain this behaviour? -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches