Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14310542ybl; Mon, 30 Dec 2019 07:48:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwMAaRZxKTxIJmmbr0TgaAA9D6WCmTZZomh+7XcHnQtSaDIhhQGVyayz2nUAqtj0Pb3Z8xS X-Received: by 2002:a9d:67d2:: with SMTP id c18mr72575122otn.362.1577720928573; Mon, 30 Dec 2019 07:48:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577720928; cv=none; d=google.com; s=arc-20160816; b=EGkE6McqVUefdxPi6wunrak8TzbHsMPJeDw4K6pF7FvuiVoGxyKC3qgbK2T5DiGtjU rn8WNQWahbM40CtHtuJbdoZf8N6oxUlx45QfjZSKdlzdh4i1TCWWrX/lSfeeSJHDU/qM 0MvHKZkEYWEb2DmiQsbCT/0lyW5tsMAlUAho/iusdP/yHG/3SshJByaxa3TJrs4ijFYK d9lyOl3TV8ui8/s7uAwv234US9uL1J1mLcP46yfTow8YbI3rqO5YW+WWLjNBKf4tyVwN 284U1EXCUJ3w61L9N/GZkE1RzjsdISdRWI/9hTvsw20l4Az1MnKxCAT3ujSkYVP0POQv 9NBw== 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=VFc25jByDYsGy1fT/dTHBLNfmHk1ntJV5O6bLOR5GCQ=; b=Lh3FxvM3+2iSCRtgwuI/w44Wfn3473jEFTIWQh+uxI25wbT6YgrlhwhrdyiiaVWqUu lD2wfKoVJqt/lKQLaVDnJRXrhWOkMjaFIz1PqSR92CLHGE5UtLHvgdAPeLsJyIC+z0xf ng0Z6tu0sAZZD3Ykqh6peZTKS/tsoLAXthiDqSqTcTFKRzpPLb50968RjZyDX8fHO7Iz aXxyJTHQboCAZSo1WYQfbwAaahBquC16hxlBUYdDcTPp+5bbD0YgGXks+IBUi7EtaXdB p6o6Jm7oAQYvMw41JzFf5rNi66jCwesdGOZkziBJxYKoO3zDtPzuPvk9wnV/Ztg8H4YI bufQ== 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 y23si22250137oti.65.2019.12.30.07.48.36; Mon, 30 Dec 2019 07:48:48 -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; 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 S1727590AbfL3Pr4 (ORCPT + 99 others); Mon, 30 Dec 2019 10:47:56 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:37727 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727397AbfL3Prz (ORCPT ); Mon, 30 Dec 2019 10:47:55 -0500 Received: from mail-qt1-f172.google.com ([209.85.160.172]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPSA (Nemesis) id 1M58SY-1in3CY0kHk-0017mD; Mon, 30 Dec 2019 16:47:54 +0100 Received: by mail-qt1-f172.google.com with SMTP id e5so29857594qtm.6; Mon, 30 Dec 2019 07:47:53 -0800 (PST) X-Gm-Message-State: APjAAAWxHvcFVLv1Cs8FC/eIa2GG266m8Xis5ID6vHSqXu5Z4p9FpFIa c+fl+Dknj+BkC7PFHSeEYqHfKCim6NBrEhAwzfM= X-Received: by 2002:ac8:709a:: with SMTP id y26mr49110478qto.304.1577720873024; Mon, 30 Dec 2019 07:47:53 -0800 (PST) MIME-Version: 1.0 References: <20191223130834.GA102399@zx2c4.com> <20191224135404.389039-1-Jason@zx2c4.com> In-Reply-To: From: Arnd Bergmann Date: Mon, 30 Dec 2019 16:47:37 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mips: vdso: conditionalize 32-bit time functions on COMPAT_32BIT_TIME To: "Jason A. Donenfeld" Cc: "linux-kernel@vger.kernel.org" , "open list:BROADCOM NVRAM DRIVER" , Paul Burton , Vincenzo Frascino , Christian Brauner Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:evaCvZk8IUe5DvZ2WF2ej/4JZiaCp6VDfXgAASc3StzTy+WWyux 9q/Fe1VLxcTyurCjEbpHcvcGJiwvUYV582B9WHcgfaGRc/9SPpeqDlQuECyaylFN3lxXK66 7WGy4AstLRmSndFk78TaiQZfLzQciuyELEZCvMZAr/YBJoZiBljgZYQKSdPWW/W89SY7qSk 53MuPvPSxgt8bRz8Ium4w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:/oHvFZngoeg=:Xo2Ww0CgxaMTEALgxQtEFW 3R2fS9honTvQy9E6Dlg+ok2VaaaCKbHQEagpbNtNX3ramhc+0FFM+MvLAR5hSlqDI3emjV13J tnviOrVt9AzEZHayALsgC15Q2GpnPDNZ1CvWSQ8XMwlgACkGBJhYjaMWKGU8aQ+5dGVw3HbJq TYyv/urUvyiOObm3Sed+/mCAPZzxemMPLZWw39TWY1oizXiMdXNh/giobItiwwLWSxG3LDZCn M8OOCFgaLAJQoAr/BcdZ7HdADXpycgkX2W2mYBv1CwNkDf3Wtv5dcciyFByOQr/rs2kX4T7UW UybFKrsmIVDBK8PowVMEZcDlVcrQ27JImyAQehm2CA8yVjgQMg2qdK4EtKSt9zb/kiILhNiZF ulCs20ibaCs+qO1XGPcZedqB9TTmQrEA5mvAxj3CyBe60iNQZqzmiZ+2cbmTuJwuzAVfTk6jB d5+AQI2EkDUN5VTzeyNpw5+Hjp/YQzczhuBhK9ak2ajOapb3bG+BFTnkJXsYBlposab5kwVKL BagpAHwUdIjgcEDvwVrdc+U3YUG0zgn37dKZ7ZO9Ms+/KQLkIqDuZrZYL4pcB/5467IY1arOT T5Qn58IMUbjIN98r1tvtxRDDBWe224mSIzXMlIjuukDa3X2WDGJB0CgrJgcms/2h7vMqEWQlr mCwdhDAdPJWDr+05gFETuiubBNSrxbrKQafPZ36rVBxbssPCKl1Et6SSJCHbTsGizrVz1kGhM e+VAlry16Fn7qRCSz5//EvdB4D6HfcfgTIb+F5LyO8QwfTZmfrEMJC6QcKxIg/ewkvtG4/ynd hPqNmsymey24asg8Zft48oBfklJuqoVCTyy0BmEmACsGiXByRRIK8JyMMRwNwNcyvoQPXoUmv zmLxS8ZhhSyS0+GDUf7g== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 30, 2019 at 4:39 PM Jason A. Donenfeld wrote: > > On Mon, Dec 30, 2019 at 4:37 PM Arnd Bergmann wrote: > > > > On Mon, Dec 30, 2019 at 3:37 PM Jason A. Donenfeld wrote: > > > > > > On Mon, Dec 30, 2019 at 1:34 PM Arnd Bergmann wrote: > > Returning success from clock_gettime() on a kernel with only > > time64 support and a libc with only time32 support (or vice > > versa) would be a bug. > > Ah, right, hence why the 32-bit compat code is behind a > still-on-by-default-but-not-for-long menu option. I expect this to remain on-by-default for a rather long time, as we still to run old binaries well into 2030s. Making it configurable is done for two reasons: - on embedded systems that have all user space built with time64, turning this off can make the kernel slightly smaller - turning it off lets you check that no code relies on calling the old interfaces internally, bypassing the C library, in a way that works at the moment but may break after 2038. Arnd