Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp851558rdb; Fri, 19 Jan 2024 00:14:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYRu15L2oEColajYejovRY7odzTaRTRdEqP4UZlTD4HASHxFnhJSE1MGWzkNNkmIgYqtMn X-Received: by 2002:a05:622a:2ca:b0:429:af68:5dd8 with SMTP id a10-20020a05622a02ca00b00429af685dd8mr2138126qtx.87.1705652087545; Fri, 19 Jan 2024 00:14:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705652087; cv=pass; d=google.com; s=arc-20160816; b=kPeivyfNc1zIG7f3xsLSiigVzWy0k0DDgvue5nj/ZaPecSBYs6w1C/D1SUPyTtEN9F uQRqW5tSVnYgqlfm+54F0FxgApl+QaCvyw3aWgeEslbkh/A36gT5juHW0/Vl74TgtuRx lnnznBwY/WObvSpwlr5ZxOsjWs3K0SXA6NFFAhXqLOBAGOgY0qaiV351lrdCc9bJVVXK wrECj5EQPU5lS2qRPxSlz/jdFEBLtn/9LYD/dzEwZkpXXFoMGhTPB2wDKIhF8x5vQOle 2dKcf+FvvSFS1jNQcLROVYibjcnb5goBSpiq4LPJAUT8WzK2cwzH/tBmv9UrlXxnhSZp TY1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:subject:autocrypt:from :references:cc:to:content-language:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=PWQh8SSpmvkn1guig6l4ZKcLDV2k1GWQoHEHl8mUtMA=; fh=zqcHI0KvVgt3Oc2I/X7j/rc7mDY6VC5oa15JMqG9U1I=; b=fSAv1KbaLq7YKwRNt6eoO+l19kI3wtSTQfut3twum07LJNTAx9J41DxLmOFCw46G2m 4yz5WH/L9s4AW2DoD6FFv9e/03aUnJLQB9c8bZ1xaXEEm4QIH/c8/dmIP5818vbLm32F VmHFo15BtVpw3zgTXeT7x5ePr8O518hDAVOyMPyqFW3G9c8GNrXWWApQyeFQ10ANKlPF P5VE/z3piHQJ2RK/YKwgYMrlgOG7bsnwxpy5aK4k7sQUiPfnbxAcULIceiWVeqh8u7/P EgZ0QyWOW5Q74m/kK9+uYsa7GOGbuPZGxMGC5RE2Lw2MqX1269MDXXE0WRWDw+jMIr3m uayA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=Rqr97R+b; arc=pass (i=1 spf=pass spfdomain=yandex.ru dkim=pass dkdomain=yandex.ru dmarc=pass fromdomain=yandex.ru); spf=pass (google.com: domain of linux-wireless+bounces-2223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w2-20020a05622a190200b00428032714basi16096101qtc.212.2024.01.19.00.14.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 00:14:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=Rqr97R+b; arc=pass (i=1 spf=pass spfdomain=yandex.ru dkim=pass dkdomain=yandex.ru dmarc=pass fromdomain=yandex.ru); spf=pass (google.com: domain of linux-wireless+bounces-2223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3C8031C20AC8 for ; Fri, 19 Jan 2024 08:14:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F323F24A14; Fri, 19 Jan 2024 08:14:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=yandex.ru header.i=@yandex.ru header.b="Rqr97R+b" X-Original-To: linux-wireless@vger.kernel.org Received: from forward502c.mail.yandex.net (forward502c.mail.yandex.net [178.154.239.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1E4624A06 for ; Fri, 19 Jan 2024 08:14:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.210 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705652083; cv=none; b=imKgu7YlKOHHJ6K4ECV4IdOojiu3jGj6C/eWfhzPKCgZbs6ZaX8CgKRwYTRVPXStPBgPBNiOAsq3H6M6uzD0FEvtwsVaYP0PlTwoIWdTOFVl/eKg8x0CrWwa/E1BuXPL7PRoA7599wsCb0qmpLif3684iy+3kMgFd8ZlSunSxmE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705652083; c=relaxed/simple; bh=ktZ/9ZPTb3hcQHPPYoa1UF0xgXuq0R2SQydExx9OeFU=; h=Message-ID:Date:MIME-Version:To:Cc:References:From:Subject: In-Reply-To:Content-Type; b=F/6mmeEor21kHcu10KzmcVD3Kzx5o3XsHsDk1GAzvuSNTLP5E87AYkmfZWGXmQb1wFcLLm0UCtKwNWMw0gIQgEHnqc+9oNd5zXa8PChfTlelt4huBkzVjxPXo+xvN5UNe757Dk7+nLU/gPo15YMpVaEwT3J9Tk7bpggVLSW/w28= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yandex.ru; spf=pass smtp.mailfrom=yandex.ru; dkim=pass (1024-bit key) header.d=yandex.ru header.i=@yandex.ru header.b=Rqr97R+b; arc=none smtp.client-ip=178.154.239.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yandex.ru Received: from mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:1d92:0:640:8a7:0]) by forward502c.mail.yandex.net (Yandex) with ESMTP id 7F2BD612F6; Fri, 19 Jan 2024 11:07:42 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id e7JsJv0XtqM0-TzK7Y101; Fri, 19 Jan 2024 11:07:41 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1705651661; bh=PWQh8SSpmvkn1guig6l4ZKcLDV2k1GWQoHEHl8mUtMA=; h=In-Reply-To:To:Cc:References:From:Subject:Date:Message-ID; b=Rqr97R+bAVhMuWKVg7Wra3srVz45CBIwYqlmIvJiBYffw9HNcV+ADBq8WSgrKldiW xSa1lWC3UfGsc4sqDfaCey3GgkHwRhUxEPw8R5USz8p8OX3ytu4oSlKHFhmc4wmFKI wGs6YmLwlDRmKgABuTnxjZcgKmyGMNrVSE1XS03M= Authentication-Results: mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: Date: Fri, 19 Jan 2024 11:07:40 +0300 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Johannes Berg Cc: Felix Fietkau , Kalle Valo , linux-wireless@vger.kernel.org, lvc-project@linuxtesting.org, syzbot+fdc5123366fb9c3fdc6d@syzkaller.appspotmail.com References: <20240117124848.120438-1-dmantipov@yandex.ru> <9433d29b643e4cce3a9354282405288c75c45e02.camel@sipsolutions.net> From: Dmitry Antipov Autocrypt: addr=dmantipov@yandex.ru; keydata= xsDNBGBYjL8BDAC1iFIjCNMSvYkyi04ln+5sTl5TCU9O5Ot/kaKKCstLq3TZ1zwsyeqF7S/q vBVSmkWHQaj80BlT/1m7BnFECMNV0M72+cTGfrX8edesMSzv/id+M+oe0adUeA07bBc2Rq2V YD88b1WgIkACQZVFCo+y7zXY64cZnf+NnI3jCPRfCKOFVwtj4OfkGZfcDAVAtxZCaksBpTHA tf24ay2PmV6q/QN+3IS9ZbHBs6maC1BQe6clFmpGMTvINJ032oN0Lm5ZkpNN+Xcp9393W34y v3aYT/OuT9eCbOxmjgMcXuERCMok72uqdhM8zkZlV85LRdW/Vy99u9gnu8Bm9UZrKTL94erm 0A9LSI/6BLa1Qzvgwkyd2h1r6f2MVmy71/csplvaDTAqlF/4iA4TS0icC0iXDyD+Oh3EfvgP iEc0OAnNps/SrDWUdZbJpLtxDrSl/jXEvFW7KkW5nfYoXzjfrdb89/m7o1HozGr1ArnsMhQC Uo/HlX4pPHWqEAFKJ5HEa/0AEQEAAc0kRG1pdHJ5IEFudGlwb3YgPGRtYW50aXBvdkB5YW5k ZXgucnU+wsEPBBMBCAA5FiEEgi6CDXNWvLfa6d7RtgcLSrzur7cFAmBYjL8FCQWjmoACGwMF CwkIBwIGFQgJCgsCBRYCAwEAAAoJELYHC0q87q+34CEMAKvYwHwegsKYeQokLHXeJVg/bcx9 gVBPj88G+hcI0+3VBdsEU0M521T4zKfS6i7FYWT+mLgf35wtj/kR4akAzU3VyucUqP92t0+T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GNro4PZ fnqumrZtC+nD2Aj5ktNmrwlL2gTauhMT/L0tUrr287D4AHnXfZJT9fra+1NozFm7OeYkcgxh EG2TElxcnXSanQffA7Xx25423FD0dkh2Z5omMqH7cvmh45hBAO/6o9VltTe9T5/6mAqUjIaY 05v2npSKsXqavaiLt4MDutgkhFCfE5PTHWEQAjnXNd0UQeBqR7/JWS55KtwsFcPvyHblW4be 9urNPdoikGY+vF+LtIbXBgwK0qp03ivp7Ye1NcoI4n4PkGusOCD4jrzwmD18o0b31JNd2JAB hETgYXDi/9rBHry1xGnjzuEBalpEiTAehORU2bOVje0FBQ8Pz1C/lhyVW/wrHlW7uNqNGuop Pj5JUAPxMu1UKx+0KQn6HYa0bfGqstmF+d6Stj3W5VAN5J9e80MHqxg8XuXirm/6dH/mm4xc tx98MCutXbJWn55RtnVKbpIiMfBrcB8= Subject: Re: [PATCH] wifi: mac80211: don't ask rate control with zero rate mask if scanning In-Reply-To: <9433d29b643e4cce3a9354282405288c75c45e02.camel@sipsolutions.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/18/24 16:46, Johannes Berg wrote: > On Wed, 2024-01-17 at 15:48 +0300, Dmitry Antipov wrote: >> If we're scanning and got the control frame with zero rate mask, drop >> the frame before '__rate_control_send_low()' getting stuck attempting >> to select supported rate. > > But why drop the frame? I'm still thinking that it just doesn't really > make sense to apply the rate mask to scanning at all? Hm. It seems that I'm still missing something important, but I don't realize why ieee80211_scan_state_set_channel() advances to the (next) channel even after ieee80211_set_bitrate_mask() resets this channel's rate mask to 0. Note that the comment in ieee80211_set_bitrate_mask() explicitly states that there should be at least one usable rate for the band we're currently operating on. Why this is not applicable to other band(s) we might probe next? > The most common use case for this is probably P2P-style things where you > just don't want to use CCK, but for scanning we have > NL80211_ATTR_TX_NO_CCK_RATE for this, so there's really no need to apply > the rate mask? Does NL80211_ATTR_TX_NO_CCK_RATE makes an effect on bands other than 2.4GHz? Note original reproducer triggers WARN_ONCE() after switching to 5GHz. Dmitry