<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/squashfs/file.c, branch linux-3.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.16.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.16.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-11-20T18:05:52Z</updated>
<entry>
<title>squashfs: be more careful about metadata corruption</title>
<updated>2018-11-20T18:05:52Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2018-07-29T19:44:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85087c2072b50965d89bd29f5a022e7bceffe586'/>
<id>urn:sha1:85087c2072b50965d89bd29f5a022e7bceffe586</id>
<content type='text'>
commit 01cfb7937a9af2abb1136c7e89fbf3fd92952956 upstream.

Anatoly Trosinenko reports that a corrupted squashfs image can cause a
kernel oops.  It turns out that squashfs can end up being confused about
negative fragment lengths.

The regular squashfs_read_data() does check for negative lengths, but
squashfs_read_metadata() did not, and the fragment size code just
blindly trusted the on-disk value.  Fix both the fragment parsing and
the metadata reading code.

Reported-by: Anatoly Trosinenko &lt;anatoly.trosinenko@gmail.com&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Cc: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>Squashfs: Restructure squashfs_readpage()</title>
<updated>2013-11-20T03:59:07Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2013-10-31T19:24:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f55dbc0c5c466a9cdfa4da7ac1bfe351c7fc52a'/>
<id>urn:sha1:5f55dbc0c5c466a9cdfa4da7ac1bfe351c7fc52a</id>
<content type='text'>
Restructure squashfs_readpage() splitting it into separate
functions for datablocks, fragments and sparse blocks.

Move the memcpying (from squashfs cache entry) implementation of
squashfs_readpage_block into file_cache.c

This allows different implementations to be supported.

Signed-off-by: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Reviewed-by: Minchan Kim &lt;minchan@kernel.org&gt;
</content>
</entry>
<entry>
<title>squashfs: remove the second argument of k[un]map_atomic()</title>
<updated>2012-03-20T13:48:25Z</updated>
<author>
<name>Cong Wang</name>
</author>
<published>2011-11-25T15:14:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=53b55e55893fbce8d78caeb22e17a28d909a2132'/>
<id>urn:sha1:53b55e55893fbce8d78caeb22e17a28d909a2132</id>
<content type='text'>
Signed-off-by: Cong Wang &lt;amwang@redhat.com&gt;
</content>
</entry>
<entry>
<title>Squashfs: update email address</title>
<updated>2011-05-26T09:49:11Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2011-05-26T09:39:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d7f2ff6718efa155fd92e481a5960496d084c63f'/>
<id>urn:sha1:d7f2ff6718efa155fd92e481a5960496d084c63f</id>
<content type='text'>
My existing email address may stop working in a month or two, so update
email to one that will continue working.

Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
</content>
</entry>
<entry>
<title>Squashfs: factor out remaining zlib dependencies into separate wrapper file</title>
<updated>2010-01-20T21:47:47Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2009-09-23T18:04:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1a40359f8d8ba073257ed31a513e492621bcbc5'/>
<id>urn:sha1:f1a40359f8d8ba073257ed31a513e492621bcbc5</id>
<content type='text'>
Move zlib buffer init/destroy code into separate wrapper file.  Also
make zlib z_stream field a void * removing the need to include zlib.h
for most files.

Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
</content>
</entry>
<entry>
<title>Squashfs: regular file operations</title>
<updated>2009-01-05T08:46:24Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2009-01-05T08:46:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1701aecb6849cc69bd54890532bcf92eedb00b74'/>
<id>urn:sha1:1701aecb6849cc69bd54890532bcf92eedb00b74</id>
<content type='text'>
Signed-off-by: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
</content>
</entry>
</feed>
