<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/ext4/dir.c, branch linux-3.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-10-13T07:09:23Z</updated>
<entry>
<title>ext4: avoid divide by zero fault when deleting corrupted inline directories</title>
<updated>2018-10-13T07:09:23Z</updated>
<author>
<name>Theodore Ts'o</name>
</author>
<published>2018-08-27T13:22:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=83a27745d1f1ff554b7ac7cb27c248327bc4b9cc'/>
<id>urn:sha1:83a27745d1f1ff554b7ac7cb27c248327bc4b9cc</id>
<content type='text'>
commit 4d982e25d0bdc83d8c64e66fdeca0b89240b3b85 upstream.

A specially crafted file system can trick empty_inline_dir() into
reading past the last valid entry in a inline directory, and then run
into the end of xattr marker. This will trigger a divide by zero
fault.  Fix this by using the size of the inline directory instead of
dir-&gt;i_size.

Also clean up error reporting in __ext4_check_dir_entry so that the
message is clearer and more understandable --- and avoids the division
by zero trap if the size passed in is zero.  (I'm not sure why we
coded it that way in the first place; printing offset % size is
actually more confusing and less useful.)

https://bugzilla.kernel.org/show_bug.cgi?id=200933

Signed-off-by: Theodore Ts'o &lt;tytso@mit.edu&gt;
Reported-by: Wen Xu &lt;wen.xu@gatech.edu&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ext4: convert ext4_bread() to use the ERR_PTR convention</title>
<updated>2014-08-30T00:52:15Z</updated>
<author>
<name>Theodore Ts'o</name>
</author>
<published>2014-08-30T00:52:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1c2150283cae895526d0db3953d13d139f4e7a03'/>
<id>urn:sha1:1c2150283cae895526d0db3953d13d139f4e7a03</id>
<content type='text'>
Signed-off-by: Theodore Ts'o &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>ext4: check inline directory before converting</title>
<updated>2014-07-28T17:06:26Z</updated>
<author>
<name>Darrick J. Wong</name>
</author>
<published>2014-07-28T17:06:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=40b163f1c45f52752677e66d2fd273dbfd273a22'/>
<id>urn:sha1:40b163f1c45f52752677e66d2fd273dbfd273a22</id>
<content type='text'>
Before converting an inline directory to a regular directory, check
the directory entries to make sure they're not obviously broken.
This helps us to avoid a BUG_ON if one of the dirents is trashed.

Signed-off-by: Darrick J. Wong &lt;darrick.wong@oracle.com&gt;
Signed-off-by: Theodore Ts'o &lt;tytso@mit.edu&gt;
Reviewed-by: Andreas Dilger &lt;adilger@dilger.ca&gt;
</content>
</entry>
<entry>
<title>ext4: remove unused local variable "stored" from ext4_readdir(...)</title>
<updated>2014-05-27T16:48:55Z</updated>
<author>
<name>Giedrius Rekasius</name>
</author>
<published>2014-05-27T16:48:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aa13d5f67c6f5f7718bd9e9b51ce8255f0535d54'/>
<id>urn:sha1:aa13d5f67c6f5f7718bd9e9b51ce8255f0535d54</id>
<content type='text'>
Remove local variable "stored" from ext4_readdir(...). This variable 
gets initialized but is never used inside the function.

Signed-off-by: Giedrius Rekasius &lt;giedrius.rekasius@gmail.com&gt;
Signed-off-by: Theodore Ts'o &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>fs/ext4: use rbtree postorder iteration helper instead of opencoding</title>
<updated>2014-01-24T00:37:03Z</updated>
<author>
<name>Cody P Schafer</name>
</author>
<published>2014-01-23T23:56:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d1866bd06101eb8ab2bb9d180b47c052c04b7cee'/>
<id>urn:sha1:d1866bd06101eb8ab2bb9d180b47c052c04b7cee</id>
<content type='text'>
Use rbtree_postorder_for_each_entry_safe() to destroy the rbtree instead
of opencoding an alternate postorder iteration that modifies the tree

Signed-off-by: Cody P Schafer &lt;cody@linux.vnet.ibm.com&gt;
Reviewed-by: Jan Kara &lt;jack@suse.cz&gt;
Cc: Michel Lespinasse &lt;walken@google.com&gt;
Cc: Theodore Ts'o &lt;tytso@mit.edu&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>ext4: Fix misspellings using 'codespell' tool</title>
<updated>2013-08-28T18:40:12Z</updated>
<author>
<name>Anatol Pomozov</name>
</author>
<published>2013-08-28T18:40:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=70261f568f3c08552f034742e3d5cb78c3877766'/>
<id>urn:sha1:70261f568f3c08552f034742e3d5cb78c3877766</id>
<content type='text'>
Signed-off-by: Anatol Pomozov &lt;anatol.pomozov@gmail.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>[readdir] convert ext4</title>
<updated>2013-06-29T08:56:40Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2013-05-17T20:08:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=725bebb27882ae617d50776cc8b6cacd84481c91'/>
<id>urn:sha1:725bebb27882ae617d50776cc8b6cacd84481c91</id>
<content type='text'>
and trim the living hell out bogosities in inline dir case

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>ext4: fix readdir error in the case of inline_data+dir_index</title>
<updated>2013-04-19T21:53:09Z</updated>
<author>
<name>Tao Ma</name>
</author>
<published>2013-04-19T21:53:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8af0f08227977079f8f227e74d27c59db2ab84f6'/>
<id>urn:sha1:8af0f08227977079f8f227e74d27c59db2ab84f6</id>
<content type='text'>
Zach reported a problem that if inline data is enabled, we don't
tell the difference between the offset of '.' and '..'. And a
getdents will fail if the user only want to get '.' and what's worse,
if there is a conversion happens when the user calls getdents
many times, he/she may get the same entry twice.

In theory, a dir block would also fail if it is converted to a
hashed-index based dir since f_pos will become a hash value, not the
real one, but it doesn't happen.  And a deep investigation shows that
we uses a hash based solution even for a normal dir if the dir_index
feature is enabled.

So this patch just adds a new htree_inlinedir_to_tree for inline dir,
and if we find that the hash index is supported, we will do like what
we do for a dir block.

Reported-by: Zach Brown &lt;zab@redhat.com&gt;
Signed-off-by: Tao Ma &lt;boyu.mt@taobao.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
<entry>
<title>Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4</title>
<updated>2013-03-03T03:33:21Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2013-03-03T03:33:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a7c1120d2dcc83691bafa034d98f70285757e826'/>
<id>urn:sha1:a7c1120d2dcc83691bafa034d98f70285757e826</id>
<content type='text'>
Pull ext4 bug fixes from Ted Ts'o:
 "Various bug fixes for ext4.  The most important is a fix for the new
  extent cache's slab shrinker which can cause significant, user-visible
  pauses when the system is under memory pressure."

* tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
  ext4: enable quotas before orphan cleanup
  ext4: don't allow quota mount options when quota feature enabled
  ext4: fix a warning from sparse check for ext4_dir_llseek
  ext4: convert number of blocks to clusters properly
  ext4: fix possible memory leak in ext4_remount()
  jbd2: fix ERR_PTR dereference in jbd2__journal_start
  ext4: use percpu counter for extent cache count
  ext4: optimize ext4_es_shrink()
</content>
</entry>
<entry>
<title>ext4: fix a warning from sparse check for ext4_dir_llseek</title>
<updated>2013-03-02T22:24:05Z</updated>
<author>
<name>Zheng Liu</name>
</author>
<published>2013-03-02T22:24:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d4e439549127d3ca544482551f5f1af4f114debd'/>
<id>urn:sha1:d4e439549127d3ca544482551f5f1af4f114debd</id>
<content type='text'>
ext4_dir_llseek is only used as a callback function, and no one calls
it directly.  So make it as a static function in order to remove a
warning message from sparse check.

Signed-off-by: Zheng Liu &lt;wenqing.lz@taobao.com&gt;
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
</content>
</entry>
</feed>
