Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp478094ybl; Fri, 30 Aug 2019 02:40:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWTWb+udVuUQ9kfLTCWAeu63V0LK7GWAh5vwamcUf9LH+KzLb+IMHGZQz2T6lYdh4B946y X-Received: by 2002:aa7:800c:: with SMTP id j12mr14289905pfi.255.1567158026855; Fri, 30 Aug 2019 02:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567158026; cv=none; d=google.com; s=arc-20160816; b=voiKVDl4R0474Ie0pvibDiKt+w1TRfyQ4p2jYrWQ+mmznwpkX3VMgExmqzZWFlenP2 ZHB7TlB9Xr8YK6YjhNti+NTsDMNGSOxaeDGo5c/j7b1ly9PpiDPpdJzkix6Ertqnpdh4 lF7jj8kxRRjHUWxORC5BIO7DJFmhFYlgJRVxlBJVTqTZk9PmXrAh8RF3zFNGWKdW1ose le+W21bGAGpXxlxf04FI/BaaJ1Ql2KT8mC/jRyLtXswcCBNCzmCuVWIQ9/k4q53KJPW4 B4fS+hQvIbdTpPvSpBFMjtMIVvoEvcAiHXXk3q5vgohcRs91No8iCtBw6dEb+cbBlhM1 0pdw== 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=gn7QsItxH+TWu6cVB9gm5Wd6HdwSXWlKFNfvkcQ2NT0=; b=qEpOaGCyp58nAKsAy/ln2ijqd7WQOpbmuJF+DbeJTlYjJU3jDwp7m/yPstlsH+GiVi upF+oFW2iYwSqgjOzg8BFVZX4Ez/WXhqq9RQbJoiLeejy0lJdQytRoWAiFCQSC5zS809 uYrT5pOEhNAuCfoVHGmLHoqc4XeHxd0idnhuXG4UkE7wLOBOk67asm4Ayhr1NTNACVZ6 3BJDMmzSsb99L2h2dnWCzrH3E2B/oRCGtA4be+zLjS3TKa6Jeizkz/3bC2X2XrKWp+zo G+zA0mJSwcWvJ6hSpbogNulKT2sUp3nAM03xsHhdfzhnTEhuGYjVJ8HdSOphkHGF/mIB jZjw== 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 k8si4079157pgi.49.2019.08.30.02.40.11; Fri, 30 Aug 2019 02:40:26 -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 S1727729AbfH3JkH (ORCPT + 99 others); Fri, 30 Aug 2019 05:40:07 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:33772 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbfH3JkG (ORCPT ); Fri, 30 Aug 2019 05:40:06 -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 1i3dO1-0002r9-7W; Fri, 30 Aug 2019 11:40:05 +0200 Message-ID: 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:40:04 +0200 In-Reply-To: <00161d6069cda67dbd8b918dd987e01dc1a3dab3.camel@sipsolutions.net> (sfid-20190830_111018_535326_C90DC0EB) References: <20190816192703.12445-1-denkenz@gmail.com> (sfid-20190816_212729_636741_39C4CEB6) (sfid-20190830_110356_499003_5F22B3F6) <00161d6069cda67dbd8b918dd987e01dc1a3dab3.camel@sipsolutions.net> (sfid-20190830_111018_535326_C90DC0EB) 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:10 +0200, Johannes Berg wrote: > 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. Ah, also not quite true, at the time it still had a 4k default, until commit 807fddc4cd9e ("nl: Increase receive buffer size to 4 pages") dated May 8, 2013. johannes