<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/squashfs, branch linux-2.6.34.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.34.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.34.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-03-14T14:57:07Z</updated>
<entry>
<title>Squashfs: handle corruption of directory structure</title>
<updated>2012-03-14T14:57:07Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2011-03-15T22:09:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8748b23d4aae479a1fc7a54eb4e467cb9b2bbd91'/>
<id>urn:sha1:8748b23d4aae479a1fc7a54eb4e467cb9b2bbd91</id>
<content type='text'>
commit 44cff8a9ee8a974f9e931df910688e7fc1f0b0f9 upstream.

Handle the rare case where a directory metadata block is uncompressed and
corrupted, leading to a kernel oops in directory scanning (memcpy).
Normally corruption is detected at the decompression stage and dealt with
then, however, this will not happen if:

- metadata isn't compressed (users can optionally request no metadata
  compression), or
- the compressed metadata block was larger than the original, in which
  case the uncompressed version was used, or
- the data was corrupt after decompression

This patch fixes this by adding some sanity checks against known maximum
values.

Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>squashfs: fix potential buffer over-run on 4K block file systems</title>
<updated>2010-04-25T01:09:05Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2010-04-23T01:32:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e0d1f70010dce062ccce1bbd940a661e60b82631'/>
<id>urn:sha1:e0d1f70010dce062ccce1bbd940a661e60b82631</id>
<content type='text'>
Sizing the buffer based on block size is incorrect, leading
to a potential buffer over-run on 4K block size file systems
(because the metadata block size is always 8K).  This bug
doesn't seem have triggered because 4K block size file systems
are not default, and also because metadata blocks after
compression tend to be less than 4K.

Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
</content>
</entry>
<entry>
<title>squashfs: add missing buffer free</title>
<updated>2010-04-25T01:09:05Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2010-04-22T23:24:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=370ec3d1ed9d76ba992e5b9b7d7d10700014d436'/>
<id>urn:sha1:370ec3d1ed9d76ba992e5b9b7d7d10700014d436</id>
<content type='text'>
Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
</content>
</entry>
<entry>
<title>squashfs: fix warn_on when root inode is corrupted</title>
<updated>2010-04-25T00:49:17Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2010-04-16T00:01:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1cb08e97389bb603e1b999312d9686c8faf0187a'/>
<id>urn:sha1:1cb08e97389bb603e1b999312d9686c8faf0187a</id>
<content type='text'>
Fix warn_on triggered by mounting a fsfuzzer corrupted file system, where
the root inode has been corrupted.

Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
Reported-by: Steve Grubb &lt;sgrubb@redhat.com&gt;
</content>
</entry>
<entry>
<title>squashfs: fix locking bug in zlib wrapper</title>
<updated>2010-04-23T01:54:54Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2010-04-04T21:20:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=792590c72376649b4e315df386fd208b83db05b9'/>
<id>urn:sha1:792590c72376649b4e315df386fd208b83db05b9</id>
<content type='text'>
Fix locking bug in zlib wrapper introduced by recent decompressor changes.

Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
</content>
</entry>
<entry>
<title>include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h</title>
<updated>2010-03-30T13:02:32Z</updated>
<author>
<name>Tejun Heo</name>
</author>
<published>2010-03-24T08:04:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5a0e3ad6af8660be21ca98a971cd00f331318c05'/>
<id>urn:sha1:5a0e3ad6af8660be21ca98a971cd00f331318c05</id>
<content type='text'>
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files.  percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.

percpu.h -&gt; slab.h dependency is about to be removed.  Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability.  As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.

  http://userweb.kernel.org/~tj/misc/slabh-sweep.py

The script does the followings.

* Scan files for gfp and slab usages and update includes such that
  only the necessary includes are there.  ie. if only gfp is used,
  gfp.h, if slab is used, slab.h.

* When the script inserts a new include, it looks at the include
  blocks and try to put the new include such that its order conforms
  to its surrounding.  It's put in the include block which contains
  core kernel includes, in the same order that the rest are ordered -
  alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
  doesn't seem to be any matching order.

* If the script can't find a place to put a new include (mostly
  because the file doesn't have fitting include block), it prints out
  an error message indicating which .h file needs to be added to the
  file.

The conversion was done in the following steps.

1. The initial automatic conversion of all .c files updated slightly
   over 4000 files, deleting around 700 includes and adding ~480 gfp.h
   and ~3000 slab.h inclusions.  The script emitted errors for ~400
   files.

2. Each error was manually checked.  Some didn't need the inclusion,
   some needed manual addition while adding it to implementation .h or
   embedding .c file was more appropriate for others.  This step added
   inclusions to around 150 files.

3. The script was run again and the output was compared to the edits
   from #2 to make sure no file was left behind.

4. Several build tests were done and a couple of problems were fixed.
   e.g. lib/decompress_*.c used malloc/free() wrappers around slab
   APIs requiring slab.h to be added manually.

5. The script was run on all .h files but without automatically
   editing them as sprinkling gfp.h and slab.h inclusions around .h
   files could easily lead to inclusion dependency hell.  Most gfp.h
   inclusion directives were ignored as stuff from gfp.h was usually
   wildly available and often used in preprocessor macros.  Each
   slab.h inclusion directive was examined and added manually as
   necessary.

6. percpu.h was updated not to include slab.h.

7. Build test were done on the following configurations and failures
   were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
   distributed build env didn't work with gcov compiles) and a few
   more options had to be turned off depending on archs to make things
   build (like ipr on powerpc/64 which failed due to missing writeq).

   * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
   * powerpc and powerpc64 SMP allmodconfig
   * sparc and sparc64 SMP allmodconfig
   * ia64 SMP allmodconfig
   * s390 SMP allmodconfig
   * alpha SMP allmodconfig
   * um on x86_64 SMP allmodconfig

8. percpu.h modifications were reverted so that it could be applied as
   a separate patch and serve as bisection point.

Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Guess-its-ok-by: Christoph Lameter &lt;cl@linux-foundation.org&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: Lee Schermerhorn &lt;Lee.Schermerhorn@hp.com&gt;
</content>
</entry>
<entry>
<title>Squashfs: get rid of obsolete definition in header file</title>
<updated>2010-03-05T15:35:35Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2010-02-25T01:31:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=06862f884d9c2453daaf0c1d070c69cf444f10b1'/>
<id>urn:sha1:06862f884d9c2453daaf0c1d070c69cf444f10b1</id>
<content type='text'>
Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
</content>
</entry>
<entry>
<title>Squashfs: get rid of obsolete variable in struct squashfs_sb_info</title>
<updated>2010-03-05T15:35:20Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2010-02-25T00:54:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ae4a3179b11a97a5b36a768ae6ac1662d0315ff0'/>
<id>urn:sha1:ae4a3179b11a97a5b36a768ae6ac1662d0315ff0</id>
<content type='text'>
Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
</content>
</entry>
<entry>
<title>Squashfs: add decompressor entries for lzma and lzo</title>
<updated>2010-01-20T21:47:48Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2009-10-14T02:58:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dc3256782f88602953676c447b243dedb1be99ad'/>
<id>urn:sha1:dc3256782f88602953676c447b243dedb1be99ad</id>
<content type='text'>
Add knowledge of lzma/lzo compression formats to the decompressor
framework.  For now these are added as unsupported.  Without
these entries lzma/lzo compressed filesystems will be flagged as
having unknown compression which is undesirable.

Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
</content>
</entry>
<entry>
<title>Squashfs: add a decompressor framework</title>
<updated>2010-01-20T21:47:47Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2009-10-06T03:04:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4c0f0bb2351bee3de8dd7715ee199454a59f1230'/>
<id>urn:sha1:4c0f0bb2351bee3de8dd7715ee199454a59f1230</id>
<content type='text'>
This adds a decompressor framework which allows multiple compression
algorithms to be cleanly supported.

Also update zlib wrapper and other code to use the new framework.

Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
</content>
</entry>
</feed>
