[Kernel-packages] [Bug 1387214] Re: file corruption on touch images in rw portions of the filesystem

2014-11-06 Thread Colin Ian King
After a lot of deep digging into the bind mount, loop driver, and buffer cache and tracking the corrupt pages back down the layers of the stack we've sanity checked this down to the image. The smoking gun was the kernel message: Nov 6 12:15:16 ubuntu-phablet kernel: [3.940485] do_mount:

[Kernel-packages] [Bug 1387214] Re: file corruption on touch images in rw portions of the filesystem

2014-11-06 Thread Jamie Strandboge
** Tags added: rtm14 ** Package changed: linux (Ubuntu) = system-image (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/1387214 Title: file corruption on touch images in rw

[Kernel-packages] [Bug 1387214] Re: file corruption on touch images in rw portions of the filesystem

2014-10-31 Thread Colin Ian King
Made some progress today. On the phone, I am seeing: /var/lib/apparmor/profiles/click_com.ubuntu.filemanager_filemanager_0.3.275 containing a pathname and all zeros. The start is always on a page boundary and the end is always on a page boundary. I copied the entire partition /dev/mmcblk0p23

[Kernel-packages] [Bug 1387214] Re: file corruption on touch images in rw portions of the filesystem

2014-10-31 Thread Colin Ian King
The corruption to /var/lib/apparmor/profiles/click_com.ubuntu.filemanager_filemanager_0.3.275 survives multiple reboots. I'll take another 6GB snapshot of the underlying partition and see if that's now corrupted. -- You received this bug notification because you are a member of Kernel Packages,

[Kernel-packages] [Bug 1387214] Re: file corruption on touch images in rw portions of the filesystem

2014-10-31 Thread Colin Ian King
After several reboots, the data still appears corrupted on the phone, but copying the underlying raw device /dev/mmcblk0p23 to my laptop and loop mounting it and then loop mounting ubuntu.img shows an uncorrupted var/lib/apparmor/profiles/click_com.ubuntu.filemanager_filemanager_0.3.275. I'm now

[Kernel-packages] [Bug 1387214] Re: file corruption on touch images in rw portions of the filesystem

2014-10-31 Thread Colin Ian King
Ruled out the bind mount of /var/lib/apparmor/profiles on /userdata /system-data/var/lib/apparmor/profiles, still see corruption there on the device -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.

[Kernel-packages] [Bug 1387214] Re: file corruption on touch images in rw portions of the filesystem

2014-10-31 Thread Colin Ian King
Sanity checked the raw data from /dev/mmcblk0p23: 1. copied raw data off the phone to may laptop 2. using sshfs, mounted the directory containing the raw data snapshot back on the phone 3. loop mounted it 4. loop mounted ubuntu.img from this 5. /ubuntu/var/lib/apparmor/profiles is sane, no

[Kernel-packages] [Bug 1387214] Re: file corruption on touch images in rw portions of the filesystem

2014-10-31 Thread Colin Ian King
On the phone: debugfs /userdata/ubuntu.img cat /var/lib/apparmor/profiles/click_com.ubuntu.filemanager_filemanage # vim:syntax=apparmor #include tunables/global # Define vars with unconfined since autopilot rules may reference them # Specified profile variables @{APP_APPNAME}=filemanager

[Kernel-packages] [Bug 1387214] Re: file corruption on touch images in rw portions of the filesystem

2014-10-31 Thread Colin Ian King
I've searched the entire block device for the string /usr/share/click/preinstalled/com.ubuntu.music/1.3.625/apparmor.json and tagged it in such a way as it is obvious it that it has been modified on the flash drive. I rebooted and double checked - the modified data is still modified on disk

[Kernel-packages] [Bug 1387214] Re: file corruption on touch images in rw portions of the filesystem

2014-10-29 Thread Jamie Strandboge
Added application-confinement and apparmor tags since this bug affects both and it will be easier to find. ** Description changed: Symptoms are that cache files in /var/cache/apparmor and profiles in /var/lib/apparmor/profiles are sometimes corrupted after a reboot. We've already fixed

[Kernel-packages] [Bug 1387214] Re: file corruption on touch images in rw portions of the filesystem

2014-10-29 Thread Joseph Salisbury
** Tags added: kernel-key -- 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/1387214 Title: file corruption on touch images in rw portions of the filesystem Status in “linux” package in