Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4823800imu; Tue, 8 Jan 2019 06:59:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN5q2bUyj+ALgB1J2HGCZT4YorQkmn6BfsmdUoq1D8rmZf/Lqa/NmphelKUhYtEmaOvCjEao X-Received: by 2002:a62:2b8b:: with SMTP id r133mr2053696pfr.246.1546959576091; Tue, 08 Jan 2019 06:59:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546959576; cv=none; d=google.com; s=arc-20160816; b=vZKBE53ydjs5+NSGLzT+QkAJH8xwoID7RYK7TFxoMDXH7fPGD3eM3UmAFle2BKhqVU gSieg1Z9MBtYv1GuZdwzW/8hftNeZUu2rKZ975ehbFV6+qyyJ0DVMgXMnF0X7lcyykBq CqM++wfjfLmqyUWQa7oAgH7IEw+hTrRObFuE+H6SBrAQeOd7IQHeJA+TuOMN8CsGMeVb qzNPVMaNQaOAStgYzzTdGErv3w1d7a63kWjhMr6z4C8FqHQoeH6fH7XdYhfqg3a7GZ61 LZlxKeMsW3ITAm0zI8+YgFhefd3dF8L6q8jKW6Tk6FHa4i65mZOA7eQs0j1uhmqn9azk 1afA== 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=1OqxJgv8bJ+OuD6/bOsc1lNbwU9dv4AadNIqui9RJ4E=; b=iiR60l5IXb6qjwEl5MFIAhd3GBIYmZK/Js8IrNIIFt4F4ClSsdhjRXr74FVUJNM4uH NIsrCCNRnwy8FnpQ1vu2OSy0RFI6s8VmNypd1+U6oj3+KOzib6Ofm0speBeToe+7T35Y yZtznSmcsWLG+yr7frBVlydKqi52zxRJ8ppDYDWNaSJ7lhSF4lwTD3KjDK0o4TN6mNNa MEhVVfftoJmj2ppnd95rWl3yKXmAx0+fKfSQVJwOnQKNB6Wgd2mQfa1bsvm3Vixj//XA +1LLc6NTUQFOVE9CTxnhK0GN7FxAicI/VAYZ//SIsUUbHn8/1eu1sum9szYpslaq11qX V72w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="u/RP3twW"; 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 206si8928638pga.240.2019.01.08.06.59.20; Tue, 08 Jan 2019 06:59:36 -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="u/RP3twW"; 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 S1728537AbfAHNxo (ORCPT + 99 others); Tue, 8 Jan 2019 08:53:44 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:34008 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727678AbfAHNxo (ORCPT ); Tue, 8 Jan 2019 08:53:44 -0500 Received: by mail-ed1-f65.google.com with SMTP id b3so4327827ede.1; Tue, 08 Jan 2019 05:53:40 -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=1OqxJgv8bJ+OuD6/bOsc1lNbwU9dv4AadNIqui9RJ4E=; b=u/RP3twWsP0zBnL4Jc0ITIc7bLVolBlUDBLjCoev9T3InFEFrOdFdgqp5wdd/8IDEn Q6NPzVjy47EoFqMIfTDL9qk1G+LgUcUsK8I8tnZP97c4TfwYeDtW9FzI9t1TZ+U1yPHd ORmCOAKYxmlgxX8WduCiy0pnCrJeJSc6J3UOK56b43is8nyXuNVGZojRrR981dE3w5Bm wA9UrocqwrR5hMA7LWtYMpaZlXQnpoE79mYyciZG5cnn3Qt3P5drYQ84uMf0MzNgTWgZ mi1mayLU4nGG6869DK3QVOnUcbaprX8+fCe8D2PfLV2gu7HuqrFcI0Fpky6lBasOS7iv 84OQ== 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=1OqxJgv8bJ+OuD6/bOsc1lNbwU9dv4AadNIqui9RJ4E=; b=lCrdFPRo0gB4RKjw6GlUexE+cEc4GsM0tQ8AOFkoDJ6dVhh8ZDh01TbEEKA7BO/yJF YC5lydW1lwHhz9gt1iM9U8cv1CXF7SB8aaaTFu5frNsVZ57cIWWAgnh/kqvMaPnyG6IE Z+9C8A1AifPPg99PPytex+AbxvmrKljfhmQl3mXhJ2f3UQqbBqFeZb4Sqr/0fsjMme01 os7LQC/lc2LEqgAJQEqqOjnc7wHJy9zJPYUH36Pe2j2dmY6MUaadcMlhFZmZ84Qz6QVX 07Vxm60lCsNY1SAQIOqJkS4Bxti4cRMSQeHHlpSb1SIy1TGqA1FhK2H/sxcDwSdZgsG8 p7mg== X-Gm-Message-State: AJcUukd1Bo5l0s4O4E83OEkV+C+/rdaVl1qqRryOKg6tfglIjzgwY3Yw qnD/4MdagOddN9f8t5wgLcvtcDtAxBueYDHVRe0= X-Received: by 2002:a50:ac81:: with SMTP id x1mr2206576edc.71.1546955619901; Tue, 08 Jan 2019 05:53:39 -0800 (PST) MIME-Version: 1.0 References: <20190108032657.8331-1-deepa.kernel@gmail.com> In-Reply-To: From: Willem de Bruijn Date: Tue, 8 Jan 2019 08:53:03 -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 Tue, Jan 8, 2019 at 8:37 AM Willem de Bruijn wrote: > > 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]. to be clear, with the version, so this will be [PATCH net-next v4].