← Back to team overview

kernel-packages team mailing list archive

[Bug 1347746] Re: Overlayfs breaks /proc/self/exe link

 

** Package changed: linux-meta (Ubuntu) => linux (Ubuntu)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1347746

Title:
  Overlayfs breaks /proc/self/exe link

Status in “linux” package in Ubuntu:
  New

Bug description:
  Overlayfs breaks /proc/self/exe link when mounted not to VFS root.
  This issue, for example, breaks clang which uses /proc/self/exe to recursively exec self.

  Test case:
  $ mkdir /tmp/bug/ && cd /tmp/bug
  $ mkdir lower upper mount
  $ cp `which readlink` upper
  $ sudo mount -t overlayfs -o lowerdir=lower,upperdir=upper none mount
  $ ./upper/readlink /proc/self/exe
  /tmp/bug/upper/readlink
  $ ./mount/readlink /proc/self/exe
  /readlink

  At the same time aufs don't break /proc/self/exe:
  $ sudo umount mount/
  $ sudo mount -t aufs -o noxino,br=upper:lower none mount/
  $ ./mount/readlink /proc/self/exe
  /tmp/bug/mount/readlink

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1347746/+subscriptions


References