From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4697C433E8 for ; Thu, 23 Jul 2020 08:52:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B96E02071A for ; Thu, 23 Jul 2020 08:52:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728067AbgGWIwH (ORCPT ); Thu, 23 Jul 2020 04:52:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728046AbgGWIwG (ORCPT ); Thu, 23 Jul 2020 04:52:06 -0400 Received: from rhcavuit03.kulnet.kuleuven.be (rhcavuit03.kulnet.kuleuven.be [IPv6:2a02:2c40:0:c0::25:136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D409EC0619DC for ; Thu, 23 Jul 2020 01:52:05 -0700 (PDT) X-KULeuven-Envelope-From: mathy.vanhoef@kuleuven.be X-KULeuven-Scanned: Found to be clean X-KULeuven-ID: CAE78120330.AED28 X-KULeuven-Information: Katholieke Universiteit Leuven Received: from icts-p-smtps-2.cc.kuleuven.be (icts-p-smtps-2e.kulnet.kuleuven.be [134.58.240.34]) by rhcavuit03.kulnet.kuleuven.be (Postfix) with ESMTP id CAE78120330 for ; Thu, 23 Jul 2020 10:51:58 +0200 (CEST) Received: from mathy-work.localhost (unknown [176.205.50.14]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by icts-p-smtps-2.cc.kuleuven.be (Postfix) with ESMTPSA id 8FDB1200A3; Thu, 23 Jul 2020 10:51:57 +0200 (CEST) X-Kuleuven: This mail passed the K.U.Leuven mailcluster From: Mathy Vanhoef To: vanhoefm@gmail.com, Johannes Berg , linux-wireless@vger.kernel.org, mathy.vanhoef@nyu.edu Cc: Mathy Vanhoef Subject: [PATCH 0/6] mac80211: monitor mode injection fixes Date: Thu, 23 Jul 2020 12:51:21 +0400 Message-Id: <20200723085126.29127-1-Mathy.Vanhoef@kuleuven.be> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This set of patches fixes some bugs related to frame injection, adds an existing radiotap flag to avoid sequence number overwrites, avoids an out-of-bounds memory read when injecting frames, and makes the usage of certain Tx flags more consistent. Mathy Vanhoef (6): mac80211: never drop injected frames even if normally not allowed mac80211: add radiotap flag to prevent sequence number overwrite mac80211: do not overwrite the sequence number if requested mac80211: use same flag everywhere to avoid sequence number overwrite mac80211: remove unused flags argument in transmit functions mac80211: parse radiotap header when selecting Tx queue include/net/ieee80211_radiotap.h | 1 + include/net/mac80211.h | 11 +++++ net/mac80211/cfg.c | 2 +- net/mac80211/ieee80211_i.h | 12 ++--- net/mac80211/iface.c | 15 ++++-- net/mac80211/offchannel.c | 2 +- net/mac80211/rx.c | 2 +- net/mac80211/scan.c | 7 ++- net/mac80211/sta_info.c | 2 +- net/mac80211/tx.c | 81 +++++++++++++++----------------- 10 files changed, 72 insertions(+), 63 deletions(-) -- 2.27.0