Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp305930lqb; Tue, 4 Jun 2024 11:54:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6TUVAb8IcASiFq+LF+SF1RscAIIiQO5vvea7o/yx8bKqD6q449y8q5G7Ml1x/iBG58xFLx6YmYaWTsVzVcu0yFZNUk11kYOWDWMpnYw== X-Google-Smtp-Source: AGHT+IF4J3XL+6vuzrvZPTlYIw2EhrmT8OXiub3Fd+u5Psvjt3euArc1IkJnDwhGsnd72rABsO5n X-Received: by 2002:a17:90b:908:b0:2bd:dc20:a2a0 with SMTP id 98e67ed59e1d1-2c27db684c5mr293698a91.40.1717527250629; Tue, 04 Jun 2024 11:54:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717527250; cv=pass; d=google.com; s=arc-20160816; b=pexCdDBhPum54OStL1EOc00D5mSkWOE/cFCOSQfNGiBEGYm8VfdoamcKhfwXWVNR7O KK0pRJw2CBhY6cOMNtHkBwV2M7IIe27WUzrKOT12ChABtr+TcO5+YYTQ8jdQl0gAS6G3 2iq+ffUo1/HsYnZ2oL4FJNosTBYtRuBTu0ZyWRkZ7+ugpsJ6lfY1TYcHvqyqfWZX22Af avENPHtvt+ylnMnt+8RdaXybBBD2Z5yO26nRIK/Ota0/HD/Cz3A2cZVa76j/SIk81sPr EgP5Mc4g7OQz8RYZra6KGKdVhg4QTWqF8Xqy0Zhy27Q5pgg0rS4OBvFG+UOpd4Cc8Bkq M2cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=ilQQc4mZ1DUA8/7nK9hi/MsoR1Q7Eqgf7H5UYNlCkFY=; fh=VYtENxiA7cpQlcPInhsQxUESGGbx//5z9D0PkjknzHU=; b=mQ59wdLBJPjA9bMCkldf/usRneLE2fSvkKzz+3vOtVckd57TW5WEFZM/HpMxjctpKz 1Sm4jbhRqvF3LHB/CqvDcQOiaG0znhbFHxzdS0jEekvSVLKYMFB8Eis9/slLUxsAHyZS +luCUYE6tlJiI9EGvsyicR2B98PlmtJnGNB7aLyN4VlRwMa8Cydpw5+yA2DfcCXNY/TS 9f1SpDwUs3En9pbjMYfM/QEm8X4hn2wg1cpB8ywN/UwBEgjfq/qcd/uWXAEQ/DiDSyX1 YbvVaP2Cuv9ftJ2NiF99knAcPQxSW2bIK6KgDv1DTzpHOkPW992FlWhjfUPsaMyx/1P5 xD7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gentoo.org dmarc=pass fromdomain=gentoo.org); spf=pass (google.com: domain of linux-wireless+bounces-8496-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a77b6e92si1076595a91.97.2024.06.04.11.54.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 11:54:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8496-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gentoo.org dmarc=pass fromdomain=gentoo.org); spf=pass (google.com: domain of linux-wireless+bounces-8496-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 99D92283431 for ; Tue, 4 Jun 2024 18:54:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A3001482E7; Tue, 4 Jun 2024 18:54:05 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 956944A11; Tue, 4 Jun 2024 18:54:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717527245; cv=none; b=PI1LDy52VkCJWy/T/4IYvtulbj9cXR05wY3uFIs8bE9XTzCYS4wMM/AsBhOGSV5xYv/Oki7oz9RzJMzD+GaYQw6X+JcXdJfiUMzYNS4ZmygMnCzf9PhQzPR3/V6HvDwYsxjBWmbN9t8aXYj6YEbnN/WZHmtU4dxU6xt5eMbW3N0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717527245; c=relaxed/simple; bh=ilQQc4mZ1DUA8/7nK9hi/MsoR1Q7Eqgf7H5UYNlCkFY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UwHMyljYm7f2NlTclDqjpES2tSA4wxh0mDUF7jihvE+PPD7aI6IL8xmaGZRQfujiSYDs4nou4J7xUlcKUe6ZMkTvU221xoUHZkKk6XKU1RTr6JVPMWjqJoyT0+ZR4igajig546mPZjdV4j80UZYPSOSPMiUxUyB6QyFoeWytCck= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org Date: Tue, 4 Jun 2024 14:53:58 -0400 From: Kenton Groombridge To: Johannes Berg Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Kees Cook Subject: Re: [PATCH v2] wifi: mac80211: Avoid address calculations via out of bounds array indexing Message-ID: Mail-Followup-To: Johannes Berg , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Kees Cook References: <20240517145420.8891-1-concord@gentoo.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u4dunbaywfh6hyso" Content-Disposition: inline In-Reply-To: --u4dunbaywfh6hyso Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 24/05/29 04:54PM, Johannes Berg wrote: > On Fri, 2024-05-17 at 10:54 -0400, Kenton Groombridge wrote: > > req->n_channels must be set before req->channels[] can be used. > >=20 >=20 > I don't know why, but this patch breaks a number of hwsim test cases. >=20 > https://w1.fi/cgit/hostap/tree/tests/hwsim/ >=20 > johannes Pardon my absence. I'm also not sure why these tests are failing. Unless I'm missing something, the runtime behavior of these code paths shouldn't have changed significantly. FWIW, I have been running this patch on real hardware and connecting to Wi-Fi networks with it for the past couple weeks without problems. Though, I see that these tests are probably testing Wi-Fi modes that I am not using. --=20 Kenton Groombridge Gentoo Linux Developer, SELinux Project --u4dunbaywfh6hyso Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEP+u3AkfbrORB/inCFt7v5V9Ft54FAmZfYsNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNG RUJCNzAyNDdEQkFDRTQ0MUZFMjlDMjE2REVFRkU1NUY0NUI3OUUACgkQFt7v5V9F t54qNw//YhiRFppe9p3LZ2rWSH2ANit9/KoWnRDidGoCAiVwfzWshSxXBhSt51pg HFF6TbdPnpbRE80APNY/PHmbDm0U+kRq8+6B/OCHcop2Yl3DktBc3Yn4uhUCosl7 r9lwUAOtUB4npMM1r+FeXkHxWgW8cZRn8T50DlpVeQN+23f0g5uzIbrZqYKCFucb mmxVXrSpkB4qgSGOUiMpsGBk73yyrsGSujH1df5eaclp4uvebGys7lhApdRmJg0u A0T42vwe7Uf+snt35W6BdAD+jiY/2WnEUCPnesPbde3maYYnCPZyzPUtPshScHk0 WJA2LtDk9bSAE/OTwV2GfHdvensMp+ck7CEac1Ub1/INtZU+DJTv4Pa8wFGyUOvt edcXsvu4IOYx6ZtGc26z+IqnbLH2XNwNN3LvsabV3fUOtKLfQ7P47cg0C12AcEMZ MX8Qdy0yhZnYfdlaSNDUlKgiy7V0v0j8xc0lqXrlmy1b3R2Nor72SolyKUSmd8+a +BC3FvzE5H6U7alhW5QpbdZvBaPUThwxDa/8IaIMNjHrh+BWaTEJ9dv7VAerGB6H OONq7eX4lsut95clnch6wf3CSYAgkDZFqKh0oLKv+vh+GxkgPNMp9Rt6UOUkcR7T 9DIDzMVcV/ZNopIHznAP8rLKNf9DEOZ7mdJiW8n0anc7leMoTBo= =Do6D -----END PGP SIGNATURE----- --u4dunbaywfh6hyso--