Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2201394ybe; Tue, 3 Sep 2019 09:19:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxP5opa7HEojJf3pxmUW7d9Cegtoq1WUQu++RqI05GEPtxe36QP3xGcJIX6yiXkS7+YHoFY X-Received: by 2002:a62:db42:: with SMTP id f63mr13304851pfg.225.1567527575024; Tue, 03 Sep 2019 09:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567527575; cv=none; d=google.com; s=arc-20160816; b=KdVN513f1aEI+JUOD3suzpFaN2mKG6SIWGN6AUTH8QUeOKOHcv8w0WyNbcjicExHlF Nt4w9PCb8KPUvEoow26oPj6iCNNIq+NOu7+orERWWOfT3WItiEObjipoG8Z9i1ckJH/B ga+x/k0ZUUM6XccWKHGCAEO5fmGzoJU0srznqJ0DmzwKlyHYGzfIrK2LHJBNkYWwjiED 6r92ldJjG6GI2Sxzf12/RYVb0OenwxwSabO3LTfCqJsM/Fc+ZQLDTFRrtAZp+So8VbZG 6s/TLNU0m6xeuv2WSJtHvs+A2jGqBihi/48q4PzKGqx5rRr69+0dEDZpUjrBSYDFC1BM iLkw== 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=pp01NtxEqI+2kM6nVF0jDiUSE89C7b7YSX4QsBfMeT8=; b=R/sZ39P76Bzs/N/DeHQGYqhAgegKYYky+B7Y4JicjOrmiS5qbCMsPUgmSP1DVl+WUP FD3yqhMJv+BekHMMEzgKUwsgibcvDBS/mwiCSLELha9seYav9w06gtXcv+j/WUcZWcM0 JRw+xK93x2x5JpNN/PntgeI/N2U0JWxtC/c53tLfiLovJwozvkDJwcVAmKjwOlHPp2Lr kPaIuTeaymAs3mDLQ5aRojcz1aeSr66ke0dFXu494e0YEme3SsRi6jfuR185sD/GvH5d 3ue25TWCqXIBOv0VZmjeJTsXV9LLEXjfxncuqsf9kT9TszS956D9hof5/MlwTsfeVM3l hcHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YlmjOT9n; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 l2si18069pjw.0.2019.09.03.09.19.16; Tue, 03 Sep 2019 09:19:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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=YlmjOT9n; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 S1729965AbfICQS7 (ORCPT + 99 others); Tue, 3 Sep 2019 12:18:59 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:40531 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728679AbfICQS7 (ORCPT ); Tue, 3 Sep 2019 12:18:59 -0400 Received: by mail-io1-f66.google.com with SMTP id h144so21876980iof.7; Tue, 03 Sep 2019 09:18:58 -0700 (PDT) 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=pp01NtxEqI+2kM6nVF0jDiUSE89C7b7YSX4QsBfMeT8=; b=YlmjOT9n5WT8rrPSGjRTHpNKlD6lJEG32gtAJ7xdOz1s5QK2SyVvIkxhCpuoJK+Vql SAj76CAAF+0iYalIpH36R80L6UzapzYnkddqy2KhPwAfIIcbwQwKaHewy0mq1Xf5GXRY +BgCtMp4c7AT6FY3w4vNEpN5YALVguMf7chzM6WQOx1Cb/bPH5Rd2YQqJkKcTuMcKnQG Q+ix4MSM56+iboFcH/Xx10INgNleWTbXhGAMcI24SkG+9R0I4h/7FXE2ZSm75VfvHSJw pjyCiY2fu/RpezAz0Wo0IrSvSVxxMN+9TJSuIIzciLQks6pR9rhfaNEp637DToC6q1iZ upvA== 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=pp01NtxEqI+2kM6nVF0jDiUSE89C7b7YSX4QsBfMeT8=; b=tqMVdNy3seRPKcAatnOMROmOK/M4kmyTGK3b09Z00oG5+AiLbLqFkPh6OLhLrGLif0 pDyehZ+vycy7KcmEtCAvdNqYq4HHNftQ3hX+EmEyrycCOfcqn7LTpoocWxYgxhxYlyiy 8z5jkpuD3A9Azu/h/QyAy40YuPgwYvw1dJnWdxpbYAKd/BkGmRIh2mVouiQJIchrcUb8 w4GW62wyG+4sj1nnAQQxH+rQZJt15+YvoSELIbdYclsXUogOhSsW6iQhLF7LopC5lsiT Cud1WCsSAGveaqY6DGKAQmdXDPvRA09aIvs2Eragpixsn9tj9U8ZhqZ3hDFV7R6B2gKs CpiA== X-Gm-Message-State: APjAAAUr6IMGVIiDzrRn2ZoEywK8T5kIIGGzbHCbQ5u74le3R46oH8P2 /wlA8IbVov5bjemm/f0B5GmSBkrG6SV8a0UXU5w= X-Received: by 2002:a5d:8599:: with SMTP id f25mr15377335ioj.265.1567527536751; Tue, 03 Sep 2019 09:18:56 -0700 (PDT) MIME-Version: 1.0 References: <1567523922.5576.57.camel@lca.pw> In-Reply-To: <1567523922.5576.57.camel@lca.pw> From: Deepa Dinamani Date: Tue, 3 Sep 2019 09:18:44 -0700 Message-ID: Subject: Re: "beyond 2038" warnings from loopback mount is noisy To: Qian Cai Cc: Jeff Layton , Alexander Viro , Linux FS-devel Mailing List , Linux Kernel Mailing List , "Theodore Ts'o" , Ext4 Developers List , Andreas Dilger , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Actually this warning is coming from this patch: https://lore.kernel.org/linux-fsdevel/20190818165817.32634-10-deepa.kernel@gmail.com/ ([PATCH v8 09/20] ext4: Initialize timestamps limits). This is the code generating the warning: diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 9c7f4036021b..ae5d0c86aba2 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -832,11 +832,15 @@ static inline void ext4_decode_extra_time(struct timespec64 *time, #define EXT4_INODE_SET_XTIME(xtime, inode, raw_inode) \ do { \ - (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); \ if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) {\ + (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); \ (raw_inode)->xtime ## _extra = \ ext4_encode_extra_time(&(inode)->xtime); \ } \ + else {\ + (raw_inode)->xtime = cpu_to_le32(clamp_t(int32_t, (inode)->xtime.tv_sec, S32_MIN, S32_MAX)); \ + ext4_warning_inode(inode, "inode does not support timestamps beyond 2038"); \ + } \ } while (0) This prints a warning for each inode that doesn't extend limits beyond 2038. It is rate limited by the ext4_warning_inode(). Looks like your filesystem has inodes that cannot be extended. We could use a different rate limit or ignore this corner case. Do the maintainers have a preference? -Deepa On Tue, Sep 3, 2019 at 8:18 AM Qian Cai wrote: > > https://lore.kernel.org/linux-fsdevel/20190818165817.32634-5-deepa.kernel@gmail. > com/ > > Running only a subset of the LTP testsuite on today's linux-next with the above > commit is now generating ~800 warnings on this machine which seems a bit crazy. > > [ 2130.970782] EXT4-fs warning (device loop0): ext4_do_update_inode:5261: inode > #40961: comm statx04: inode does not support timestamps beyond 2038 > [ 2130.970808] EXT4-fs warning (device loop0): ext4_do_update_inode:5262: inode > #40961: comm statx04: inode does not support timestamps beyond 2038 > [ 2130.970838] EXT4-fs warning (device loop0): ext4_do_update_inode:5263: inode > #40961: comm statx04: inode does not support timestamps beyond 2038 > [ 2130.971440] EXT4-fs warning (device loop0): ext4_do_update_inode:5261: inode > #40961: comm statx04: inode does not support timestamps beyond 2038 > [ 2131.847613] EXT4-fs warning (device loop0): ext4_do_update_inode:5261: inode > #32769: comm statx04: inode does not support timestamps beyond 2038 > [ 2131.847647] EXT4-fs warning (device loop0): ext4_do_update_inode:5262: inode > #32769: comm statx04: inode does not support timestamps beyond 2038 > [ 2131.847681] EXT4-fs warning (device loop0): ext4_do_update_inode:5263: inode > #32769: comm statx04: inode does not support timestamps beyond 2038 > [ 2131.847717] EXT4-fs warning (device loop0): ext4_do_update_inode:5261: inode > #32769: comm statx04: inode does not support timestamps beyond 2038 > [ 2131.847774] EXT4-fs warning (device loop0): ext4_do_update_inode:5262: inode > #32769: comm statx04: inode does not support timestamps beyond 2038 > [ 2131.847817] EXT4-fs warning (device loop0): ext4_do_update_inode:5263: inode > #32769: comm statx04: inode does not support timestamps beyond 2038 > [ 2131.847909] EXT4-fs warning (device loop0): ext4_do_update_inode:5261: inode > #32769: comm statx04: inode does not support timestamps beyond 2038 > [ 2131.847970] EXT4-fs warning (device loop0): ext4_do_update_inode:5262: inode > #32769: comm statx04: inode does not support timestamps beyond 2038 > [ 2131.848004] EXT4-fs warning (device loop0): ext4_do_update_inode:5263: inode > #32769: comm statx04: inode does not support timestamps beyond 2038 > [ 2131.848415] EXT4-fs warning (device loop0): ext4_do_update_inode:5261: inode > #32769: comm statx04: inode does not support timestamps beyond 2038 > [ 2134.753752] EXT4-fs warning (device loop0): ext4_do_update_inode:5261: inode > #12: comm statx05: inode does not support timestamps beyond 2038 > [ 2134.753783] EXT4-fs warning (device loop0): ext4_do_update_inode:5262: inode > #12: comm statx05: inode does not support timestamps beyond 2038 > [ 2134.753814] EXT4-fs warning (device loop0): ext4_do_update_inode:5263: inode > #12: comm statx05: inode does not support timestamps beyond 2038 > [ 2134.753847] EXT4-fs warning (device loop0): ext4_do_update_inode:5261: inode > #12: comm statx05: inode does not support timestamps beyond 2038 > [ 2134.753889] EXT4-fs warning (device loop0): ext4_do_update_inode:5262: inode > #12: comm statx05: inode does not support timestamps beyond 2038 > [ 2134.753929] EXT4-fs warning (device loop0): ext4_do_update_inode:5263: inode > #12: comm statx05: inode does not support timestamps beyond 2038 > [ 2134.754021] EXT4-fs warning (device loop0): ext4_do_update_inode:5261: inode > #12: comm statx05: inode does not support timestamps beyond 2038 > [ 2134.754064] EXT4-fs warning (device loop0): ext4_do_update_inode:5262: inode > #12: comm statx05: inode does not support timestamps beyond 2038 > [ 2134.754105] EXT4-fs warning (device loop0): ext4_do_update_inode:5263: inode > #12: comm statx05: inode does not support timestamps beyond 2038