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 X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E83C0C433B4 for ; Thu, 15 Apr 2021 19:49:14 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7F10C60FF0 for ; Thu, 15 Apr 2021 19:49:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7F10C60FF0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1lX7z0-0007Gr-5Q; Thu, 15 Apr 2021 15:48:58 -0400 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1lX5Um-0004Yf-5M for kernelnewbies@kernelnewbies.org; Thu, 15 Apr 2021 13:09:36 -0400 Received: by mail-io1-xd36.google.com with SMTP id p8so3565304iol.11 for ; Thu, 15 Apr 2021 10:09:35 -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=12eq7+NJYwQarAv9pEFi9qfkOce8f7aSAYU1muwi6Tw=; b=nkasqoJZjY3FITtbZT06wVcF+b3iOkAMXwdLM1Xdwqs8cCSJ0WnfxN9037lKs3zx3B 9Pg6V7j0OUuSdO/0O6eGGq6U4LwDYG7cls3MtGLtfL1ckxdP9MlQS1++hm3EI+NYTS8z jiobaVn40SNaO4Ef5s/S9eLi/nc3uiwjvDPvmmwdaWb2lzUbKFE1dRuoQNsa3JH12ANI G89W6Y1ZzOFxG9zbZ+74j9OfBrvfoW48ctXFPUvUWdQRRkXGMGAQ3skOON0LLykCDlxK LeWjQzFqY6PcWdqbW5Etwyjt5ZNh9TY3s3xkxyUy8b+4A8Ot3K4ZiWUKmG9jqxsuMenB tK5w== 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=12eq7+NJYwQarAv9pEFi9qfkOce8f7aSAYU1muwi6Tw=; b=AEJIFbXwF9M2XG6iiYKjsRboHaEVETL+VGCNgFjUVi7iGRmS2TQQtTMsQNwml86Q7L 42f3uguNrKsFeuwC8eOGb/DDIZnl24XECT9ag+RXbqAYsWj9DVnhEjK6sOb0zZcj96Us Ggy0R541FzRvZ0Lqy4XM9J5d37tJbJxqHJx+4ZRUUBw/HNaTG3LMa2fCRA3ElBBf3Aec dkTO2SW4vXL9Oo7xP0oVPOKJv8BHPGVSN6FuLfGHxEEUv4y1vz8LfPloFp5/zw07c2fi iXpsDjC+yAGWwKkqFOJyrM67ygvaQLioebNatog4GcS0BTefP70LP3heYKFXU89ygdEp sY9w== X-Gm-Message-State: AOAM532zpyPl/ywnd5KSYsXcOsJpjRdnyjLwbl/EE98S14/Q4Xm22IWd bWUqRRuCZhaLspXs7Cy9II/hHWxmWV/I4Bzn9yQ= X-Google-Smtp-Source: ABdhPJy6bjRzu+GfWU89bvaWsITNENKE0q5sP1jkTgPbFdWimulQR0+5dhE+JjGeQu9LRTlEageL5uuTaiyT9k7Yj/E= X-Received: by 2002:a02:7a53:: with SMTP id z19mr279560jad.120.1618506575121; Thu, 15 Apr 2021 10:09:35 -0700 (PDT) MIME-Version: 1.0 References: <6312af55.47e2.178d53227d0.Coremail.ouyangxuan10@163.com> In-Reply-To: <6312af55.47e2.178d53227d0.Coremail.ouyangxuan10@163.com> From: Amir Goldstein Date: Thu, 15 Apr 2021 20:09:23 +0300 Message-ID: Subject: Re: [kernel]:overlayfs: invalid origin (root/bmcweb_persistent_data.json, ftype=8000, origin ftype=4000) To: www X-Mailman-Approved-At: Thu, 15 Apr 2021 15:48:56 -0400 Cc: kernelnewbies@kernelnewbies.org, Kevin Locke , overlayfs , Miklos Szeredi X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Thu, Apr 15, 2021 at 2:03 PM www wrote: > > Dear Amir, kevin, miklos, > > An open source project uses overlay filesystem and systemd. when the system first time boot, there is an error in the file system: > kernel: overlayfs: invalid origin (root/bmcweb_persistent_data.json, ftype=8000, origin ftype=4000) > > What's the reason for this? Can you give some help and suggestions to solve this problem? > > The details are as follows: > 1. linux kernel version: > root@N/A:~# uname -a Linux N/A 5.1.5-yocto-s-dirty-1605363 #1 Tue Apr 13 01:13:48 UTC 2021 armv6l GNU/Linux > > 2. mount command > mount -t overlay -o lowerdir=$rodir,upperdir=$upper,workdir=$work cow /root > (rodir=run/initramfs/ro, upper=run/initramfs/rw/cow, work=rwdir=run/initramfs/rw/work) > > 3. mountinfo > root@N/A:~# cat /proc/self/mountinfo > 13 21 0:6 / /dev rw,relatime shared:8 - devtmpfs dev rw,size=220800k,nr_inodes=55200,mode=755 > 14 21 0:13 / /sys rw,relatime shared:3 - sysfs sys rw > 15 21 0:4 / /proc rw,relatime shared:2 - proc proc rw > 16 21 0:14 / /run rw,nosuid,nodev shared:11 - tmpfs tmpfs rw,mode=755 > 17 16 7:0 / /run/initramfs/ro ro,relatime shared:12 - squashfs /dev/loop0 ro > 18 16 31:5 / /run/initramfs/rw rw,relatime shared:13 - jffs2 /dev/mtdblock5 rw > 21 0 0:15 / / rw,relatime shared:1 - overlay cow rw,lowerdir=run/initramfs/ro,upperdir=run/initramfs/rw/cow,workdir=run/initramfs/rw/work > 22 13 0:17 / /dev/shm rw,nosuid,nodev shared:9 - tmpfs tmpfs rw > 23 13 0:18 / /dev/pts rw,relatime shared:10 - devpts devpts rw,gid=5,mode=620,ptmxmode=000 > 24 14 0:19 / /sys/fs/cgroup ro,nosuid,nodev,noexec shared:4 - tmpfs tmpfs ro,mode=755 > 25 24 0:20 / /sys/fs/cgroup/unified rw,nosuid,nodev,noexec,relatime shared:5 - cgroup2 cgroup2 rw,nsdelegate > 26 24 0:21 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:6 - cgroup cgroup rw,xattr,name=systemd > 27 14 0:22 / /sys/fs/bpf rw,nosuid,nodev,noexec,relatime shared:7 - bpf bpf rw,mode=700 > 28 14 0:7 / /sys/kernel/debug rw,nosuid,nodev,noexec,relatime shared:14 - debugfs debugfs rw > 29 14 0:12 / /sys/kernel/config rw,nosuid,nodev,noexec,relatime shared:15 - configfs configfs rw > 30 21 0:23 / /tmp rw,nosuid,nodev shared:16 - tmpfs tmpfs rw > 31 21 0:24 / /var/volatile rw,relatime shared:17 - tmpfs tmpfs rw > > 4. xino_auto > > 5. file in ro is correct > 6. file in rw is correct > 7. but the file in overlayfs is incorrect > > What's the reason for this? I suppose lower squashfs was recreated and mounted with an existing upper dir that already contains upper files with origin references to the old squashfs lower fs. > Can you give some help and suggestions to solve this problem? Cherry-pick this fix to your kernel: a888db310195 ovl: fix regression with re-formatted lower squashfs OR as a workaround, build the lower squashfs with the "-no-exports" mksquashfs option. Thanks, Amir. _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies