Message ID | 20240901163135.2141665-1-andrei.otcheretianski@intel.com |
---|---|
State | New |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=gTzsUEOH; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=KOrV11cU; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WxcyH2Nv8z1yg9 for <incoming@patchwork.ozlabs.org>; Mon, 2 Sep 2024 02:38:15 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2oJjUnXaMS6uiJubrxMM0gGtZ3VMpDWl1VXDXYDvmHo=; b=gTzsUEOHHoEa0V YqU0Kcd2IlZ35WaxIrP3PKlHGeDGydBUh1mBtOkKoPXMbUnTWF/vfkYQ1WphAbhX+yWSkDxnQaWcr 170D8zrNPEe/dkAgrVumcSTW/5zrr2oTIC99lV+ACEzr6RZG6bAxG6fmAP4eb8ji60xhBy2l88z7c 5S6O81i6BfBzTHA4P99tCoSMx6vM+zhCuFBx30KZnOPYRZohPkEWJF1Bf3T9bZCbcZDWL2ZBN1tAB eb10DPZ2aZ7HDt5SDlfF1P4Flam8M2lgHHalgXyXLhT9YNSdBB2WX/iAIWyA5vrNqfDsUmUPqOJIa l9A/Vn/FWyU59PYXPznw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skna1-0000000Bxx0-0LAP; Sun, 01 Sep 2024 16:37:33 +0000 Received: from mgamail.intel.com ([192.198.163.10]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sknZw-0000000Bxw4-2xof for hostap@lists.infradead.org; Sun, 01 Sep 2024 16:37:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725208649; x=1756744649; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=I5pQvJbGvfE5kzhbmxgnDk9XtwqeFWgb8rRHpSe3Vl0=; b=KOrV11cUXRQaosmlMvBIKJRnq4A/1cGLpPYW/6dsXbxR8aUZyEdoI9Zy p2aZP8XiwoVomYp90SgMnpqyS4fB7+beUY1Ys5GmFRRxvZlXtGDXL5S9m Zw/FOUkBuMt6WUrkrFue/uN7E4rkKWPqL4Tdn9tSuuHDMftotpz3mr+Pg iRyUU8eHGfqOwpWRbrPDNuVfhIwmWILUubKnsbeq3pqsJ38ksdHS111CR FgEHRBO8g2vnhkReJIW2P+hEltuFVQYwCX+W5KFz9xnRROax8897fKswo 3c/q2rwZ7frXeuj3D4HNtqraD42YuPDfAtsI67FRD7o96XDtUPo/NDHou A==; X-CSE-ConnectionGUID: JUzAEKS/QGCUZzrnp2MJag== X-CSE-MsgGUID: oP/a/3o7RuibnikREVGHvA== X-IronPort-AV: E=McAfee;i="6700,10204,11182"; a="35193448" X-IronPort-AV: E=Sophos;i="6.10,194,1719903600"; d="scan'208";a="35193448" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2024 09:37:23 -0700 X-CSE-ConnectionGUID: p7TMh4RFTTOVe9rwanRVIw== X-CSE-MsgGUID: Z8skYxPDQBK2z2TajAQR1w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,194,1719903600"; d="scan'208";a="101844819" Received: from weis0042.iil.intel.com ([10.12.217.211]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2024 09:37:21 -0700 From: Andrei Otcheretianski <andrei.otcheretianski@intel.com> To: hostap@lists.infradead.org Cc: Benjamin Berg <benjamin.berg@intel.com> Subject: [PATCH] BSS: MLD: Limit TBTT parsing to correct length Date: Sun, 1 Sep 2024 19:31:33 +0300 Message-ID: <20240901163135.2141665-1-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_093728_815549_8C4DD9D1 X-CRM114-Status: GOOD ( 11.84 ) X-Spam-Score: -4.5 (----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Benjamin Berg <benjamin.berg@intel.com> Logically, it makes more sense to pass the ap_info_len as that is the length that the function is permitted to process. Effectively it does not make a difference and the code was entirely safe, but ch [...] Content analysis details: (-4.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [192.198.163.10 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [192.198.163.10 listed in sa-accredit.habeas.com] 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [192.198.163.10 listed in sa-trusted.bondedsender.org] -0.0 T_SCC_BODY_TEXT_LINE No description available. -0.1 DKIMWL_WL_HIGH DKIMwl.org - High trust sender 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [192.198.163.10 listed in bl.score.senderscore.com] X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
BSS: MLD: Limit TBTT parsing to correct length
|
expand
|
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c index 39de8bac35..ec23ffad3e 100644 --- a/wpa_supplicant/bss.c +++ b/wpa_supplicant/bss.c @@ -1822,7 +1822,7 @@ int wpa_bss_parse_basic_ml_element(struct wpa_supplicant *wpa_s, goto out; wpa_bss_parse_ml_rnr_ap_info(wpa_s, bss, mbssid_idx, - ap_info, len, &seen, + ap_info, ap_info_len, &seen, &missing, ssid); pos += ap_info_len;