<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/udf, 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>2014-02-10T21:11:33Z</updated>
<entry>
<title>udf: fix retun value on error path in udf_load_logicalvol</title>
<updated>2014-02-10T21:11:33Z</updated>
<author>
<name>Nikola Pajkovsky</name>
</author>
<published>2012-08-14T22:38:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=000e338c2808b8f416df36f43074a46eebdffff0'/>
<id>urn:sha1:000e338c2808b8f416df36f43074a46eebdffff0</id>
<content type='text'>
commit 68766a2edcd5cd744262a70a2f67a320ac944760 upstream.

In case we detect a problem and bail out, we fail to set "ret" to a
nonzero value, and udf_load_logicalvol will mistakenly report success.

Signed-off-by: Nikola Pajkovsky &lt;npajkovs@redhat.com&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>udf: Fix data corruption for files in ICB</title>
<updated>2014-02-10T21:11:32Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2012-09-05T13:48:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b8c528e117de6c2250ffa550c05504b4580f4210'/>
<id>urn:sha1:b8c528e117de6c2250ffa550c05504b4580f4210</id>
<content type='text'>
commit 9c2fc0de1a6e638fe58c354a463f544f42a90a09 upstream.

When a file is stored in ICB (inode), we overwrite part of the file, and
the page containing file's data is not in page cache, we end up corrupting
file's data by overwriting them with zeros. The problem is we use
simple_write_begin() which simply zeroes parts of the page which are not
written to. The problem has been introduced by be021ee4 (udf: convert to
new aops).

Fix the problem by providing a -&gt;write_begin function which makes the page
properly uptodate.

Reported-by: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>udf: Fix bitmap overflow on large filesystems with small block size</title>
<updated>2014-02-10T21:11:32Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2013-02-05T12:59:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8d0ad4e77355f6e8beb2adc421c9b8586a1071fc'/>
<id>urn:sha1:8d0ad4e77355f6e8beb2adc421c9b8586a1071fc</id>
<content type='text'>
commit 89b1f39eb4189de745fae554b0d614d87c8d5c63 upstream.

For large UDF filesystems with 512-byte blocks the number of necessary
bitmap blocks is larger than 2^16 so s_nr_groups in udf_bitmap overflows
(the number will overflow for filesystems larger than 128 GB with
512-byte blocks). That results in ENOSPC errors despite the filesystem
has plenty of free space.

Fix the problem by changing s_nr_groups' type to 'int'. That is enough
even for filesystems 2^32 blocks (UDF maximum) and 512-byte blocksize.

Reported-and-tested-by: v10lator@myway.de
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>udf: avoid info leak on export</title>
<updated>2014-02-10T21:11:32Z</updated>
<author>
<name>Mathias Krause</name>
</author>
<published>2012-07-12T06:46:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd50b96209b07d1e650f037dcdcb5ceb862c4445'/>
<id>urn:sha1:cd50b96209b07d1e650f037dcdcb5ceb862c4445</id>
<content type='text'>
commit 0143fc5e9f6f5aad4764801015bc8d4b4a278200 upstream.

For type 0x51 the udf.parent_partref member in struct fid gets copied
uninitialized to userland. Fix this by initializing it to 0.

Signed-off-by: Mathias Krause &lt;minipli@googlemail.com&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>udf: fix memory leak while allocating blocks during write</title>
<updated>2014-02-10T21:11:32Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2012-10-09T15:08:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3cb827b381dc2aace21720eaef0dee832f3ffd46'/>
<id>urn:sha1:3cb827b381dc2aace21720eaef0dee832f3ffd46</id>
<content type='text'>
commit 2fb7d99d0de3fd8ae869f35ab682581d8455887a upstream.

Need to brelse the buffer_head stored in cur_epos and next_epos.

Signed-off-by: Namjae Jeon &lt;namjae.jeon@samsung.com&gt;
Signed-off-by: Ashish Sangwan &lt;a.sangwan@samsung.com&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>udf: fix udf_error build warnings</title>
<updated>2014-02-10T21:10:41Z</updated>
<author>
<name>George G. Davis</name>
</author>
<published>2013-04-26T23:00:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=54c0b8dd3b71ae9d23ce78b7606e233b00e08b0e'/>
<id>urn:sha1:54c0b8dd3b71ae9d23ce78b7606e233b00e08b0e</id>
<content type='text'>
The v2.6.34.14 commit "d7542a6 udf: Avoid run away loop when partition
table length is corrupted" introduced the following build warning due
to a change in the number of args in udf_error/udf_err for v2.6.34.14:

 CC      fs/udf/super.o
fs/udf/super.c: In function 'udf_load_sparable_map':
fs/udf/super.c:1259: warning: passing argument 3 of 'udf_error' makes pointer from integer without a cast
fs/udf/super.c:1265: warning: passing argument 3 of 'udf_error' makes pointer from integer without a cast
fs/udf/super.c: In function 'udf_load_logicalvol':
fs/udf/super.c:1313: warning: passing argument 3 of 'udf_error' makes pointer from integer without a cast

The above warnings are due to a missing __func__ argument in the above
udf_error function calls.  This is because of commit 8076c363da15e7
("udf: Rename udf_error to udf_err") which removed the __func__ arg.

Restore the missing __func__ argument to fix the build warnings.

Signed-off-by: George G. Davis &lt;george_davis@mentor.com&gt;
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>udf: Improve table length check to avoid possible overflow</title>
<updated>2013-01-16T21:45:06Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2012-07-10T15:58:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1bf86851f449172c5cb6ed1d8a05c5e45994b56b'/>
<id>urn:sha1:1bf86851f449172c5cb6ed1d8a05c5e45994b56b</id>
<content type='text'>
commit 57b9655d01ef057a523e810d29c37ac09b80eead upstream.

When a partition table length is corrupted to be close to 1 &lt;&lt; 32, the
check for its length may overflow on 32-bit systems and we will think
the length is valid. Later on the kernel can crash trying to read beyond
end of buffer. Fix the check to avoid possible overflow.

Reported-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>udf: Avoid run away loop when partition table length is corrupted</title>
<updated>2013-01-16T21:45:05Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2012-06-27T18:20:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d7542a6eb171336db2101522803f46e6e624bd1f'/>
<id>urn:sha1:d7542a6eb171336db2101522803f46e6e624bd1f</id>
<content type='text'>
commit adee11b2085bee90bd8f4f52123ffb07882d6256 upstream.

Check provided length of partition table so that (possibly maliciously)
corrupted partition table cannot cause accessing data beyond current buffer.

Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
[PG: in 2.6.34 udf_err() is called udf_error()]
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>udf: Fortify loading of sparing table</title>
<updated>2013-01-16T21:45:05Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2012-06-27T19:23:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ae30e324a96d0328a575329d7a95a09b3318601'/>
<id>urn:sha1:9ae30e324a96d0328a575329d7a95a09b3318601</id>
<content type='text'>
commit 1df2ae31c724e57be9d7ac00d78db8a5dabdd050 upstream.

Add sanity checks when loading sparing table from disk to avoid accessing
unallocated memory or writing to it.

Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
[PG: in 2.6.34 udf_err() is called udf_error()]
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>udf: add speciffic -&gt;setattr callback</title>
<updated>2010-04-08T13:35:20Z</updated>
<author>
<name>Dmitry Monakhov</name>
</author>
<published>2010-03-29T07:05:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c15d0fc0fc399d2639240b35ad7ed93ed5a59412'/>
<id>urn:sha1:c15d0fc0fc399d2639240b35ad7ed93ed5a59412</id>
<content type='text'>
generic setattr not longer responsible for quota transfer.
use udf_setattr for all udf's inodes.

Signed-off-by: Dmitry Monakhov &lt;dmonakhov@openvz.org&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
</feed>
