<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/fs, branch v4.5.3</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>btrfs: cleaner_kthread() doesn't need explicit freeze</title>
<updated>2016-05-04T21:49:15+00:00</updated>
<author>
<name>Jiri Kosina</name>
<email>jkosina@suse.cz</email>
</author>
<published>2016-03-15T10:28:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=b54368c9a0b7124a0a1a0470a034442135ab8d35'/>
<id>b54368c9a0b7124a0a1a0470a034442135ab8d35</id>
<content type='text'>
commit 838fe1887765f4cc679febea60d87d2a06bd300e upstream.

cleaner_kthread() is not marked freezable, and therefore calling
try_to_freeze() in its context is a pointless no-op.

In addition to that, as has been clearly demonstrated by 80ad623edd2d
("Revert "btrfs: clear PF_NOFREEZE in cleaner_kthread()"), it's perfectly
valid / legal for cleaner_kthread() to stay scheduled out in an arbitrary
place during suspend (in that particular example that was waiting for
reading of extent pages), so there is no need to leave any traces of
freezer in this kthread.

Fixes: 80ad623edd2d ("Revert "btrfs: clear PF_NOFREEZE in cleaner_kthread()")
Fixes: 696249132158 ("btrfs: clear PF_NOFREEZE in cleaner_kthread()")
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 838fe1887765f4cc679febea60d87d2a06bd300e upstream.

cleaner_kthread() is not marked freezable, and therefore calling
try_to_freeze() in its context is a pointless no-op.

In addition to that, as has been clearly demonstrated by 80ad623edd2d
("Revert "btrfs: clear PF_NOFREEZE in cleaner_kthread()"), it's perfectly
valid / legal for cleaner_kthread() to stay scheduled out in an arbitrary
place during suspend (in that particular example that was waiting for
reading of extent pages), so there is no need to leave any traces of
freezer in this kthread.

Fixes: 80ad623edd2d ("Revert "btrfs: clear PF_NOFREEZE in cleaner_kthread()")
Fixes: 696249132158 ("btrfs: clear PF_NOFREEZE in cleaner_kthread()")
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>btrfs: fix memory leak of fs_info in block group cache</title>
<updated>2016-05-04T21:49:15+00:00</updated>
<author>
<name>Kinglong Mee</name>
<email>kinglongmee@gmail.com</email>
</author>
<published>2016-01-29T13:36:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=151d2afffebe6d5a5a34d50f8447e395bb8fd8a4'/>
<id>151d2afffebe6d5a5a34d50f8447e395bb8fd8a4</id>
<content type='text'>
commit aa66b0bb08869d93492bd817d2eae694ca743a3d upstream.

When starting up linux with btrfs filesystem, I got many memory leak
messages by kmemleak as,

unreferenced object 0xffff880066882000 (size 4096):
  comm "modprobe", pid 730, jiffies 4294690024 (age 196.599s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&lt;ffffffff8174d52e&gt;] kmemleak_alloc+0x4e/0xb0
    [&lt;ffffffff811d09aa&gt;] kmem_cache_alloc_trace+0xea/0x1e0
    [&lt;ffffffffa03620fb&gt;] btrfs_alloc_dummy_fs_info+0x6b/0x2a0 [btrfs]
    [&lt;ffffffffa03624fc&gt;] btrfs_alloc_dummy_block_group+0x5c/0x120 [btrfs]
    [&lt;ffffffffa0360aa9&gt;] btrfs_test_free_space_cache+0x39/0xed0 [btrfs]
    [&lt;ffffffffa03b5a74&gt;] trace_raw_output_xfs_attr_class+0x54/0xe0 [xfs]
    [&lt;ffffffff81002122&gt;] do_one_initcall+0xb2/0x1f0
    [&lt;ffffffff811765aa&gt;] do_init_module+0x5e/0x1e9
    [&lt;ffffffff810fec09&gt;] load_module+0x20a9/0x2690
    [&lt;ffffffff810ff439&gt;] SyS_finit_module+0xb9/0xf0
    [&lt;ffffffff81757daf&gt;] entry_SYSCALL_64_fastpath+0x12/0x76
    [&lt;ffffffffffffffff&gt;] 0xffffffffffffffff
unreferenced object 0xffff8800573f8000 (size 10256):
  comm "modprobe", pid 730, jiffies 4294690185 (age 196.460s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&lt;ffffffff8174d52e&gt;] kmemleak_alloc+0x4e/0xb0
    [&lt;ffffffff8119ca6e&gt;] kmalloc_order+0x5e/0x70
    [&lt;ffffffff8119caa4&gt;] kmalloc_order_trace+0x24/0x90
    [&lt;ffffffffa03620b3&gt;] btrfs_alloc_dummy_fs_info+0x23/0x2a0 [btrfs]
    [&lt;ffffffffa03624fc&gt;] btrfs_alloc_dummy_block_group+0x5c/0x120 [btrfs]
    [&lt;ffffffffa036603d&gt;] run_test+0xfd/0x320 [btrfs]
    [&lt;ffffffffa0366f34&gt;] btrfs_test_free_space_tree+0x94/0xee [btrfs]
    [&lt;ffffffffa03b5aab&gt;] trace_raw_output_xfs_attr_class+0x8b/0xe0 [xfs]
    [&lt;ffffffff81002122&gt;] do_one_initcall+0xb2/0x1f0
    [&lt;ffffffff811765aa&gt;] do_init_module+0x5e/0x1e9
    [&lt;ffffffff810fec09&gt;] load_module+0x20a9/0x2690
    [&lt;ffffffff810ff439&gt;] SyS_finit_module+0xb9/0xf0
    [&lt;ffffffff81757daf&gt;] entry_SYSCALL_64_fastpath+0x12/0x76
    [&lt;ffffffffffffffff&gt;] 0xffffffffffffffff

This patch lets btrfs using fs_info stored in btrfs_root for
block group cache directly without allocating a new one.

Fixes: d0bd456074 ("Btrfs: add fragment=* debug mount option")
Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit aa66b0bb08869d93492bd817d2eae694ca743a3d upstream.

When starting up linux with btrfs filesystem, I got many memory leak
messages by kmemleak as,

unreferenced object 0xffff880066882000 (size 4096):
  comm "modprobe", pid 730, jiffies 4294690024 (age 196.599s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&lt;ffffffff8174d52e&gt;] kmemleak_alloc+0x4e/0xb0
    [&lt;ffffffff811d09aa&gt;] kmem_cache_alloc_trace+0xea/0x1e0
    [&lt;ffffffffa03620fb&gt;] btrfs_alloc_dummy_fs_info+0x6b/0x2a0 [btrfs]
    [&lt;ffffffffa03624fc&gt;] btrfs_alloc_dummy_block_group+0x5c/0x120 [btrfs]
    [&lt;ffffffffa0360aa9&gt;] btrfs_test_free_space_cache+0x39/0xed0 [btrfs]
    [&lt;ffffffffa03b5a74&gt;] trace_raw_output_xfs_attr_class+0x54/0xe0 [xfs]
    [&lt;ffffffff81002122&gt;] do_one_initcall+0xb2/0x1f0
    [&lt;ffffffff811765aa&gt;] do_init_module+0x5e/0x1e9
    [&lt;ffffffff810fec09&gt;] load_module+0x20a9/0x2690
    [&lt;ffffffff810ff439&gt;] SyS_finit_module+0xb9/0xf0
    [&lt;ffffffff81757daf&gt;] entry_SYSCALL_64_fastpath+0x12/0x76
    [&lt;ffffffffffffffff&gt;] 0xffffffffffffffff
unreferenced object 0xffff8800573f8000 (size 10256):
  comm "modprobe", pid 730, jiffies 4294690185 (age 196.460s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&lt;ffffffff8174d52e&gt;] kmemleak_alloc+0x4e/0xb0
    [&lt;ffffffff8119ca6e&gt;] kmalloc_order+0x5e/0x70
    [&lt;ffffffff8119caa4&gt;] kmalloc_order_trace+0x24/0x90
    [&lt;ffffffffa03620b3&gt;] btrfs_alloc_dummy_fs_info+0x23/0x2a0 [btrfs]
    [&lt;ffffffffa03624fc&gt;] btrfs_alloc_dummy_block_group+0x5c/0x120 [btrfs]
    [&lt;ffffffffa036603d&gt;] run_test+0xfd/0x320 [btrfs]
    [&lt;ffffffffa0366f34&gt;] btrfs_test_free_space_tree+0x94/0xee [btrfs]
    [&lt;ffffffffa03b5aab&gt;] trace_raw_output_xfs_attr_class+0x8b/0xe0 [xfs]
    [&lt;ffffffff81002122&gt;] do_one_initcall+0xb2/0x1f0
    [&lt;ffffffff811765aa&gt;] do_init_module+0x5e/0x1e9
    [&lt;ffffffff810fec09&gt;] load_module+0x20a9/0x2690
    [&lt;ffffffff810ff439&gt;] SyS_finit_module+0xb9/0xf0
    [&lt;ffffffff81757daf&gt;] entry_SYSCALL_64_fastpath+0x12/0x76
    [&lt;ffffffffffffffff&gt;] 0xffffffffffffffff

This patch lets btrfs using fs_info stored in btrfs_root for
block group cache directly without allocating a new one.

Fixes: d0bd456074 ("Btrfs: add fragment=* debug mount option")
Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>f2fs crypto: make sure the encryption info is initialized on opendir(2)</title>
<updated>2016-05-04T21:49:13+00:00</updated>
<author>
<name>Chao Yu</name>
<email>chao2.yu@samsung.com</email>
</author>
<published>2016-02-14T10:56:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=091391b800a32dccd9a9138827820a3f8c83f96a'/>
<id>091391b800a32dccd9a9138827820a3f8c83f96a</id>
<content type='text'>
commit ed3360abbc0412f32c398e1c58887d74f3d04225 upstream.

This patch syncs f2fs with commit 6bc445e0ff44 ("ext4 crypto: make
sure the encryption info is initialized on opendir(2)") from ext4.

Signed-off-by: Theodore Ts'o &lt;tytso@mit.edu&gt;
Signed-off-by: Chao Yu &lt;chao2.yu@samsung.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit ed3360abbc0412f32c398e1c58887d74f3d04225 upstream.

This patch syncs f2fs with commit 6bc445e0ff44 ("ext4 crypto: make
sure the encryption info is initialized on opendir(2)") from ext4.

Signed-off-by: Theodore Ts'o &lt;tytso@mit.edu&gt;
Signed-off-by: Chao Yu &lt;chao2.yu@samsung.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>f2fs crypto: handle unexpected lack of encryption keys</title>
<updated>2016-05-04T21:49:13+00:00</updated>
<author>
<name>Chao Yu</name>
<email>chao2.yu@samsung.com</email>
</author>
<published>2016-02-14T10:58:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=629a4956e0ea66c5ff4d1bc5bbb2d5deca4e3908'/>
<id>629a4956e0ea66c5ff4d1bc5bbb2d5deca4e3908</id>
<content type='text'>
commit ae1086686487f13130937918ca91d920c1daafcb upstream.

This patch syncs f2fs with commit abdd438b26b4 ("ext4 crypto: handle
unexpected lack of encryption keys") from ext4.

Fix up attempts by users to try to write to a file when they don't
have access to the encryption key.

Signed-off-by: Theodore Ts'o &lt;tytso@mit.edu&gt;
Signed-off-by: Chao Yu &lt;chao2.yu@samsung.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit ae1086686487f13130937918ca91d920c1daafcb upstream.

This patch syncs f2fs with commit abdd438b26b4 ("ext4 crypto: handle
unexpected lack of encryption keys") from ext4.

Fix up attempts by users to try to write to a file when they don't
have access to the encryption key.

Signed-off-by: Theodore Ts'o &lt;tytso@mit.edu&gt;
Signed-off-by: Chao Yu &lt;chao2.yu@samsung.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>f2fs: don't need to call set_page_dirty for io error</title>
<updated>2016-05-04T21:49:13+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-01-25T22:31:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=73b5a1883361c3a0bd328ba8fa1348e09594229d'/>
<id>73b5a1883361c3a0bd328ba8fa1348e09594229d</id>
<content type='text'>
commit e3ef18762f5757d3fb86f75ca59315db6d17d719 upstream.

If end_io gets an error, we don't need to set the page as dirty, since we
already set f2fs_stop_checkpoint which will not flush any data.

This will resolve the following warning.

======================================================
[ INFO: HARDIRQ-safe -&gt; HARDIRQ-unsafe lock order detected ]
4.4.0+ #9 Tainted: G           O
------------------------------------------------------
xfs_io/26773 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire:
 (&amp;(&amp;sbi-&gt;inode_lock[i])-&gt;rlock){+.+...}, at: [&lt;ffffffffc025483f&gt;] update_dirty_page+0x6f/0xd0 [f2fs]

and this task is already holding:
 (&amp;(&amp;q-&gt;__queue_lock)-&gt;rlock){-.-.-.}, at: [&lt;ffffffff81396ea2&gt;] blk_queue_bio+0x422/0x490
which would create a new lock dependency:
 (&amp;(&amp;q-&gt;__queue_lock)-&gt;rlock){-.-.-.} -&gt; (&amp;(&amp;sbi-&gt;inode_lock[i])-&gt;rlock){+.+...}

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit e3ef18762f5757d3fb86f75ca59315db6d17d719 upstream.

If end_io gets an error, we don't need to set the page as dirty, since we
already set f2fs_stop_checkpoint which will not flush any data.

This will resolve the following warning.

======================================================
[ INFO: HARDIRQ-safe -&gt; HARDIRQ-unsafe lock order detected ]
4.4.0+ #9 Tainted: G           O
------------------------------------------------------
xfs_io/26773 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire:
 (&amp;(&amp;sbi-&gt;inode_lock[i])-&gt;rlock){+.+...}, at: [&lt;ffffffffc025483f&gt;] update_dirty_page+0x6f/0xd0 [f2fs]

and this task is already holding:
 (&amp;(&amp;q-&gt;__queue_lock)-&gt;rlock){-.-.-.}, at: [&lt;ffffffff81396ea2&gt;] blk_queue_bio+0x422/0x490
which would create a new lock dependency:
 (&amp;(&amp;q-&gt;__queue_lock)-&gt;rlock){-.-.-.} -&gt; (&amp;(&amp;sbi-&gt;inode_lock[i])-&gt;rlock){+.+...}

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>f2fs: do f2fs_balance_fs when block is allocated</title>
<updated>2016-05-04T21:49:13+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-01-23T21:35:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=cb3358c514b36f56f4dc52123f30c0e63a8af719'/>
<id>cb3358c514b36f56f4dc52123f30c0e63a8af719</id>
<content type='text'>
commit 3c082b7b5b28be606ed9ef11e4741df7c722c92e upstream.

We should consider data block allocation to trigger f2fs_balance_fs.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 3c082b7b5b28be606ed9ef11e4741df7c722c92e upstream.

We should consider data block allocation to trigger f2fs_balance_fs.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>ext4/fscrypto: avoid RCU lookup in d_revalidate</title>
<updated>2016-05-04T21:49:12+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-04-12T23:05:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=baf12a6b246fb5a958ff16e80e3c1e7a4178c872'/>
<id>baf12a6b246fb5a958ff16e80e3c1e7a4178c872</id>
<content type='text'>
commit 03a8bb0e53d9562276045bdfcf2b5de2e4cff5a1 upstream.

As Al pointed, d_revalidate should return RCU lookup before using d_inode.
This was originally introduced by:
commit 34286d666230 ("fs: rcu-walk aware d_revalidate method").

Reported-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Cc: Theodore Ts'o &lt;tytso@mit.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 03a8bb0e53d9562276045bdfcf2b5de2e4cff5a1 upstream.

As Al pointed, d_revalidate should return RCU lookup before using d_inode.
This was originally introduced by:
commit 34286d666230 ("fs: rcu-walk aware d_revalidate method").

Reported-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Cc: Theodore Ts'o &lt;tytso@mit.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>f2fs: cover large section in sanity check of super</title>
<updated>2016-05-04T21:49:12+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-03-20T22:33:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=3034c3231ca4db86e03c66861f7e599b14154732'/>
<id>3034c3231ca4db86e03c66861f7e599b14154732</id>
<content type='text'>
commit fd694733d523df1e0a583cf5c4c08e41d7bf9fa3 upstream.

This patch fixes the bug which does not cover a large section case when checking
the sanity of superblock.
If f2fs detects misalignment, it will fix the superblock during the mount time,
so it doesn't need to trigger fsck.f2fs further.

Reported-by: Matthias Prager &lt;linux@matthiasprager.de&gt;
Reported-by: David Gnedt &lt;david.gnedt@davizone.at&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit fd694733d523df1e0a583cf5c4c08e41d7bf9fa3 upstream.

This patch fixes the bug which does not cover a large section case when checking
the sanity of superblock.
If f2fs detects misalignment, it will fix the superblock during the mount time,
so it doesn't need to trigger fsck.f2fs further.

Reported-by: Matthias Prager &lt;linux@matthiasprager.de&gt;
Reported-by: David Gnedt &lt;david.gnedt@davizone.at&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>f2fs: slightly reorganize read_raw_super_block</title>
<updated>2016-05-04T21:49:12+00:00</updated>
<author>
<name>Shawn Lin</name>
<email>shawn.lin@rock-chips.com</email>
</author>
<published>2016-02-17T00:59:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=9a0ae8666d30d24ced8c71a7829ef119783e6610'/>
<id>9a0ae8666d30d24ced8c71a7829ef119783e6610</id>
<content type='text'>
commit 2b39e9072d79ab2525100413f3f7a0b8a3e15873 upstream.

read_raw_super_block was introduced to help find the
first valid superblock. Commit da554e48caab ("f2fs:
recovering broken superblock during mount") changed the
behaviour to read both of them and check whether need
the recovery flag or not. So the comment before this
function isn't consistent with what it actually does.
Also, the origin code use two tags to round the err
cases, which isn't so readable. So this patch amend
the comment and slightly reorganize it.

Signed-off-by: Shawn Lin &lt;shawn.lin@rock-chips.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 2b39e9072d79ab2525100413f3f7a0b8a3e15873 upstream.

read_raw_super_block was introduced to help find the
first valid superblock. Commit da554e48caab ("f2fs:
recovering broken superblock during mount") changed the
behaviour to read both of them and check whether need
the recovery flag or not. So the comment before this
function isn't consistent with what it actually does.
Also, the origin code use two tags to round the err
cases, which isn't so readable. So this patch amend
the comment and slightly reorganize it.

Signed-off-by: Shawn Lin &lt;shawn.lin@rock-chips.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>f2fs crypto: fix corrupted symlink in encrypted case</title>
<updated>2016-05-04T21:49:12+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-03-30T20:13:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=5ca2636ec33c4857eae6061f4b97e52d0688b1f3'/>
<id>5ca2636ec33c4857eae6061f4b97e52d0688b1f3</id>
<content type='text'>
commit c90e09f7fb498f81cd4e8bb6460d3a26ccebeca3 upstream.

In the encrypted symlink case, we should check its corrupted symname after
decrypting it.
Otherwise, we can report -ENOENT incorrectly, if encrypted symname starts with
'\0'.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit c90e09f7fb498f81cd4e8bb6460d3a26ccebeca3 upstream.

In the encrypted symlink case, we should check its corrupted symname after
decrypting it.
Otherwise, we can report -ENOENT incorrectly, if encrypted symname starts with
'\0'.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
</feed>
