Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp448704ybl; Fri, 30 Aug 2019 02:11:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyy41xrLX6N06Mt5IFRSwV/Tk13p6sd3WNnbpQVhCQhgfByJmuABBV7e0nw0YI+nMhPzR/8 X-Received: by 2002:a62:1901:: with SMTP id 1mr17038933pfz.172.1567156272377; Fri, 30 Aug 2019 02:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567156272; cv=none; d=google.com; s=arc-20160816; b=d560r9q9pxrwxn2J2pLWH/xn4oDbhTk5fJzvsGK0eHorU9jH1wW/TEY9hnVkulv00t ZwIWKgHDCSSsUfHNh9ufPSDSYBNU1CBQVANp/cI+u80U6xUzzSnI81z1jwpAGtFLr8iJ mKI8RlzWN89uqAFUo6NY5JcdAGGGSHTkvozOiX4dpTBsZYNsAg1bdDWdyr261ve5eNTY vTz6IsQUj4nqFOMqAzScHx3yNT5M+7h+DNhW3e2sm+1zQh8e0NBrtZc2BYqhYDjwV8m3 dn3k2MVmgA4HWFkOmkdAWOR8zCJFMDtXKX2Uq9mnCbgVa/ZNDSqOvelXyk786EPnzQtm HSMA== 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:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=YTSb9d6qbxxVUrmJdAVYoiX5TaPchxQeLrxXsu3Gd34=; b=tbVfuYJjT9bIrWVyOcFEX8FYM5ce1YGd+Cr21vjlnkxyB1T+u8lzk5KqasJHrc/Frr huP+inNttARukEaolAuqGEiT6lSe5DyRY1Y3/Ci5XrEd/Vo88SJBn7qMe3sEV44dTthE fjKnc+6gcUQf5US50TtXQwNnI/fOc5TG/13yFKRuD7FF7ZarwGzzJpDqkJOWuo2grqso YROqRB3Klkvt16wNrndKnP4ZJ8vE0KasHo/lQd/tA6SeVf1xdPMHG5lePLHPDdzDVpjr EL+Ed6n0X7vqWWO7qgNQzhFIQ4mx7JawKzGwYuSM3hudjPm+QO28tgeM+zJD5lBM9tkY ox2A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si4007652pgp.338.2019.08.30.02.10.55; Fri, 30 Aug 2019 02:11:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728042AbfH3JKQ (ORCPT + 99 others); Fri, 30 Aug 2019 05:10:16 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:33334 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728031AbfH3JKQ (ORCPT ); Fri, 30 Aug 2019 05:10:16 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.1) (envelope-from ) id 1i3cv8-0002GS-C8; Fri, 30 Aug 2019 11:10:14 +0200 Message-ID: <00161d6069cda67dbd8b918dd987e01dc1a3dab3.camel@sipsolutions.net> Subject: Re: [RFCv2 1/4] nl80211: Fix broken non-split wiphy dumps From: Johannes Berg To: Denis Kenzior , linux-wireless@vger.kernel.org Date: Fri, 30 Aug 2019 11:10:13 +0200 In-Reply-To: (sfid-20190830_110356_499003_5F22B3F6) References: <20190816192703.12445-1-denkenz@gmail.com> (sfid-20190816_212729_636741_39C4CEB6) (sfid-20190830_110356_499003_5F22B3F6) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2019-08-30 at 11:03 +0200, 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. Actually, going back in time to the code there (e.g. iw and hostap), it seems that it quite possibly never was a userspace issue, just an issue with netlink allocating a 4k SKB by default for dumps. Even then, libnl would've defaulted to a 16k recvmsg() buffer size, and we didn't override that anywhere. So more likely, this was all fixed by kernel 9063e21fb026 ("netlink: autosize skb lengthes") about a year after we ran into the problem. johannes