Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp514452imm; Thu, 30 Aug 2018 04:49:15 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdah0LJ9jgFS7VPNBsuupz1OFrF9BI+vgRcn7l79JO70aLkXEYndkqjQ5GALObTusmPpKWZu X-Received: by 2002:a63:f26:: with SMTP id e38-v6mr9253252pgl.354.1535629755873; Thu, 30 Aug 2018 04:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535629755; cv=none; d=google.com; s=arc-20160816; b=eHvB25PGAvPaaXbcT3Mpkr9HT/3O7sra1ViUSmWx7lsVX/ZGWME4c3ApXg3PMZOFyX uvhGIUwBvd5bBzR6pwsV5HrU67KNEB92GcH5YfF7JSodAdmChg72TgQXV/OTg6JH2MdT qYVUv9noU6ewYrGProafzwYjjYK59gGl30xPofKfGN4nrHMp0joyrWI34I39LcVpY4NB jpOjnMBjRm3MIPoCCMd3WM+dZ4MR54OnId+3cGX14ioWK9XuysNRTebUznVWuqbFlHL3 2MYvsrtdKSO69kqMxypgdjW+M8IOcUHXs+S5jnkMG1l0pzxA1iOr5gTloTnKKPD/PWUx YkOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=BvF7K72jEWeISoisGQ8jfqvyvn82QaMD91dmGFmWyiY=; b=0vFZOsBxkuo3UCq8NEETyWtYdz80O8YLqbYttYSM6mDBhgwBn8Br0NAekgKNmxRiDu Hm98Kr3pu4hWBBqV5ObJsnyoUx2WY4qL8mUHy8XNqF2PNaFcLj7lOBaPXC6PazJjRTz0 91HS7IiD+aZ6EAPqrIJSeOZr1pivXuLuBY0OtLtP1ZoOWjO9NSeNb67avZdi8Axt/Hgk Tl1G81e5QGephD1G/AFBjHRLnjDHLwY1H4G69GDj2QZG2lVnRnEX7cUH/Q3O+mzi9Tp5 ddBUtAYPz+H9OKiYzFtwhiOfcKxqlBFSGyzmOuPmRka7N126+tQG4rMyE3EsfXYF6+r1 awcQ== 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 u20-v6si6676783pgj.443.2018.08.30.04.49.00; Thu, 30 Aug 2018 04:49:15 -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 S1728297AbeH3Ptk (ORCPT + 99 others); Thu, 30 Aug 2018 11:49:40 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:40565 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727499AbeH3Ptj (ORCPT ); Thu, 30 Aug 2018 11:49:39 -0400 Received: by mail-qt0-f196.google.com with SMTP id h4-v6so9351358qtj.7; Thu, 30 Aug 2018 04:47:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BvF7K72jEWeISoisGQ8jfqvyvn82QaMD91dmGFmWyiY=; b=fqRUyzgHWTmFgA25imDPmlXiP4UH0bTEHZFjC/YXJK/JEXTXYhhqvbj8hXCdJmMVhK oiR9l7fy3RhjFJWEoKIeaKrOgdCviGGvDY4KfrAXGdVfbMsTPWci9KJxGmxQb571qPYw nhZ3IrP3CUdXnoNCqrijvDXzuUbECiCJCHgBTydJWjJ6TIjD7IHepOWa1A/qQzYmc2Fl FBwiCac0GoSqKSVsXurmLZ35WmEu+oEnXXQ6KfxmyYmWw8G68GTAGF7beOnKoPuE4R2m 3EhgXdh0MULY5NGLKJL3PLY8Lb2dIudxIbnxdxlFlrMOG7A1WNmQZKFq7wIa3S0dkfxN vW2w== X-Gm-Message-State: APzg51AMeKVEW4IJnLRtdlJqlk9GTRhkBTijVYgaN0/Z4m864F4FAZeN Kg8cuTwkoWNFT0VXa8ywrL3He+WtiLHn4cBSFWE= X-Received: by 2002:a0c:a8cc:: with SMTP id h12-v6mr11110668qvc.161.1535629674136; Thu, 30 Aug 2018 04:47:54 -0700 (PDT) MIME-Version: 1.0 References: <20180829140409.833488-1-arnd@arndb.de> <20180829140409.833488-5-arnd@arndb.de> <20180830110601.GA19534@alphalink.fr> In-Reply-To: <20180830110601.GA19534@alphalink.fr> From: Arnd Bergmann Date: Thu, 30 Aug 2018 13:47:37 +0200 Message-ID: Subject: Re: [PATCH net-next 5/5] ppp: handle PPPIOCGIDLE for 64-bit time_t To: g.nault@alphalink.fr Cc: Paul Mackerras , linux-ppp@vger.kernel.org, Networking , mitch@sfgoth.com, mostrows@earthlink.net, jchapman@katalix.com, xeb@mail.ru, David Miller , Al Viro , y2038 Mailman List , Linux Kernel Mailing List , Karsten Keil , "open list:DOCUMENTATION" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 30, 2018 at 1:06 PM Guillaume Nault wrote: > On Wed, Aug 29, 2018 at 04:03:30PM +0200, Arnd Bergmann wrote: > > @@ -743,10 +744,17 @@ static long ppp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) > > err = 0; > > break; > > > > - case PPPIOCGIDLE: > > - idle.xmit_idle = (jiffies - ppp->last_xmit) / HZ; > > - idle.recv_idle = (jiffies - ppp->last_recv) / HZ; > > - if (copy_to_user(argp, &idle, sizeof(idle))) > > + case PPPIOCGIDLE32: > > + idle32.xmit_idle = (jiffies - ppp->last_xmit) / HZ; > > + idle32.recv_idle = (jiffies - ppp->last_recv) / HZ; > > + if (copy_to_user(argp, &idle32, sizeof(idle32))) > > > Missing 'break;' > > > + err = 0; > > + break; > > + > > + case PPPIOCGIDLE64: > > + idle64.xmit_idle = (jiffies - ppp->last_xmit) / HZ; > > + idle64.recv_idle = (jiffies - ppp->last_recv) / HZ; > > + if (copy_to_user(argp, &idle32, sizeof(idle32))) > > > I guess you meant 'idle64' instead of 'idle32'. Good catch, fixing up both now. Thanks for the review! Arnd