Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4743694imu; Tue, 8 Jan 2019 05:39:45 -0800 (PST) X-Google-Smtp-Source: ALg8bN6bFsrkQ/dmWVaWpCdeaJzeN2FoLBWnJUHJtRBGg5WPmshhUXBLachf6Ltyao8JE4O9n3pl X-Received: by 2002:a62:c21c:: with SMTP id l28mr1782489pfg.74.1546954785881; Tue, 08 Jan 2019 05:39:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546954785; cv=none; d=google.com; s=arc-20160816; b=c4k6ykjEYo+sYnKYXDDe5FTjA40PSC/49HDTJJ7vtriAv/wLWFdzwYNCmdPkyg7nT8 ZksVf/YwJRkYoRPxlQzrQN/7XiajQ8yNUISJIb1JzpH4QU9EWNAaFhJCu21wqQgIBFta YojmQEL4bAjqB2WVLmqi1aPbr97nG2ApSkp4K30ibD5sKOmnRYa6SwonPMmKVCxnTY/n eGSzVzHgPVxtfN1wjZBNyUPrC/w0ZOkR//Rub8h6WrmY2wshPPXW7b1T6aNYet3AoduG lRmmHK1GTDooPF6QhdjVXPjtCQQ8d6nNWqNh29nTN7TDqGIgfBXCMoLLCnP8eMSvQGRT 2b0Q== 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:dkim-signature; bh=6nXKYaCNiwgzlBrCj/v1vQjps+Q5gGfbpQOOfB1h0CI=; b=zkOhEi3vtC7txzzUX1UwurmKaDNw3obMN/wcErZ4AsNcMPwop6YzTBmqQO7vT0g1Ui H0k/FrrH4NcA1K0ypxtlqtvKWmo4O2F2Uw42uYBQ4WMQTfzmMvQDSn1bKSSZGn+Hssp4 OLUvJybkw9HXqM+YKGIoZIm5zdIPJ78lGsTTx5k+Qe07Fj/PaVU/Bad7aq3VbcDlyjrM TGNoqVt4AJgVUgZsYVMvwLCrrw1KM4+F3mz+4vMUizgyNnZvW7HyPplTcBls2z9/4aG0 DNnZrIazbFLqo+14Em+p/VvtZr+pahhyUc5L+qhV/OSnIgnLqfIPNoU2NMBkm7ZvTIOg VrpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fQJq3kfa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i33si20738299pld.329.2019.01.08.05.39.30; Tue, 08 Jan 2019 05:39:45 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fQJq3kfa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728067AbfAHNhr (ORCPT + 99 others); Tue, 8 Jan 2019 08:37:47 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:37656 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727677AbfAHNhq (ORCPT ); Tue, 8 Jan 2019 08:37:46 -0500 Received: by mail-ed1-f65.google.com with SMTP id h15so4255510edb.4; Tue, 08 Jan 2019 05:37:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6nXKYaCNiwgzlBrCj/v1vQjps+Q5gGfbpQOOfB1h0CI=; b=fQJq3kfazkRaVcWp/jPyOlyKRy5/ek8ymQOV+bF2CWzmEjQUp053C+Rgi/qmTgxPb7 2AiGxr0nOB+Osg6yaSWO3EoPyW8btVIJDxvZFk211tKdiHLhXICxYKURjEUDjgR7c3BE 7Pp4d7Xkb5SUpz066jZZ2OK6w4qtdfNP1XPUF6fdNqJaFMdtIPVyBBJnj6IhiQy0AA0J LgUa75e0kK/DymYavwYIg7nKGj40aqv0rcaDgdYAQ4yzXboZqTFPtvglQgYIV330GHm3 h8ksU4gM3pO1YNzJtUYRdWDMnVwaJFqz2iTO6DL8UfDPpefn0sVNG2l24PFVvS8EM4NK ChUw== 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=6nXKYaCNiwgzlBrCj/v1vQjps+Q5gGfbpQOOfB1h0CI=; b=P6Sv7506gqAha1fKnq9TD5jJpd5vnO5HjnBNSKoPJvCTQN9iWDQBG2I4W+p/uy1tAq gkmLQAVJeyC6K5+rCpE/ZtxL5AIZofYMuV9i+OzoZS3bFn+PdU4VMz+mKkEbJMvrbP7h aXWULmBSiU11TIKYTZpiiSPwsZbUbJbQfiEIT0wTuCiZRvl17kVLooUTzlPLDTZQFTm7 OiUmCPrFIklCcL3ZI9Jbj6AbLMvaQ/GK84mjZ5uOskIRpLrZ+GExnWhJzi/gfyr8fBwL mM02D9TD3IVAoe6aW+v1owbngmf7O3H+wsel83wap1dq+D8XhJJirm71/bl8yTRTdxs3 hq7Q== X-Gm-Message-State: AJcUukeFLQQPSa41apkiGDs6HMnoFzHMsGdBcdpwlYnUeMdDBBpEwSYk mtZX8kUCkdRRPgqmDzvSiqIS+K4M0swRRm9zI+c= X-Received: by 2002:a50:a517:: with SMTP id y23mr2140352edb.219.1546954663585; Tue, 08 Jan 2019 05:37:43 -0800 (PST) MIME-Version: 1.0 References: <20190108032657.8331-1-deepa.kernel@gmail.com> In-Reply-To: <20190108032657.8331-1-deepa.kernel@gmail.com> From: Willem de Bruijn Date: Tue, 8 Jan 2019 08:37:07 -0500 Message-ID: Subject: Re: [PATCH v3 0/8] net: y2038-safe socket timestamps To: Deepa Dinamani Cc: David Miller , LKML , Network Development , Arnd Bergmann , y2038 Mailman List , Chris Zankel , Helge Deller , David Howells , fenghua.yu@intel.com, isdn@linux-pingi.de, "James E.J. Bottomley" , linux-afs@lists.infradead.org, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-ia64@vger.kernel.org, "open list:RALINK MIPS ARCHITECTURE" , Parisc List , linux-rdma@vger.kernel.org, linux-s390 , linux-xtensa@linux-xtensa.org, Ralf Baechle , rth@twiddle.net, schwidefsky@de.ibm.com, sparclinux , Thomas Gleixner , ubraun@linux.ibm.com 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 Mon, Jan 7, 2019 at 10:29 PM Deepa Dinamani wrote: > > The series introduces new socket timestamps that are > y2038 safe. > > The time data types used for the existing socket timestamp > options: SO_TIMESTAMP, SO_TIMESTAMPNS and SO_TIMESTAMPING > are not y2038 safe. The series introduces SO_TIMESTAMP_NEW, > SO_TIMESTAMPNS_NEW and SO_TIMESTAMPING_NEW to replace these. > These new timestamps can be used on all architectures. > > The alternative considered was to extend the sys_setsockopt() > by using the flags. We did not receive any strong opinions about > either of the approaches. Hence, this was chosen, as glibc folks > preferred this. > > The series does not deal with updating the internal kernel socket > calls like rxrpc to make them y2038 safe. This will be dealt > with separately. > > Note that the timestamps behavior already does not match the > man page specific behavior: > SIOCGSTAMP > This ioctl should only be used if the socket option SO_TIMESTAMP > is not set on the socket. Otherwise, it returns the timestamp of > the last packet that was received while SO_TIMESTAMP was not set, > or it fails if no such packet has been received, > (i.e., ioctl(2) returns -1 with errno set to ENOENT). > > The recommendation is to update the man page to remove the above statement. > > The overview of the series is as below: > 1. Delete asm specific socket.h when possible. > 2. Support SO/SCM_TIMESTAMP* options only in userspace. > 3. Rename current SO/SCM_TIMESTAMP* to SO/SCM_TIMESTAMP*_OLD. > 3. Alter socket options so that SOCK_RCVTSTAMPNS does > not rely on SOCK_RCVTSTAMP. > 4. Introduce y2038 safe types for socket timestamp. > 5. Introduce new y2038 safe socket options SO/SCM_TIMESTAMP*_NEW. > > Changes since v2: > * Removed extra functions to reduce diff churn as per code review Thanks, Deepa. This set looks great to me. One issue, it does not apply cleanly to current davem-net-next/master for me. A conflict on patch 7. It does apply cleanly on davem-net master. Please rebase and also send with [PATCH net-next]. Perhaps also run the selftests in tools/testing/selftests/networking/timestamping/txtimestamp.sh, just to be sure. Since you have a to resend anyway, a few minor nits inline, as well.