Hack to fix selinux crashes on Manta
Due to previous issues with make_ext4fs not zeroing out inode
tables and Nexus 10 not erasing partitions before flashing, some
devices during development were flashed with garbage in the
inode tables for unused inodes. The kernel did not care, and
ignore the unused inodes, but if e2fsck ran for any reason, it
would find what it thought were lost inodes, and put them in
lost+found.
When selinux was enabled, it would reload the policy
on all files in /data, and when it traversed /lost+found, the
kernel would crash with weird ext4 errors. We are pretty sure
this is due to bugs in the xattr code not handling potentially
bogus inodes, but we have not yet found the actual bug. In
order to get the release out the door on time, this hack will
skip searching in lost+found directories. This will be
fixed properly before the next release.
Bug: 8801548
Change-Id: If4cd78cf587cefa4cd2d41c4424034c5d5878b78
1 file changed