Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp244159rwb; Tue, 15 Nov 2022 23:07:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CTXg3j5EWM9JwrcFHXAG0cwnjK6NuuIj57ImVTHZPc+Utr3t0xVGeYH6GCTmgYfcg/Csq X-Received: by 2002:a17:907:d50d:b0:7ae:8411:112c with SMTP id wb13-20020a170907d50d00b007ae8411112cmr15815790ejc.97.1668582421242; Tue, 15 Nov 2022 23:07:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668582421; cv=none; d=google.com; s=arc-20160816; b=t0I3BHSc5UESRRZ0kzfEnsyZE8xPlzFITydN1coVLZEgRvBu6/xnDih4mlM3mnRXr8 csB9DlGKxOXdpkbEpDZpyJTROht4XJKeVCXSMH6adYm0MNDOEkSDm6oOtdIchIcWBhfW EDtMmzDZX8azg5/UxxpcBUU8rdc8Yf2KuterLZs7HkUbKYZ4Th6DZFKCcjoSXrWpRAA0 9iXOra7IZLUk/XJcDNt2N4KHMt9w3+xKHs6cORBvN64hDpXvF6l1ODlwk2tAdpNpUmVk cGYvZ0ORjnd9SHP0LUzEp82i6fftuYJo+NosfCZ6zn+EALb/swEmLI7RNtdk5esCGmFj xSYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=nzD5q2NnrYheETr7ybMU8uZJqqWF9hEOlEN7kCuh2Zk=; b=T5ocxfqYR4VEPEx34CL4Yis0Db9l1Wd+SAAKkJjrYjAXMZyWhAadXGNyJ+uQRwNDEj TJy4vqD6b8sMdHLvLjW5RcoRsXD6wM5CRPtUxC1BRsiIczgJ67+YIjOLWh6sCR2jwDKQ KQ/IbezctStoXKG+Q/hMt/WnPH/bCcyELpL3TMyfF0yT7Q9RBkgZ4gamZmkrnzm0TL5p KdiByFvQBQrBT6293M/X6/9D70QKuiBIZcoVThDRQUysUUD7Q6wZx2enmCX2re8kFH8H QLb/yENgp5gZYewwJTJQE/95p0t0V6CJl7vUBBIGI95uf/WwU4eSRCDkUP159rHEySPy qmug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=jdPkzlc0; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=IzCFC7O9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd5-20020a1709076e0500b007ae931d56f9si13399248ejc.89.2022.11.15.23.06.39; Tue, 15 Nov 2022 23:07:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=jdPkzlc0; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=IzCFC7O9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232170AbiKPHBn (ORCPT + 90 others); Wed, 16 Nov 2022 02:01:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232138AbiKPHBi (ORCPT ); Wed, 16 Nov 2022 02:01:38 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54C0C19027; Tue, 15 Nov 2022 23:01:36 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 106C95C05D1; Wed, 16 Nov 2022 02:01:33 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Wed, 16 Nov 2022 02:01:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1668582093; x=1668668493; bh=nzD5q2NnrY heETr7ybMU8uZJqqWF9hEOlEN7kCuh2Zk=; b=jdPkzlc0/jRhxtJ3E+u4UUofIs y435r/VMELOxBMnPwSkLc1kZ2NOXdHqcG1LlTPNCkmN/FYk/VDIqsP0iHn9Mz4Fu jvzo4NSBGs64pS9lwYOinRKt4rNZdYT3OFfBOv3dLKktid//naNKY6A4VISGw852 +cOfpC7wVTAefno+1MIfDfYRK8rE+gPdue/ZhzMjnG7/+hiZLqEwvbF17DWuzxda MRK/ugXP1Yyv9CfYaBLiQm0DCfwkC5zC8UxANXGcCQsmKyrFWx4Sxd7INXURsBRb OZK1xIKyDfLIxxLve0MBMxaqmWp1w0ga0WZDzOEVcUL7tkR1SL4g8iiH/avg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1668582093; x=1668668493; bh=nzD5q2NnrYheETr7ybMU8uZJqqWF 9hEOlEN7kCuh2Zk=; b=IzCFC7O9CQh2be5i5obyABQrbraUlKyKuX94VgmdsN5N mAe7/5Q0dqrx3MIAARa5/CsNte+ZhWzx7vn8XU6xFG92WzLoO7tHUT6oKFlxZOwV uZDvketZxVnsrBVuncr9EqINIzLZxRMRQ0lHUilvvlK0ph+iK8kKfEZL1GQ+rLq7 x8hCpm6SBNCsCU4iH2or/xetFOgbl/oK8WDQ4gj09ncnx+qerunILn/ODMO+VxrK 05Al8fU/kkLlaxxzlheoO4K/OQWzROrAK5SPMrxV68LB+3O8WJS8I1uQiHKhRV4K v7EU0VO6ebkAKv7n8SRim1wcNXvinUOggatnb75l2A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgeehgddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id AB79EB60086; Wed, 16 Nov 2022 02:01:31 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20220908115337.1604277-1-arnd@kernel.org> Date: Wed, 16 Nov 2022 08:01:00 +0100 From: "Arnd Bergmann" To: "Alexandre Belloni" , "Arnd Bergmann" Cc: "Alessandro Zummo" , "Reinier Kuipers" , linux-rtc@vger.kernel.org, "Russell King" , "Yang Yingliang" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] [RFC] rtc: y2038: remove broken RTC_HCTOSYS workaround Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 15, 2022, at 23:08, Alexandre Belloni wrote: > Hello, > > I'm fine with the patch and I'll probably take it, Ok, thanks! > I a an observation though: > > On 08/09/2022 13:53:20+0200, Arnd Bergmann wrote: >> + * >> + * Since the kernel has no way of knowing what user space it runs, >> + * warn here whenever the kernel is able to run it. >> + * When CONFIG_COMPAT_32BIT_TIME is disabled, we know that the >> + * system is safe, but unfortunately this this is currently not >> + * supported by musl-1.2.x or most glibc based user space. > > I was under the impression that musl never had a 32bit time_t nor used > the 32bit time APIs so it would not be affected by the bug. > So I guess the only affected userspace is glibc without _TIME_BITS=64 It's actually the opposite: while new versions of musl only allow building applications against the time64 interfaces, musl itself uses a mix of the time32 and time64 system calls, and the musl maintainer considers turning CONFIG_COMPAT_32BIT_TIME off a misfeature of the kernel that he does not want to support. Arnd