writing files larger than 2GB to overlayfs fails

Bug #1523000 reported by Cam Cope
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-lts-utopic (Ubuntu)
Invalid
Undecided
Luis Henriques
Trusty
Fix Released
Medium
Luis Henriques
linux-lts-vivid (Ubuntu)
Invalid
Undecided
Luis Henriques
Trusty
Fix Released
Medium
Luis Henriques

Bug Description

There's simply a missing flag, which was fixed here:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=0480334

The patch claims it requires kernel 3.18+, but the overlayfs code in ubuntu's 3.16 kernel is already backported from later kernel revs.

break-fix: - 0480334fa60488d12ae101a02d7d9e1a3d03d7dd

Andy Whitcroft (apw)
Changed in linux-lts-utopic (Ubuntu):
assignee: nobody → Luis Henriques (henrix)
Changed in linux-lts-vivid (Ubuntu):
assignee: nobody → Luis Henriques (henrix)
Revision history for this message
Luis Henriques (henrix) wrote :

The lts-vivid kernel 3.19.0-40.45 (which should be in -proposed soon) already includes this fix as this commit was tagged for stable >= 3.18.

Changed in linux-lts-vivid (Ubuntu Trusty):
status: New → Fix Committed
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
tags: added: kernel-bug-break-fix
description: updated
Luis Henriques (henrix)
Changed in linux-lts-vivid (Ubuntu):
status: New → Invalid
Changed in linux-lts-utopic (Ubuntu):
status: New → Invalid
Andy Whitcroft (apw)
Changed in linux-lts-utopic (Ubuntu Trusty):
status: New → Fix Committed
assignee: nobody → Luis Henriques (henrix)
importance: Undecided → Medium
Changed in linux-lts-vivid (Ubuntu Trusty):
importance: Undecided → Medium
assignee: nobody → Luis Henriques (henrix)
Andy Whitcroft (apw)
Changed in linux-lts-vivid (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Luis Henriques (henrix) wrote :

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-utopic' to 'verification-done-utopic'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-utopic
Revision history for this message
Cam Cope (ccope) wrote :

Test procedure:

In 3.16.0-57-generic:
$ sudo dd if=/dev/zero of=/lower/f1 bs=4096 count=550000
550000+0 records in
550000+0 records out
2252800000 bytes (2.3 GB) copied, 4.00938 s, 562 MB/s
$ sudo mount -t overlayfs overlayfs -olowerdir=/lower,upperdir=/upper /mnt/overlayfs
$ sudo chmod 666 /mnt/overlayfs/f1
chmod: changing permissions of ‘f1’: Value too large for defined data type

Rebooted into 3.16.0-58-generic:
$ sudo mount -t overlayfs overlayfs -olowerdir=/lower,upperdir=/upper /mnt/overlayfs
$ sudo chmod 666 /mnt/overlayfs/f1
$ echo $?
0

tags: added: verification-done-utopic
removed: verification-needed-utopic
Andy Whitcroft (apw)
Changed in linux-lts-utopic (Ubuntu Trusty):
status: Fix Committed → Fix Released
tags: removed: kernel-bug-break-fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.