Debian Bug report logs - #836211
dpkg: Cannot upgrade some packages on overlayfs: Invalid cross-device link

version graph

Package: linux; Maintainer for linux is Debian Kernel Team <[email protected]>;

Affects: dpkg

Reported by: Felipe Sateler <[email protected]>

Date: Wed, 31 Aug 2016 15:18:06 UTC

Severity: normal

Tags: upstream

Found in versions 4.12.6-1, 4.6.4-1

Forwarded to [email protected]

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#836211: dpkg: Cannot upgrade some packages on overlayfs: Invalid cross-device link
Reply-To: Nicolas Schier <[email protected]>, [email protected]
Resent-From: Nicolas Schier <[email protected]>
Resent-To: [email protected]
Resent-CC: Debian Kernel Team <[email protected]>
X-Loop: [email protected]
Resent-Date: Fri, 21 May 2021 10:18:01 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 836211
X-Debian-PR-Package: linux
X-Debian-PR-Keywords: upstream
References: <147265657047.31705.7496372748096616425.reportbug@felipepc> <[email protected]> <[email protected]> <147265657047.31705.7496372748096616425.reportbug@felipepc> <[email protected]> <147265657047.31705.7496372748096616425.reportbug@felipepc> <[email protected]> <147265657047.31705.7496372748096616425.reportbug@felipepc>
X-Debian-PR-Source: linux
Received: via spool by [email protected] id=B836211.162159204525313
          (code B ref 836211); Fri, 21 May 2021 10:18:01 +0000
Received: (at 836211) by bugs.debian.org; 21 May 2021 10:14:05 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
	(2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-16.5 required=4.0 tests=BAYES_00,DIGITS_LETTERS,
	HAS_BUG_NUMBER,MD5_SHA1_SUM,MURPHY_DRUGS_REL8,PGPSIGNATURE,
	RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham
	autolearn_force=no version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 32; hammy, 150; neutral, 116; spammy,
	0. spammytokens: hammytokens:0.000-+--H*ct:pgp-sha256,
	0.000-+--H*r:key-exchange, 0.000-+--H*r:RSA-PSS,
	0.000-+--H*r:server-digest, 0.000-+--H*r:SHA256
Received: from mout.kundenserver.de ([217.72.192.75]:46413)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <[email protected]>)
	id 1lk2AM-0006WM-CP
	for [email protected]; Fri, 21 May 2021 10:14:05 +0000
Received: from leknes.fjasle.eu ([92.116.73.138]) by mrelayeu.kundenserver.de
 (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id
 1N17cq-1lLFvO2cI6-012bqr; Fri, 21 May 2021 12:08:32 +0200
Received: from lillesand.fjasle.eu (lillesand.fjasle.eu [10.10.0.51])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "lillesand.fjasle.eu", Issuer "Fake LE Intermediate X1" (not verified))
	by leknes.fjasle.eu (Postfix) with ESMTPS id 2F3233C50E;
	Fri, 21 May 2021 12:08:30 +0200 (CEST)
Authentication-Results: leknes.fjasle.eu; dkim=none; dkim-atps=neutral
Received: by lillesand.fjasle.eu (Postfix, from userid 1000)
	id 97681101F68; Fri, 21 May 2021 12:08:29 +0200 (CEST)
Date: Fri, 21 May 2021 12:08:29 +0200
From: Nicolas Schier <[email protected]>
To: Salvatore Bonaccorso <[email protected]>, [email protected]
Cc: Raphael Hertzog <[email protected]>,
	Guillem Jover <[email protected]>,
	Felipe Sateler <[email protected]>
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="ybcZpIUM2E6fHEet"
Content-Disposition: inline
In-Reply-To: <[email protected]>
X-Operating-System: Debian GNU/Linux 11.0
Jabber-ID: [email protected]
X-Provags-ID: V03:K1:WOnTNYxGOf4Taxhf6ZChh7Ov0G5SInHLUtVPHJogNDe9H+htbva
 WhjLP7pO8SKalQ8F+sWy6PEN20jdlEG+FI6rGt7C5j1YhE9oIo2OqV4KyT+Zq5uKpiHe5ay
 +99CEj5kZ/PG0dvl3Y73yvWANckfhKxCH4V8ETRtOt94mLoZBQDpa/gltsTxzacmD88S4Da
 rbDL/QoJyKxbysUvDCqsA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:RKT8uEza/Z8=:QtV6lUQE4pyKQU8st8P+uu
 dUP+Rh15AAv29OdDMKkbyBXuyXSyY2Kw4BAirlXD1ravxyjEc2SL9ryDBewWVJjbw3KCYO189
 kePuquEeLq1SwjoA9u4K9SI5+yX7LBGnNg/sKntt16am1A8Guh0gFrRoZRoCqkAwfGb/1/gLH
 EWHOTGjpl0kYGawtXgUK6tY90hn5O5OfrD+An2w3Yqi6BsiyeB+3NTh5N48u7HQy8W9j9utUS
 S7Qbhm1TF+lvgYJ8VR+G8WFtRDPdmgpubun6I6iXppCCIjXIatAweCNnLCzcgJliIBIldPd2j
 wtT0w187rb9CfHUyfe/uY5aP6jpZ85pQezAcvcSl335RRQXXcLdvowhuaPCjhPQ81JJD78ypP
 SjgjbXdNv+PXNLdaQX0uSfXKYpOqDTNhL9FzDhIjUJASxyCrwoksFK9wanldZTEUBobVP9pMa
 qxSn6omeMWXdcbUYs1KDO2BSYVBPB2lYjp1POVCC7rKLuut1f1f4R+Kw6zUp5SMsRZDX59iwG
 +8tc5YhjK8Qnv4cEu6O4jl/xtowROzOjSFZrKQzJ+iw
X-Greylist: delayed 322 seconds by postgrey-1.36 at buxtehude; Fri, 21 May 2021 10:14:01 UTC
[Message part 1 (text/plain, inline)]
Hi,

On Sun 02 May 2021 09:06:49 GMT, Salvatore Bonaccorso wrote:
> Hi,
> 
> On Mon, Sep 04, 2017 at 03:01:26PM +0200, Raphael Hertzog wrote:
> > Control: reopen -1
> > Control: notfixed -1 4.10.0-1~exp1
> > Control: found -1 4.12.6-1
> > 
> > On Fri, 25 Aug 2017, Raphael Hertzog wrote:
> > > I verified today that the issue is gone with Linux 4.12 and apparently
> > > the appropriate patches have been merged for Linux 4.10 already (merged by
> > > linus in commit ff0f962ca3c38239b299a70e7eea27abfbb979c3).
> > 
> > I don't know how I did my check last time, but I was wrong. The changes
> > merged above fixed issues about tools being confused with the unexpected
> > st_dev values on files but they did not fix the fact that overlayfs
> > might return EXDEV when renaming a directory that is part of the lower
> > layer.
> > 
> > So I'm opening the bug again.
> 
> Doing some maintenance on open kernel bugs. Is this by now still an
> issue with recent kernels? If not can we close this bug? Part of the
> isuses at leas were fixed in 4.10.0-1~exp1, but what about the
> remaining or followup issue mentioned by Raphael?
> 
> Regards,
> Salvatore

the EXDEV return value is still reproducible:

    $ mkdir -p /tmp/ovl/{lower/dir,upper,work,mount}
    $ sudo mount -t overlay -o lowerdir=/tmp/ovl/lower,upperdir=/tmp/ovl/upper,workdir=/tmp/ovl/work none /tmp/ovl/mount
    $ strace -e trace=rename,renameat,renameat2 mv /tmp/ovl/mount/dir /tmp/ovl/mount/newname
    renameat2(AT_FDCWD, "/tmp/ovl/mount/dir", AT_FDCWD, "/tmp/ovl/mount/newname", RENAME_NOREPLACE) = -1 EXDEV (Invalid cross-device link)
    +++ exited with 0 +++

and in dpkg sources I cannot find any special handling for EXDEV.  From 
my point of view, the bug is still not fixed.

Kind regards,
Nicolas
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Mon May 12 02:56:47 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.