Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp957439ybl; Fri, 30 Aug 2019 09:33:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlgj9Im/obBssnrh+UwES56qCE0zOZGbWOH/99CbLp55VZsqolS0EVOuv/v6UHr3qaJT2u X-Received: by 2002:a17:902:7147:: with SMTP id u7mr24243plm.260.1567182813715; Fri, 30 Aug 2019 09:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567182813; cv=none; d=google.com; s=arc-20160816; b=qYfY0vi0Kf4iTCze09i+3hYkXpEhdzi5uMiD6DgzAL8cEvWMO7+RSVVz2PqYRbmzxd PXw77oS4rA/7wRuoI7/NcXJhpo5pnW0/o8s7FTYneHkp66hc4/txLhJHSMDvVAKT5vRM mpJcZZiB3+6shkxkIom/EAY/z0fPGtTeBmIEfIdg7ALPHnICs07zJbkeD8m8+dSDsKVG sP7GTGvT0d6YesXJ0pU2wzmyL4wCtjXxX483B0fO2E8aN2LIZCasRB+27LL0GI7HXHKA DlY4A4NHjSAG3eTDBIzN3hCpoJYzO5G8FWY8lZnkIvUl74RQmNTa8Fbxyj4W32Rb7jIo vTzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=gScIWUZsqIWeQ/Jj6Me/x1jSg8AxJSb+7yOkWd1JZtI=; b=tDACPX7ioQsSZT81QVbaJXy7o5fW8X42bKVsAEK5rCQmk2nYTAy6EuA49YcMRWvahO YIXFeFTvZ/10eOwx1jylWVKj/aO+Z7AkWjHzCnaKD9no3wmV1LnffZSpzF2t9UbMtheS 828+LWuYX/300vvxiZo+W9Pa4a2TYMN86crDzPMRtpEIs/Fg+kFT+zaIafrRNtMN0G5T afH+PXnGJ9CEPGGZTX3VOwHfAaFwS2kxa9W7ru5u8rPcRou8QMa8T8+48T0xgN/iW/aO GNHrXYZaotKd+5zNhvCz0P66y0c2dzcjLdQ13oi14j+ND0fcOLFMpg6c4iHqs7aUEkL0 3S7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gziIcTeS; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si4872765pgs.275.2019.08.30.09.33.03; Fri, 30 Aug 2019 09:33:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gziIcTeS; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727883AbfH3QdB (ORCPT + 99 others); Fri, 30 Aug 2019 12:33:01 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:46461 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727792AbfH3QdB (ORCPT ); Fri, 30 Aug 2019 12:33:01 -0400 Received: by mail-ot1-f67.google.com with SMTP id z17so7446632otk.13 for ; Fri, 30 Aug 2019 09:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=gScIWUZsqIWeQ/Jj6Me/x1jSg8AxJSb+7yOkWd1JZtI=; b=gziIcTeSVZY5w77wQevunRwAilLgMjgmmQVQpb94FCy7D/nWZak2Sf4rcb2DALGFmG zrz7w/YTCHWNI6rExn3p6HA9zK07ZkEKPBuFFHs3JtaJ+snNH45Ix3z9zt8C/UwAiUDp sgNspowCWuwG0a3//ZBT00GeywYAm6ATRE2yJwv2uNrwF9AYYIDbjcMBHOA23Vbt/C7b nMmuZOYCn1Zc38z0GXxqrW3jnPgZFPL0yK6c2kIyoE0tmU35e0cqjevC4/ZUVhmnz6iC bmn5u6zfAEqH30kdcr2Fpj/DGFm+Gd/fZ9Asvkd9n4+c2YPCAgPV3Vw/wi5tdDoF+FWj 97+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gScIWUZsqIWeQ/Jj6Me/x1jSg8AxJSb+7yOkWd1JZtI=; b=tMjH++7pFnh9y+7OUCooMQZ9UMDaMEmO0SdKL3E2WtqA7qIPVh1U591zfELUn568QG NYUz77UO/EX/UpXw/Hreyfy3k2MUDVjy6TjvZ7XZsawNZ7YBHxNI3hNga+l4Cd/bPSOt kCeNY7VzSPPxwYWsTQwuTHpPjMCKaQ4rVjbNJnVdn18oxB0IDGkxySZK/wRPVO+n1qEk nzP1qELkXCBrEKAJ5ld8iVXLitnzwbMWyd8L+Jw437Kum9O4u53pAbGRX4ugqapRfvJC QUOUSArjBKg8nafVrZbOvrAkQ3LAVMaT/nsmrG8FdpoRctRXzI2AT7fkEoBC6B18IBF9 CgLg== X-Gm-Message-State: APjAAAVRmXnENUT3XNMZS38MaVWUhn35X8VR45b8NGiQiRjxcLpOuvkX eVPaHva4QST5+4O3llDSmuXWRTOe X-Received: by 2002:a05:6830:144b:: with SMTP id w11mr13170183otp.185.1567182780164; Fri, 30 Aug 2019 09:33:00 -0700 (PDT) Received: from [192.168.1.249] (cpe-70-114-247-242.austin.res.rr.com. [70.114.247.242]) by smtp.googlemail.com with ESMTPSA id t18sm2067030otk.73.2019.08.30.09.32.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Aug 2019 09:32:58 -0700 (PDT) Subject: Re: [RFCv2 1/4] nl80211: Fix broken non-split wiphy dumps To: Johannes Berg , linux-wireless@vger.kernel.org References: <20190816192703.12445-1-denkenz@gmail.com> From: Denis Kenzior Message-ID: <5fc07547-80fe-99ee-a83d-5fabe3c92a1b@gmail.com> Date: Fri, 30 Aug 2019 11:32:57 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Johannes, On 8/30/19 4:03 AM, Johannes Berg wrote: > On Fri, 2019-08-16 at 14:27 -0500, Denis Kenzior wrote: >> If a (legacy) client requested a wiphy dump but did not provide the >> NL80211_ATTR_SPLIT_WIPHY_DUMP attribute, the dump was supposed to be >> composed of purely non-split NEW_WIPHY messages, with 1 wiphy per >> message. At least this was the intent after commit: >> 3713b4e364ef ("nl80211: allow splitting wiphy information in dumps") >> >> However, in reality the non-split dumps were broken very shortly after. >> Perhaps around commit: >> fe1abafd942f ("nl80211: re-add channel width and extended capa advertising") > > Fun. I guess we updated all userspace quickly enough to not actually > have any issues there. As far as I remember, nobody ever complained, so > I guess people just updated their userspace. > > Given that it's been 6+ years, maybe we're better off just removing the > whole non-split thing then, instead of fixing it. Seems even less likely > now that somebody would run a 6+yo supplicant (from before its commit > c30a4ab045ce ("nl80211: Fix mode settings with split wiphy dump")). > That would be my vote, given that we're probably one of a handful of people in this world that understand that code path. But... How would we handle non-dump versions of GET_WIPHY? To this day I have dhcpcd issuing fun stuff like: < Request: Get Wiphy (0x01) len 8 [ack] 0.374832 Interface Index: 59 (0x0000003b) > OTOH, this is a simple fix, would removing the non-split mode result in > any appreciable cleanups? Perhaps not, and we'd have to insert something > instead to reject non-split and log a warning, or whatnot. > Getting rid of the legacy non-split case would simplify things. We could also be a-lot smarter about how we split up the messages in order to utilize buffer space more efficiently. I think you cover this in your other replies, but I haven't processed those yet. Regards, -Denis