Re: [PATCH 3/3] ovl: redirect on rename-dir
From: Miklos Szeredi
Date: Fri Nov 04 2016 - 09:48:53 EST
On Fri, Nov 4, 2016 at 10:29 AM, Amir Goldstein <amir73il@xxxxxxxxx> wrote:
> You did not address my comment about the 'stack' allocation overflow
> in ovl_lookup
> I believe the (possible) overflow is demonstrated by the following debug patch:
Oops, missed that. Good spotting!
And there's more shit that unionfs-testsuite didn't discover (not even
involving multiple layers):
rm -rf /lower /upper /work
mkdir -p /lower/a/b/c /upper /work
mount -t overlay overlay -oupperdir=/upper,lowerdir=/lower,workdir=/work /mnt
mv /mnt/a /mnt/z
mv /mnt/z/b /mnt/q
ls /mnt/q
umount /mnt
mount -t overlay overlay -oupperdir=/upper,lowerdir=/lower,workdir=/work /mnt
ls /mnt/q
umount /mnt
Next update coming up...
Thanks,
Miklos