Received: by 10.223.148.5 with SMTP id 5csp7957317wrq; Thu, 18 Jan 2018 11:43:14 -0800 (PST) X-Google-Smtp-Source: ACJfBot5+NJT4JT6fqumJ8zOIcehTx18aQTnH6rYwkwLjiRti/bXjdZ91HdbF5n/GI9om436B7yZ X-Received: by 10.98.178.133 with SMTP id z5mr35168033pfl.88.1516304594361; Thu, 18 Jan 2018 11:43:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516304594; cv=none; d=google.com; s=arc-20160816; b=QK06/vVxue7sF3Ti0tyUUjU/UTP5qDgvFImxHyx7LfLv9CThn9sjXKboOHE5okOaal fAV8vwUFIJ+fngcbXeOXkcra2en5XX0XgmpWeDzun+KfM+AtsBr2Nr92kHIru2txH/rz X8/fwHtNOG3Ufv9MDIE6iniH1DJadXBmhACYd9SV+1bhiZWkzytqdDjobSDq4fp3SUxa ZY7T4HssDrz9IP3zHHHH2p6a+A4Xudy1AvYRxt718eOkhkZ9Q/ntLQg/OlUNxN7cnteE /Ln8CrtD92FhvUvWH10orX2TN0+Tm1x0WBKvHd6NR2TFuNaUo8ymCsss502leSTu/yWR V4fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=QhIf/hGEwC4Lu/t6B3ckWx9F5uyyNa1QHvoADEn6hJ8=; b=rV7AQTqqw+0MeK4QgoEXcRY8lIwwdQFEadQohdCB7yFuGrG2O8UoHxbEQKru5laL6/ bPd0QXfa7qUbgGWPS8psl0A8mTaL947YCHCngkHgBUon/1HHhbTZjyl6//x3K9ms8Ama NGgyzEsqDJqQOX2O7f34JXYiG+ToghgWP5qWrRXVT6x4uFgf7XGdCN9PdR7KhEg75Ytr Zpfto381ktLrC4dh8yfw1pporb5CL9g8GAFnb32KePfBZy9nBKnlisntz2rvRmiOAq9d XjJxgOXiS3WgTNwgFpZzw3sAlLMpZb5NP0Rhi8NIBfV+07XDsDaTYht+QLa6onx3ZgpU h/CQ== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x75si7606686pfa.144.2018.01.18.11.42.59; Thu, 18 Jan 2018 11:43:14 -0800 (PST) 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 S1755533AbeARTiS (ORCPT + 99 others); Thu, 18 Jan 2018 14:38:18 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:55618 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754170AbeARTiR (ORCPT ); Thu, 18 Jan 2018 14:38:17 -0500 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1ecG0t-0005EB-NZ; Thu, 18 Jan 2018 19:38:15 +0000 From: Al Viro To: netdev@vger.kernel.org Cc: "David S. Miller" , Linus Torvalds , linux-kernel@vger.kernel.org, Christoph Hellwig , Al Viro Subject: [PATCH 04/10] kill dev_ifsioc() Date: Thu, 18 Jan 2018 19:37:49 +0000 Message-Id: <20180118193755.19997-4-viro@ZenIV.linux.org.uk> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180118193755.19997-1-viro@ZenIV.linux.org.uk> References: <20180118193156.GC13338@ZenIV.linux.org.uk> <20180118193755.19997-1-viro@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro it's been equivalent to sock_do_ioctl() since 2009... Signed-off-by: Al Viro --- net/socket.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/net/socket.c b/net/socket.c index 112216c537e7..f280258bd6a4 100644 --- a/net/socket.c +++ b/net/socket.c @@ -2915,42 +2915,6 @@ static int compat_ifr_data_ioctl(struct net *net, unsigned int cmd, return dev_ioctl(net, cmd, u_ifreq64); } -static int dev_ifsioc(struct net *net, struct socket *sock, - unsigned int cmd, struct compat_ifreq __user *uifr32) -{ - struct ifreq __user *uifr; - int err; - - uifr = compat_alloc_user_space(sizeof(*uifr)); - if (copy_in_user(uifr, uifr32, sizeof(*uifr32))) - return -EFAULT; - - err = sock_do_ioctl(net, sock, cmd, (unsigned long)uifr); - - if (!err) { - switch (cmd) { - case SIOCGIFFLAGS: - case SIOCGIFMETRIC: - case SIOCGIFMTU: - case SIOCGIFMEM: - case SIOCGIFHWADDR: - case SIOCGIFINDEX: - case SIOCGIFADDR: - case SIOCGIFBRDADDR: - case SIOCGIFDSTADDR: - case SIOCGIFNETMASK: - case SIOCGIFPFLAGS: - case SIOCGIFTXQLEN: - case SIOCGMIIPHY: - case SIOCGMIIREG: - if (copy_in_user(uifr32, uifr, sizeof(*uifr32))) - err = -EFAULT; - break; - } - } - return err; -} - static int compat_sioc_ifmap(struct net *net, unsigned int cmd, struct compat_ifreq __user *uifr32) { @@ -3181,8 +3145,6 @@ static int compat_sock_ioctl_trans(struct file *file, struct socket *sock, case SIOCGMIIPHY: case SIOCGMIIREG: case SIOCSMIIREG: - return dev_ifsioc(net, sock, cmd, argp); - case SIOCSARP: case SIOCGARP: case SIOCDARP: -- 2.11.0