Re: GPF in overlay with ovl_rename2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2016-03-09 11:46 GMT+01:00 Miklos Szeredi <miklos@xxxxxxxxxx>:
> On Wed, Jan 13, 2016 at 11:09 PM, Robert Święcki <robert@xxxxxxxxxxx> wrote:
>> Also, text/plain for the list
>>
>> Hi, there seems to be a bug in the overlay which causes a general page fault.
>>
>> To replicate I used https://github.com/google/nsjail
>>
>>  I used kernel
>>
>> $ uname -a
>> Linux jag 4.3.0-5-generic #16-Ubuntu SMP Wed Dec 16 23:33:25 UTC 2015
>> x86_64 x86_64 x86_64 GNU/Linux
>>
>> $ ./nsjail -T /tmp -Mo --chroot /chroot/ --user 0 --group 0
>> --keep_caps -- /bin/sh -i
>> / # mkdir /tmp/h
>> / # mkdir /tmp/h/w
>> / # mkdir /tmp/h/u
>> / # mkdir /tmp/h/o
>> / # mount -t overlayfs -o
>> lowerdir=/bin,upperdir=/tmp/h/u,workdir=/tmp/h/w overlay /tmp/h/o
>> / # cd /tmp/h/o
>> /tmp/h/o # mv sh uuuuu
>> Killed
>>
>> in dmesg
>>
>> [176111.038478] overlayfs: ERROR - failed to whiteout '#ffff880004d9ff00'
>
> This seems to be a modified kernel.
>
> Was anything else changed?

Hi,

With:
Linux jag 4.4.0-10-generic #25-Ubuntu SMP Wed Mar 2 14:55:50 UTC 2016
x86_64 x86_64 x86_64 GNU/Linux

It now doesn't induce oops

$ ./nsjail -T /tmp -Mo --chroot /chroot/ --user 0 --group 0
--keep_caps -- /bin/sh -i
/ # mkdir /tmp/h
/ # mkdir /tmp/h/w
/ # mkdir /tmp/h/u
/ # mkdir /tmp/h/o
/ # mount -t overlayfs -o
lowerdir=/bin,upperdir=/tmp/h/u,workdir=/tmp/h/w overlay /tmp/h/o
/ # cd /tmp/h/o
/tmp/h/o # mv sh uuuuu
mv: can't rename 'sh': Value too large for defined data type
/ #

-- 
Robert Święcki
--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux