Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3655070yba; Mon, 29 Apr 2019 06:23:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVKndHmuE8CMvPDY7Bpxj2asUXTS6bM9khPOGCO93JFx5yvVzUbnt/YBtwegPfKDTJ/sAj X-Received: by 2002:a62:6490:: with SMTP id y138mr63846208pfb.230.1556544227617; Mon, 29 Apr 2019 06:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556544227; cv=none; d=google.com; s=arc-20160816; b=SfTemmMNcLkBFtjlaooozekQO+P3NY7icAOxQXjWEI+mJlwSCxiLXt0IBFI/Ebga38 r8TWUNm1zgxUM3g/7DqTtdokGxiYoeYay/su6nDn/C7v1Al4BIrh77m8BvvUpobhpqur 9R1j6wmj0KD5XYkcjSU9BtXwQG/SrTpxbYG6RLSHju3R0TxXcQ71NoZmnNCERPo5Blju K3Ah9Ij0GynXOWwh5qlQfV1fHtNY7G3YHH0+w8ECUpB7OVpJ4xWPlayyIqBHkTLLxOhp n3ql1elfvk0/tUFbm46xcR6NL60bXteOOkZ7TC97kG+gaPiPaFfCbXlvBDVPZRLQwPdD g5Hw== 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; bh=jxj1FCipKcklarY6Q+hJsPo8HKtT8eDMF/LowfJ48xw=; b=NedqQM7MC2I/eLAnwGLfCxd/CF/8YoY47sf1zrzdsU+d2uJmSLv3LhjQGf9Ywyqzoa jFjvGU3DqkVAva/FnARZAQ7Em9Dl6JJhyQYm1np8C8VSbeLRZk9swRY34H9GnQm450Tn /6LC+Zg3gHJoohXfO4TWMKU3GwOIv5mal8BswnOEF2BC/iXMa5W08HgDT32IXjfCb5cQ nKO5WjAlSMKzcPgdkUyhgoTMRb9yw9YsPlX09wGRs+tImSUWMqvbUofyo4gfLGvW/gmk 6HFJJD1Juxf0SlwtRNSThJ8I0cFwzV0OWtelnzBSQ0MQly/Dy3MfNfWOmAaqDv5OWI7c 3fhA== 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 s9si32739164plr.17.2019.04.29.06.23.31; Mon, 29 Apr 2019 06:23:47 -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 S1728151AbfD2NWU (ORCPT + 99 others); Mon, 29 Apr 2019 09:22:20 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:41841 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbfD2NWT (ORCPT ); Mon, 29 Apr 2019 09:22:19 -0400 Received: by mail-qk1-f194.google.com with SMTP id l199so5862772qke.8; Mon, 29 Apr 2019 06:22:19 -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=jxj1FCipKcklarY6Q+hJsPo8HKtT8eDMF/LowfJ48xw=; b=Sbt8zt5d/mefsrGhBrLCyCxx0ScBdXzomZnTqffwL8ee/2jJxZmIugIfbvJ/amxNH2 CuWYUv2wD5PeuSDLqncG+cFqtzjg/5hmzI1QUCy+kqzIYFv0PuFq3hVbWMCCA72BAck5 KSGECbiZTd8gYMGA7jMjHUGY0QtNN2xPt4t+nt6JBzcZZpWC4NJzvwpuUcrE1mAR51Bm NPTLV/7eL2APotZt5g69Thn44L2avZuLRqNZTqByo3KwoFcNXrl6fT53jpm7iIkIK8Jp bGi2x5a4cSih9GFpTIoyAuqeZoIAoy7zJRJ6JS+G9o0IFKlwckWqhpB+n5w3U57BDXKl LQeg== X-Gm-Message-State: APjAAAVptRK3oDUEjovUIxLSPNAMjCkrO9M/UWiyEjiruiiCTDHBWqcc Ea41oRxF4+XouMPmZSiG3o1DdgLYXrHFbUub8Dw= X-Received: by 2002:ae9:ee15:: with SMTP id i21mr43735948qkg.107.1556544138476; Mon, 29 Apr 2019 06:22:18 -0700 (PDT) MIME-Version: 1.0 References: <20190426142531.1378357-1-arnd@arndb.de> In-Reply-To: From: Arnd Bergmann Date: Mon, 29 Apr 2019 15:22:02 +0200 Message-ID: Subject: Re: [PATCH 1/2] y2038: make CONFIG_64BIT_TIME unconditional To: Thomas Gleixner Cc: Joseph Myers , GNU C Library , Linux API , Linux Kernel Mailing List , Deepa Dinamani , Lukasz Majewski , Stepan Golosunov 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, Apr 29, 2019 at 9:34 AM Thomas Gleixner wrote: > > On Fri, 26 Apr 2019, Arnd Bergmann wrote: > > > As Stepan Golosunov points out, we made a small mistake in the > > get_timespec64() function in the kernel. It was originally added under > > the assumption that CONFIG_64BIT_TIME would get enabled on all 32-bit > > and 64-bit architectures, but when I did the conversion, I only turned > > it on for 32-bit ones. > > > > The effect is that the get_timespec64() function never clears the upper > > half of the tv_nsec field for 32-bit tasks in compat mode. Clearing this > > is required for POSIX compliant behavior of functions that pass a > > 'timespec' structure with a 64-bit tv_sec and a 32-bit tv_nsec, plus > > uninitialized padding. > > > > The easiest fix for linux-5.1 is to just make the Kconfig symbol > > unconditional, as it was originally intended. As a follow-up, > > we should remove any #ifdef CONFIG_64BIT_TIME completely. > > > > Link: https://lore.kernel.org/lkml/20190422090710.bmxdhhankurhafxq@sghpc.golosunov.pp.ru/ > > Cc: Lukasz Majewski > > Cc: Stepan Golosunov > > Signed-off-by: Arnd Bergmann > > --- > > Please apply this one as a bugfix for 5.1 > > Can you provide a 'Fixes: ....' tag please? Ok, resent both patches now. I also took the chance to add a clarification for the point that Lukasz missed on the first submission. Arnd