From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08B2DEB64DA for ; Wed, 12 Jul 2023 17:53:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232605AbjGLRxW (ORCPT ); Wed, 12 Jul 2023 13:53:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232442AbjGLRxR (ORCPT ); Wed, 12 Jul 2023 13:53:17 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 935011BE4 for ; Wed, 12 Jul 2023 10:53:12 -0700 (PDT) Received: from cwcc.thunk.org (pool-173-48-82-193.bstnma.fios.verizon.net [173.48.82.193]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 36CHqwKl004990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jul 2023 13:52:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1689184380; bh=iYK3lUF2GbPPt1xA1PwWleN6r/7tba+hiPLcX61WWlU=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=VUztdmxBOWM7Tx/fAekc5Iqt2n4UQL1FhP9NCmyLYSAlDHD+8iuhuoA6NOJ6H1Gh9 C/gQ64YeLxytLkLOzZdCJlYTrX6OfxGA9ghmECZAVWiLCvhgzJsfXPANMfJmRnWIhT AEAnZuRI8AOcSvP6W3qsiBnoedbQkMVwSTB6k6Kkh4ho7sQEFujK3eug3t8Zg+A5d/ XooRfZ91K8cNpJdH6oW3zKrddfNdGlHeoTJnYMHCHHAzFI1ECHgdubsuL2oKua8LW9 WU6V4RUsDRn26NqK3S/vOB/G3NonVNFMi/xpQrWOBTsh5gfcIDBHVcZYEhcWBVoEb9 HBF4O6Z4i53FQ== Received: by cwcc.thunk.org (Postfix, from userid 15806) id 332E615C0280; Wed, 12 Jul 2023 13:52:58 -0400 (EDT) Date: Wed, 12 Jul 2023 13:52:58 -0400 From: "Theodore Ts'o" To: Jeff Layton Cc: brauner@kernel.org, Andreas Dilger , Jan Kara , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ext4: fix decoding of raw_inode timestamps Message-ID: <20230712175258.GB3677745@mit.edu> References: <20230712150251.163790-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230712150251.163790-1-jlayton@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Jul 12, 2023 at 11:02:49AM -0400, Jeff Layton wrote: > When we covert a timestamp from raw disk format, we need to consider it > to be signed, as the value may represent a date earlier than 1970. This > fixes generic/258 on ext4. > > Cc: Jan Kara > Fixes: f2ddb05870fb ("ext4: convert to ctime accessor functions") > Signed-off-by: Jeff Layton Acked-by: Theodore Ts'o Thanks for the fix! It had been on my list to checking to see if the ext4 kunit tests would pass, since Jan had mentioned that he had done the work to make sure the ext4 kunit test would compile, but he hadn't gotten around to try run the kunit test. Unfortunately, I hadn't gotten to it. I *think* the ext4 kunit tests should have caught this as well; out of curiosity, have you tried running the ext4 kunit tests either before or after this patch? If so, what were your findings? Cheers, - Ted