Message ID | 20190814205245.121691-4-arnd@arndb.de |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1319554ily; Wed, 14 Aug 2019 13:55:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyswMAqX6fE7/ghBhiDNa+ZBmWtWcwVSFVxDvgoc7ZaJV3jJGP8eCbenYXMUBysVkU/ctkd X-Received: by 2002:a65:50c8:: with SMTP id s8mr839516pgp.339.1565816105807; Wed, 14 Aug 2019 13:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565816105; cv=none; d=google.com; s=arc-20160816; b=IceJWyXYfGixdzsvB/ueq5rm/UeZZoNnu17O+XfMIKYKBB7m/b+n1LByqA+xhM7r5r V6JBinLITy3AzZl84JufhLuqbwCO0Mt2NPNCtU0hpdusHcrQ9n4GnejHxBedbVbEJAjE ta0+Uva19UoJQNVp3eYY8w6LvQ9xUPS72GWf3q+rthtwq5nm/TvlqhudiymFNayOzhf6 0UqsdqE9wFudH+CHSIB1EkAfHKfyVDeoR9w/eSo0dMq6VorPusO4dKhFVvskR3mdQ+TF bkVQUJPLrErKAZGFNUo/lkjwmfg73GQ4DA5tRGuv/SKYdMOg9k0IOPM++yEVjXzvsWbd V55w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=gZV8H+BF5/iClHpkkVOY88zq3MWJpfJeDVV1wOj/gOc=; b=fKjtpvcNQfqxAAJoLFO6oA4RKXsPqx+Zb0GApECwI9It3K9Wa6dnfX8zBUDPmrEVP7 TjJMGSQgZhIxKmWI50lJAZ+3ZguMrGyraF66q+rC0g35my8HH/48r/4g9Elmlu+My7YW 2/H4tzJb6Cec8jt0WMxK7ugoncGULAwn5tuifRHGQeX2TnKR4pW5cvQwptkDflv+taOD mxYY4NtwNQFJHWuFBMF/fRzRIvne6IjEsAQC1jvUEopQ4JzPqPc076tulfumMYxrKRKC v6mKoX2YoXqx5WoNjDXOSF4s4vMTvoyt+N6tISmLWkNTqEJ8Mz+98Y2cYqnvUArjs7+k ONQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si496014pgp.299.2019.08.14.13.55.05; Wed, 14 Aug 2019 13:55:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729923AbfHNUzE (ORCPT <rfc822;mike.holmes@linaro.org> + 28 others); Wed, 14 Aug 2019 16:55:04 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:47591 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726505AbfHNUzD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 14 Aug 2019 16:55:03 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1N7gfa-1iKZYU3lUA-014jrh; Wed, 14 Aug 2019 22:54:45 +0200 From: Arnd Bergmann <arnd@arndb.de> To: linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, "David S. Miller" <davem@davemloft.net> Cc: Arnd Bergmann <arnd@arndb.de>, Mario Schuknecht <m.schuknecht@dresearch.de>, Steffen Sledz <sledz@dresearch.de>, Willem de Bruijn <willemb@google.com>, Johannes Berg <johannes.berg@intel.com>, Deepa Dinamani <deepa.kernel@gmail.com>, netdev@vger.kernel.org Subject: [PATCH v5 09/18] compat_ioctl: handle SIOCOUTQNSD Date: Wed, 14 Aug 2019 22:49:21 +0200 Message-Id: <20190814205245.121691-4-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190814204259.120942-1-arnd@arndb.de> References: <20190814204259.120942-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:PR2kN+3b7Ibxtnk41q7Nxz/FfJzjWkTqKtlwh7QP5DaHQ4nbRYc NiBXcxAA5hJaBn1P+Fpve4A5y3aKag9gv5v2r7+a/cpLhPgwYCDqwREb86JtUgNOePqKqwO 9PFoe0Dmlm8ahvvWkFp4laELhzMZjpcMcXd+WxVvuyWNmbvw5Mmsj2C7vmluBXGG9G9Xb6L o1ewHcZ3o87tDYhM10iqw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:U+fzLfynvBw=:1jD0thGH+ZMq+c9jiboTLb BlplpqEkAj9npkOADezy/rfKW9RRddQR26ODkc5xHQZIs+Fy0kZq/ZLe432CGs3a0VwRwnjx0 VqDkkvkoEfFlpRC01EB5r/i9jDrEx9sixAHF6qNWlJh6EiYP9fUhr0F9RPRlDma5rD4DtKIE/ zPwg9l0mNNBuBAy+Q9qQ8AjM94seaols/Y18YZg8U3H2zUdxYQqv6NJ+4S34APo/xl2l4KYTU 5NjF2m4BbUz4WuY4WqrjJGsRc7Tu/Hzozj+8ggRZT5Fsy6cZZDd7l9hPYC2yltVnLFvfrcmuy fsU4VHZree9L45yKMAcpb3ij45dL0r1b9Ue24Z7F1wvJI4BrgJp9ENvacPx1nUmqg59tQCQ9s caHyYBeDSE0S3u4xboxsO3AkS3QomjAMQlKGMRL//NGUbIK51oqEqa8VT/259Qi1QjeqVmRHn UWRFw4Sp0v5tDl5CQhLG7/fVT2oOR6/ydrhssMiE02yfoUHC+PPGXVoBEK3dDKJ2T4jOOcv36 FtQzODhYoF073qsHUsHjrxo5L58edg/7a38nDUNPJqnuRlN9Suu40Rg4GvjaI/ESf7bx3vbPn ht3BaBZYhM3ojviYfFnuYvIVLEv/UPJBQfZ+gopabMNu30gaxLDURPasEZVGqA0YaxbBU880j vShZr4VPbPVQiHAGupjPf/3hXFS9ObrabfhHuLICA954HFV3rj5R8i0WLntB+FAhW+GBiDuM7 GHEUzvsNfRmYXh5/TzEkUp2uWojN4dFfly316Y5bcuOxOLAKUH4miD+ftlu/PGboQVXU4WsV7 uIQbo6ccew25RiZi9c12pCLbuULQg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[v5,01/18] xfs: compat_ioctl: use compat_ptr()
|
expand
|
diff --git a/net/socket.c b/net/socket.c index 6a9ab7a8b1d2..a60f48ab2130 100644 --- a/net/socket.c +++ b/net/socket.c @@ -3452,6 +3452,7 @@ static int compat_sock_ioctl_trans(struct file *file, struct socket *sock, case SIOCSARP: case SIOCGARP: case SIOCDARP: + case SIOCOUTQNSD: case SIOCATMARK: return sock_do_ioctl(net, sock, cmd, arg); }
Unlike the normal SIOCOUTQ, SIOCOUTQNSD was never handled in compat mode. Add it to the common socket compat handler along with similar ones. Fixes: 2f4e1b397097 ("tcp: ioctl type SIOCOUTQNSD returns amount of data not sent") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- net/socket.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.0