From patchwork Wed Aug 23 22:29:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 13363239 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53D12C3DA6F for ; Wed, 23 Aug 2023 22:29:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238607AbjHWW2c (ORCPT ); Wed, 23 Aug 2023 18:28:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238617AbjHWW2X (ORCPT ); Wed, 23 Aug 2023 18:28:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FF9410D7; Wed, 23 Aug 2023 15:28:21 -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 23903635BD; Wed, 23 Aug 2023 22:28:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A515C433C8; Wed, 23 Aug 2023 22:28:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692829700; bh=UDRNUnmx3NfgEHk31XjOvSoANhGH/ROeRPOHH8LioZA=; h=Date:From:To:Cc:Subject:From; b=PeaBZ6ixjMfaN8Z+HgjfVybo8dKHDQb/LZnXzgOvdfX/h4NzwH9RvjuNI9EYcPcet TqRZWE3iP/yYQtuv7ucJMblaEdwvtIHN3e0hsgwHJb5TdU/2iOgsKBS0bpFz2bUVYi gMfpZhg2Cv3tOmPKa+Pog3LiLEUPid0sHVc4qQHuI2i7cOW4EB8Zi3P1YsNcjKYABC pbSePDK5XcrsdSI78wMjRncPTcKWqQWJXXQ2ZZGg+caIdY2FvZbciVSzXM6Msctu0t DkttmMFcHiYaYIVxb6Pi+RdRDQ33LTkY5NIaT/p80Bw9He9sk9HC40m3soU92RCKTX xq2CUqz+tRvLg== Date: Wed, 23 Aug 2023 16:29:19 -0600 From: "Gustavo A. R. Silva" To: Brian Norris , Kalle Valo , Amitkumar Karwar , Xinming Hu , Dan Williams Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH 0/3] wifi: mwifiex: Fix tlv_buf_left calculation and replace one-element array Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-hardening@vger.kernel.org Hi all! This small series is aimed at fixing a bug in the tlv_buf_left calculation, doing a flexible-array transformation, and adding a couple of sanity checks. Thanks Gustavo A. R. Silva (3): wifi: mwifiex: Fix tlv_buf_left calculation wifi: mwifiex: Replace one-element array with flexible-array member in struct mwifiex_ie_types_rxba_sync wifi: mwifiex: Sanity check tlv_len and tlv_bitmap_len .../wireless/marvell/mwifiex/11n_rxreorder.c | 22 ++++++++++++++++--- drivers/net/wireless/marvell/mwifiex/fw.h | 2 +- 2 files changed, 20 insertions(+), 4 deletions(-)