Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp488857imm; Thu, 30 Aug 2018 04:06:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZDnNbWG10r0nIwBhGAIrI9mdUUYK3aNxPxGFs7boH3vGjyftC9vMVTsLqARotwZP9FBF5X X-Received: by 2002:a17:902:758b:: with SMTP id j11-v6mr9821436pll.29.1535627205339; Thu, 30 Aug 2018 04:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535627205; cv=none; d=google.com; s=arc-20160816; b=I9oayM2cu/0TRr7adlvvPo8UD2LN9GObcMeWcyLLRiPTPTQrnR97ZwGvUSfp4Kjmpd EUk0npsFXKgXFPrxGRNGoh8hnuIF6HqCSXz2tBpKREr7VzBSaltkTlF5I2iGlj/3F780 gdjHuccVPKf6c6tuFc3h9B78KFI6PZgSK1EfFEZu1Xet6fqay6aLQaREoZ7aHwbLD603 X+CPYzk2X6I9pvwZAzmsyyURdpJhroGbFjqu/R6IY236HGDNgHDPNTBpq7/eSiYBo/FR NLUD+RR7XrEV1PTWsvWE9p6SFpkjGIuLgOD3Sqo85AB/3V02Kc0yQvZJUDTtitbJ2zD1 1Osg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=nB8R7UoXPvX55Me83jgMVrGFFfRDEKuVHUJREwmGh6k=; b=bTVhBDrJ9BV2q8ZpCBIoM1sRSSGxcIkkD14jphwgYjTys8YFTbskbn8RMI5Z7n6b6V P8SCwmAvIVI8+YZAAwdR4G/M0EkFcdNzQ+6ChMz6d/2aQYllm2L9H+vQ98FS3jmioldD SnXNmp9/IuFkfmUCKUj8KEOjqTlgU/4I7f6Sfo9BouIH2COda56y8iaCbi6HH70euCCJ 6D7o2ZCFwYJVRPZSireYtU+YQUzPH4O9zuSZJjFTaFJBoAkCdjJuEd2oSyTsw9lowGgU yG7LDhDlzGW96xK43tKddqBcdpKeBjfm3KkYwuqWsDWSYfnguEskMjX6HpHyHnzFGIQ8 wpCQ== 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 e67-v6si6072038plb.272.2018.08.30.04.06.30; Thu, 30 Aug 2018 04:06:45 -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 S1728516AbeH3PGe (ORCPT + 99 others); Thu, 30 Aug 2018 11:06:34 -0400 Received: from zimbra.alphalink.fr ([217.15.80.77]:43657 "EHLO zimbra.alphalink.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727451AbeH3PGd (ORCPT ); Thu, 30 Aug 2018 11:06:33 -0400 Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 064492B52055; Thu, 30 Aug 2018 13:04:56 +0200 (CEST) Received: from zimbra.alphalink.fr ([127.0.0.1]) by localhost (mail-2-cbv2.admin.alphalink.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id T5B8Gqx92cSz; Thu, 30 Aug 2018 13:04:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 56A5E2B52071; Thu, 30 Aug 2018 13:04:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail-2-cbv2.admin.alphalink.fr Received: from zimbra.alphalink.fr ([127.0.0.1]) by localhost (mail-2-cbv2.admin.alphalink.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Ie5Z-05odUO5; Thu, 30 Aug 2018 13:04:54 +0200 (CEST) Received: from c-dev-0.admin.alphalink.fr (94-84-15-217.reverse.alphalink.fr [217.15.84.94]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 1FEA52B52055; Thu, 30 Aug 2018 13:04:54 +0200 (CEST) Received: by c-dev-0.admin.alphalink.fr (Postfix, from userid 1000) id 0301C60228; Thu, 30 Aug 2018 13:04:53 +0200 (CEST) Date: Thu, 30 Aug 2018 13:04:53 +0200 From: Guillaume Nault To: Arnd Bergmann Cc: paulus@samba.org, linux-ppp@vger.kernel.org, netdev@vger.kernel.org, mitch@sfgoth.com, mostrows@earthlink.net, jchapman@katalix.com, xeb@mail.ru, davem@davemloft.net, viro@zeniv.linux.org.uk, y2038@lists.linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 1/5] pppoe: fix PPPOEIOCSFWD compat handling Message-ID: <20180830110453.GC1473@alphalink.fr> References: <20180829140409.833488-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180829140409.833488-1-arnd@arndb.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 29, 2018 at 04:03:26PM +0200, Arnd Bergmann wrote: > Support for handling the PPPOEIOCSFWD ioctl in compat mode was added in > linux-2.5.69 along with hundreds of other commands, but was always broken > sincen only the structure is compatible, but the command number is not, > due to the size being sizeof(size_t), or at first sizeof(sizeof((struct > sockaddr_pppox)), which is different on 64-bit architectures. > And the implementation was broken until 2016 (see 29e73269aa4d ("pppoe: fix reference counting in PPPoE proxy")), and nobody ever noticed. I should probably have removed this ioctl entirely instead of fixing it. Clearly, it has never been used. If you think it's worth fixing (as opposed to dropping this ioctl or its compat mode), then, Acked-by: Guillaume Nault