Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1989959rwb; Wed, 26 Jul 2023 23:46:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlH8BycwHcMYqK57sn/9bNs5bADi5Aq1972YShMxEowYloHBJFbUTC2oYrsEgegem08dQTMw X-Received: by 2002:a17:902:bcc9:b0:1bb:a85c:23cc with SMTP id o9-20020a170902bcc900b001bba85c23ccmr3657705pls.15.1690440374770; Wed, 26 Jul 2023 23:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690440374; cv=none; d=google.com; s=arc-20160816; b=mncqsxcpq4TFSTiaj4RCAK5xnPdxBt+U0dQL0I/1/p9oy2jtCteiWu3B/m6UxDYS1L 1TxiNyNMumIPlBOq5wn+VOdqTU1gYjod56b6jM0zybA8SbBe3kmZRRg8mNxd3P8E/R+f 30mTf2CRnT6iXXD7DONDE2BcVmPyjepW8tGTgEdcUMxsOt9BlDoiaMeJZiGPX/Ay0xJI 8zFH5u3IatkqyAKdf+D6EeiiDgAzN2wImOL1BxaMi8a0y3Y8L/zjO3hqPsxgn4rS5/OR 4Ph6vmHW7Ru9AeFT4U1esYNOvVbg7+A1N9HHGOfF+SZ1FySO5317D6bKDdJGtI8fA5vL C8HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=gxiqmUibiJ9OmnR3zCn/j2OiW7Tsa6Mc35bE52x7XSM=; fh=9nqrKEL8q7252fjB0HSE5MwZR0H10BlFnXb6ZUurLNI=; b=CuowOo20Lv/zqwimGtgmWqhx0P8gYPulUjqTJVBUDCG1hYoVfx9JnieumF7YpXEeNh YbBGDxb10TQSHQcw86pwKbhGGluXiODuPns1CTbNFmcWCbzfVZcGKDtirPmzin4FLbTI Qvw2DJ5hoAs1YJ1RnnqOCIgIKyf/VXOkNgiNlsitVt7iplqPSthMYDusYHPyGyl/MYdO 69s5Y5Hn6LieCsCMeWauNyCvI43FnD7kr58Xd+RYj41kwUCfEY8ELknQK6tNBySiXWTd dI/GLxE3Dr46DaQNnGypFWM1sJSW4Mdy5D2vM7s3RVAbHgZh8WMyJUv5cWRlqjIyFjKn Lm9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ML29Vomn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a170902f54900b001bb98357332si894157plf.365.2023.07.26.23.46.00; Wed, 26 Jul 2023 23:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ML29Vomn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232695AbjG0GK2 (ORCPT + 58 others); Thu, 27 Jul 2023 02:10:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232688AbjG0GK0 (ORCPT ); Thu, 27 Jul 2023 02:10:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7830F1731 for ; Wed, 26 Jul 2023 23:10:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0E4EF61D30 for ; Thu, 27 Jul 2023 06:10:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AFF2C433C7; Thu, 27 Jul 2023 06:10:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690438224; bh=b1xzARFcfbsh47td8lDof2znYm6SZgwcnpC+n8lHdr8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ML29VomnBsCtFJ0bDngtcOR1CdC/PqR8FgQWVhDSdlJn+bx+MMQNeNFcYT5nmSfSQ rlFRr0WnZncYjN+cWWhD7dUxTUoQyPknD/QB3w8QubKKm4bczP/+Ery4G2/+pAy3yY vvh2ZKZf8wR9es8TaSMCHd45LN//knEHsjk4ofov7eBWeT56GQwYsAj3P3IsM+F6hX Zy/QljUo+43NcYMPW4LUS5Pv2wLz3n/VI/6D4q9qu6mmRzN573FkJLz0NkEPSXLb8B ofADyhWzyiiFOfrlejxj6sWfxpfvJBuXQRgrOmJNAvZZbgKxrLaaptWrck2RJ9pngb 8QpzE0h5bVR5g== From: Kalle Valo To: Brian Norris Cc: Polaris Pi , matthewmwang@chromium.org, kuba@kernel.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH v7] wifi: mwifiex: Fix OOB and integer underflow when rx packets References: <20230723070741.1544662-1-pinkperfect2021@gmail.com> Date: Thu, 27 Jul 2023 09:10:20 +0300 In-Reply-To: (Brian Norris's message of "Wed, 26 Jul 2023 14:23:42 -0700") Message-ID: <87ila528c3.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Brian Norris writes: > On Sun, Jul 23, 2023 at 07:07:41AM +0000, Polaris Pi wrote: >> Make sure mwifiex_process_mgmt_packet, >> mwifiex_process_sta_rx_packet and mwifiex_process_uap_rx_packet, >> mwifiex_uap_queue_bridged_pkt and mwifiex_process_rx_packet >> not out-of-bounds access the skb->data buffer. >> >> Fixes: 2dbaf751b1de ("mwifiex: report received management frames to cfg80211") >> Signed-off-by: Polaris Pi >> --- >> V5: Follow chromeos comments: preserve the original flow of mwifiex_process_uap_rx_packet >> V6: Simplify check in mwifiex_process_uap_rx_packet >> V7: Fix drop packets issue when auotest V6, now pass manual and auto tests > > "auto tests" isn't clear to anyone not familiar with Chromium stuff. > It'd be courteous to at least make an attempt to describe what this > means (even just, "ChromeOS WiFi test suite" or something). For the > record, I believe that's approximately this? > > https://chromium.googlesource.com/chromiumos/third_party/autotest/+/HEAD/docs/wificell.md > > Anyway, I think the patch contents look good: > > Reviewed-by: Brian Norris I'm nitpicking but now that you (Brian) are a maintainer I would prefer that you use Acked-by instead of Reviewed-by. Patchwork shows the statistics (A/R/T in the web ui) and then it's easy for me to see that the patch is ready to be applied. This is for the future, no need to change anything here. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches