Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1275130lqm; Thu, 2 May 2024 09:45:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpfo7kuQ6JYqt+QGJdODmxsdZEIkCaiCdzu1nDIoEXu7aZne+9sYRNTZJ+lcB1l6djuqj06PplOyvFd2rmLFjnU68AqfOnerW1Jr+qrw== X-Google-Smtp-Source: AGHT+IFaw/bFMOSO1xChuGiglJbhBk25EvKU7997+jLI8HfrJSOqK95pMVKVMKu5eVmp84DEm2bP X-Received: by 2002:a17:906:2c07:b0:a58:bdfb:f824 with SMTP id e7-20020a1709062c0700b00a58bdfbf824mr46420ejh.43.1714668332932; Thu, 02 May 2024 09:45:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714668332; cv=pass; d=google.com; s=arc-20160816; b=EjzHsT2LKZA1LlUMxwyNA3d7QPQGArqfPLlCgEOI85LI/cPrDOwGCg5i7CANRuSl5f V8zEx3rrIyNp8WArTH8W0zJj3WqKTLIrI7mRUHfDO3H0GS13REi4+MZshJm6IHB+O7Xy JONATz2kXzu3jL3F/CasqRz8nstdAUXgPM9vqWltJOI16RFR4wtsbNYSYDbkjhpvnjRn WoFGQs+vG+B9/XH4wEyvP1fzE+DoS89vFDmykJuRSX264t3tW3t9B54jmg29mxGnwg6K BMKlo/qlB4WGqykD06BN8pHtpELR+CvCQ5JITh1Ad1HFeY2QvcnzF09U0RGo4Ai7lhit 0XWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=pJXJQMuOdiarbyL2e/unM5fhQaATDSOvWOg7yDBrtzY=; fh=nnFpHuKe4pBZEszYDDXdN/8VHBHYIMHxVgtupPgYD/o=; b=o50ZH8k6jUo8sztjwuAAXpH5xGdG/NqG8D8QjsGzmON9bHGp0opnxGCUfs9uNMTFGX T+QIm1JDt9U8w4ojE7pTFCdSrXnOszoSnWjhl0yymXhnD6qftIRzlTdB/M92qyK6vzfv u/AhZlmZBguJfb+6uTtoR3HMghXbT68MztXQFLV5AQJVoPqHXnSp3nTbmlX5K1QhXLLv H1B1xkOq44JuaRrzWFFAnCdfaRhy4knyT6CcO7xixm/DJ/x4OFDP4A2vx1U/vB2HpT2E DX0bjsFPwbkpp2i+yztwPzlP7EXVJXQhyec5LIG9NfmxSHd9PAc645BwxrKzUn5zgsX/ qBGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cnUMJNR6; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-7117-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7117-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f24-20020a170906561800b00a524ff47704si635716ejq.7.2024.05.02.09.45.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 09:45:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7117-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cnUMJNR6; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-7117-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7117-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 843191F21DF3 for ; Thu, 2 May 2024 16:45:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03F8D664DB; Thu, 2 May 2024 16:45:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="cnUMJNR6" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 64ED428FC for ; Thu, 2 May 2024 16:45:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714668328; cv=none; b=t8ZEKrCEaULwIEjy6mgcoXoYUlfz925b9YxZjp7RS4fYu4c9Y1OECEA7+Jl/Fis8YzPneJUh4oZTxF58VCi4ar/8TkhuBphgIB0RN5nByuQ/4Rl1Z+AHPzJXmttnBlBOSoQLW6USTwTLt5V5OtWhbQ3nNpSUfIA+yno6vPHeDsI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714668328; c=relaxed/simple; bh=aJ4YHP7Kw4ye4gDkt68dY1VDopWj01qnWci2UTjMe+8=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=DFtJXhIHp/xDLBVP6Yia98c6pxZ/OvxG865ylSSG9kM2klUrO7agIT4fU+4suBslKKBQdvULRYk6H/+kFoB5AwxFp794Fg5lQKl7/Xbp0AHMTEGxYfHc10ohjeHwJbOcqmgSW8FVTdBvQpc07v4vP1yY4eZRMNHYu+4D3Bd2kMc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=cnUMJNR6; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 442Fsr57022735; Thu, 2 May 2024 16:45:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=pJXJQMuOdiarbyL2e/unM5fhQaATDSOvWOg7yDBrtzY=; b=cn UMJNR6uQUXcDg+5WCS16TQn0WMmz2/j/+lTP/mIM/LhODuMOb2JOo5zegoDxfkzy V4GNB4KRRlOaIo3RFZo85WEpdUdGhQwqjdyxt2OY61AEihodACvCyDjlCZbSAakX hUG15oY78yvIshCooqIPwItEdsHqCJB8sr6bPMGPHNIVlbrMCtzIK6805WcLUAJQ RfjhcV7SmsMjS7KFrr5JV8FSXHXQxKsh9BJ0SA0+VHnrzQHlqTcn2j09NsmZ1fRX k59peE9eMozgIoFvYnC+VgSCAUbC8C7Cuu1UxUle7knMT8vvbhVQhTBIoGRBFraM 2Z7h1z1mGbd+3yAYUZgw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xv7pxh0kj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 May 2024 16:45:10 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 442Gj6Wv025134 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 2 May 2024 16:45:06 GMT Received: from [10.227.89.240] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 2 May 2024 09:45:05 -0700 Message-ID: Date: Thu, 2 May 2024 09:45:05 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] wifi: mac80211: Update bssid indicator with real BSS numbers To: Johannes Berg , =?UTF-8?B?QWxsZW4gWWUgKOiRieiKt+WLsyk=?= , "linux-wireless@vger.kernel.org" , "lorenzo@kernel.org" CC: "lorenzo.bianconi@redhat.com" , "nbd@nbd.name" , =?UTF-8?B?RXZlbHluIFRzYWkgKOiUoeePiumIuik=?= , =?UTF-8?B?TW9uZXkgV2FuZyAo546L5L+h5a6JKQ==?= , "linux-mediatek@lists.infradead.org" References: <20231208063820.25983-1-allen.ye@mediatek.com> <65d21336e8f7e180352403a3e894aeaf27a22cab.camel@sipsolutions.net> <757f417d63a750e84ab883b500becc2773e9ff17.camel@sipsolutions.net> Content-Language: en-US From: Aloka Dixit In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Cc96HrOslscHqjv_rey_h5jYv-z9wX2c X-Proofpoint-ORIG-GUID: Cc96HrOslscHqjv_rey_h5jYv-z9wX2c X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-02_08,2024-05-02_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 adultscore=0 suspectscore=0 mlxlogscore=715 phishscore=0 lowpriorityscore=0 mlxscore=0 bulkscore=0 spamscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2405020110 On 4/23/2024 4:28 AM, Johannes Berg wrote: > On Tue, 2024-04-23 at 13:21 +0200, Johannes Berg wrote: >> >> Anyway, I think I agree, but can you please add some validation of this >> to cfg80211 as a first patch > > I guess I should say what kind of validation? I think it'd make sense to > ensure that the elements even exist/are long enough (currently there's > no validation in nl80211_parse_mbssid_elems at all!!), perhaps call > validate_ie_attr() there as well. > > Feels like something should also ensure that not only is > > config->index < wiphy->mbssid_max_interfaces > > but also actually < 2^max_bssid_indicator? > > johannes > I agree with the validation concerns. But the actual logic in this patch is valid, although considering we have had this code for so many years now, feels like no driver/target actually needs this field yet even though it is used :-)