Activity log for bug #1531747

Date Who What changed Old value New value Message
2016-01-07 07:52:55 Serge Hallyn bug added bug
2016-01-07 08:00:06 Brad Figg linux (Ubuntu): status New Incomplete
2016-01-07 08:12:29 Serge Hallyn description If a directory exists in the lowerdir but not in the mounted overlay, then mkdir of the directory in the target dir results in a mysterious -EPERM. I've seen this both in wily kernel (4.2.0-22-generic #27-Ubuntu) and in a hand-built xenial master-next (with unrelated patches added). ===================================================== #!/bin/sh -ex dir=`mktemp -d` cleanup() { umount -l $dir/t rm -rf $dir } trap cleanup EXIT echo "dir is $dir" mkdir -p $dir/l $dir/u $dir/w $dir/t mkdir $dir/l/dev mount -t overlay -o lowerdir=$dir/l,upperdir=$dir/u,workdir=$dir/w o $dir/t stat $dir/t/dev rmdir $dir/t/dev mkdir $dir/t/dev echo $? echo "mkdir should have succeeded" ===================================================== If a directory exists in the lowerdir but not in the mounted overlay, then mkdir of the directory in the target dir results in a mysterious -EPERM. I've seen this both in wily kernel (4.2.0-22-generic #27-Ubuntu) and in a hand-built xenial master-next (with unrelated patches added). ===================================================== #!/bin/sh -ex dir=`mktemp -d` cleanup() {  umount -l $dir/t  rm -rf $dir } trap cleanup EXIT echo "dir is $dir" mkdir -p $dir/l $dir/u $dir/w $dir/t mkdir $dir/l/dev mount -t overlay -o lowerdir=$dir/l,upperdir=$dir/u,workdir=$dir/w o $dir/t stat $dir/t/dev rmdir $dir/t/dev mkdir $dir/t/dev echo $? echo "mkdir should have succeeded" ===================================================== The above will work on the host, but fail in a user namespace, i.e in a regular lxd container.
2016-01-07 08:18:21 Serge Hallyn summary overlay: mkdir fails if directory exists in lowerdir overlay: mkdir fails if directory exists in lowerdir in a user namespace
2016-01-07 17:41:20 Joseph Salisbury linux (Ubuntu): importance Undecided Medium
2016-01-07 17:42:05 Joseph Salisbury tags kernel-key wily xenial
2016-01-07 17:42:14 Joseph Salisbury linux (Ubuntu): importance Medium High
2016-01-07 17:42:16 Joseph Salisbury linux (Ubuntu): status Incomplete Triaged
2016-01-07 17:44:03 Joseph Salisbury nominated for series Ubuntu Xenial
2016-01-07 17:44:03 Joseph Salisbury bug task added linux (Ubuntu Xenial)
2016-01-07 17:44:03 Joseph Salisbury nominated for series Ubuntu Wily
2016-01-07 17:44:03 Joseph Salisbury bug task added linux (Ubuntu Wily)
2016-01-07 17:44:10 Joseph Salisbury linux (Ubuntu Wily): status New Triaged
2016-01-07 17:44:12 Joseph Salisbury linux (Ubuntu Wily): importance Undecided High
2016-01-11 20:30:17 Seth Forshee bug added subscriber Seth Forshee
2016-01-19 15:25:52 Joseph Salisbury tags kernel-key wily xenial kernel-da-key wily xenial
2016-02-02 17:47:44 Seth Forshee linux (Ubuntu Wily): assignee Seth Forshee (sforshee)
2016-02-02 17:47:47 Seth Forshee linux (Ubuntu Xenial): assignee Seth Forshee (sforshee)
2016-02-15 18:21:19 Philipp Wendler bug added subscriber Philipp Wendler
2016-02-15 18:22:54 Philipp Wendler bug task added linux-lts-wily (Ubuntu)
2016-02-22 18:35:02 Launchpad Janitor linux (Ubuntu Wily): status Triaged Fix Released
2016-02-22 18:35:02 Launchpad Janitor cve linked 2016-1575
2016-02-22 18:35:02 Launchpad Janitor cve linked 2016-1576
2016-02-24 03:50:40 Launchpad Janitor linux-lts-wily (Ubuntu): status New Confirmed
2016-02-24 03:50:40 Launchpad Janitor linux-lts-wily (Ubuntu Wily): status New Confirmed
2016-02-24 10:25:10 Alberto Salvia Novella linux-lts-wily (Ubuntu Wily): importance Undecided High
2016-02-24 10:25:13 Alberto Salvia Novella linux-lts-wily (Ubuntu Xenial): importance Undecided High
2016-02-24 12:42:53 Launchpad Janitor branch linked lp:ubuntu/trusty-security/linux-lts-vivid
2016-02-24 12:44:17 Launchpad Janitor branch linked lp:ubuntu/trusty-proposed/linux-lts-vivid
2016-02-24 13:04:36 Launchpad Janitor branch linked lp:~ubuntu-branches/ubuntu/trusty/linux-lts-wily/trusty-security
2016-02-24 13:07:51 Launchpad Janitor branch linked lp:~ubuntu-branches/ubuntu/trusty/linux-lts-wily/trusty-proposed
2016-02-26 23:33:48 Launchpad Janitor linux (Ubuntu Xenial): status Triaged Fix Released