Re: [f2fs-dev] [PATCH AUTOSEL 5.10 10/31] f2fs: Handle casefolding with Encryption

2020-12-30 Thread Eric Biggers
On Wed, Dec 30, 2020 at 08:02:52AM -0500, Sasha Levin wrote: > From: Daniel Rosenberg > > [ Upstream commit 7ad08a58bf67594057362e45cbddd3e27e53e557 ] > > Expand f2fs's casefolding support to include encrypted directories. To > index casefolded+encrypted directories, we use the SipHash of the >

Re: [f2fs-dev] [PATCH 5.4 0/4] fscrypt: prevent creating duplicate encrypted filenames

2020-12-30 Thread Greg KH
On Mon, Dec 28, 2020 at 10:54:29AM -0800, Eric Biggers wrote: > Backport four commits from v5.11-rc1. I resolved a conflict in the > first one. The rest are clean cherry-picks which didn't get picked up > yet because they depend on the first one. > > Eric Biggers (4): > fscrypt: add fscrypt_is

Re: [f2fs-dev] [PATCH 4.19 0/4] fscrypt: prevent creating duplicate encrypted filenames

2020-12-30 Thread Greg KH
On Mon, Dec 28, 2020 at 11:12:07AM -0800, Eric Biggers wrote: > Backport four commits from v5.11-rc1. I resolved conflicts in the first > two. > > Eric Biggers (4): > fscrypt: add fscrypt_is_nokey_name() > ext4: prevent creating duplicate encrypted filenames > f2fs: prevent creating duplica

[f2fs-dev] Patch "ubifs: prevent creating duplicate encrypted filenames" has been added to the 4.19-stable tree

2020-12-30 Thread gregkh
This is a note to let you know that I've just added the patch titled ubifs: prevent creating duplicate encrypted filenames to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

[f2fs-dev] Patch "fscrypt: add fscrypt_is_nokey_name()" has been added to the 4.19-stable tree

2020-12-30 Thread gregkh
This is a note to let you know that I've just added the patch titled fscrypt: add fscrypt_is_nokey_name() to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: fscrypt-add-fscry

[f2fs-dev] Patch "f2fs: prevent creating duplicate encrypted filenames" has been added to the 4.19-stable tree

2020-12-30 Thread gregkh
This is a note to let you know that I've just added the patch titled f2fs: prevent creating duplicate encrypted filenames to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: f

[f2fs-dev] Patch "ext4: prevent creating duplicate encrypted filenames" has been added to the 4.19-stable tree

2020-12-30 Thread gregkh
This is a note to let you know that I've just added the patch titled ext4: prevent creating duplicate encrypted filenames to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: e

[f2fs-dev] Patch "fscrypt: add fscrypt_is_nokey_name()" has been added to the 5.4-stable tree

2020-12-30 Thread gregkh
This is a note to let you know that I've just added the patch titled fscrypt: add fscrypt_is_nokey_name() to the 5.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: fscrypt-add-fscryp

[f2fs-dev] Patch "ubifs: prevent creating duplicate encrypted filenames" has been added to the 5.4-stable tree

2020-12-30 Thread gregkh
This is a note to let you know that I've just added the patch titled ubifs: prevent creating duplicate encrypted filenames to the 5.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: u

[f2fs-dev] Patch "ext4: prevent creating duplicate encrypted filenames" has been added to the 5.4-stable tree

2020-12-30 Thread gregkh
This is a note to let you know that I've just added the patch titled ext4: prevent creating duplicate encrypted filenames to the 5.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: ex

[f2fs-dev] Patch "f2fs: prevent creating duplicate encrypted filenames" has been added to the 5.4-stable tree

2020-12-30 Thread gregkh
This is a note to let you know that I've just added the patch titled f2fs: prevent creating duplicate encrypted filenames to the 5.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: f2

[f2fs-dev] [PATCH AUTOSEL 5.4 10/17] f2fs: avoid race condition for shrinker count

2020-12-30 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit a95ba66ac1457b76fe472c8e092ab1006271f16c ] Light reported sometimes shinker gets nat_cnt < dirty_nat_cnt resulting in wrong do_shinker work. Let's avoid to return insane overflowed value by adding single tracking value. Reported-by: Light Hsieh Reviewed-by:

[f2fs-dev] [PATCH AUTOSEL 5.4 12/17] f2fs: fix shift-out-of-bounds in sanity_check_raw_super()

2020-12-30 Thread Sasha Levin
From: Chao Yu [ Upstream commit e584bbe821229a3e7cc409eecd51df66f9268c21 ] syzbot reported a bug which could cause shift-out-of-bounds issue, fix it. Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 ubsan_epilogue+0xb/0x5a lib/ubsan.c:148 __u

[f2fs-dev] [PATCH AUTOSEL 5.10 10/31] f2fs: Handle casefolding with Encryption

2020-12-30 Thread Sasha Levin
From: Daniel Rosenberg [ Upstream commit 7ad08a58bf67594057362e45cbddd3e27e53e557 ] Expand f2fs's casefolding support to include encrypted directories. To index casefolded+encrypted directories, we use the SipHash of the casefolded name, keyed by a key derived from the directory's fscrypt maste

[f2fs-dev] [PATCH AUTOSEL 5.10 15/31] f2fs: fix shift-out-of-bounds in sanity_check_raw_super()

2020-12-30 Thread Sasha Levin
From: Chao Yu [ Upstream commit e584bbe821229a3e7cc409eecd51df66f9268c21 ] syzbot reported a bug which could cause shift-out-of-bounds issue, fix it. Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 ubsan_epilogue+0xb/0x5a lib/ubsan.c:148 __u

[f2fs-dev] [PATCH AUTOSEL 5.10 12/31] f2fs: fix race of pending_pages in decompression

2020-12-30 Thread Sasha Levin
From: Daeho Jeong [ Upstream commit 6422a71ef40e4751d59b8c9412e7e2dafe085878 ] I found out f2fs_free_dic() is invoked in a wrong timing, but f2fs_verify_bio() still needed the dic info and it triggered the below kernel panic. It has been caused by the race condition of pending_pages value betwee

[f2fs-dev] [PATCH AUTOSEL 5.10 11/31] f2fs: avoid race condition for shrinker count

2020-12-30 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit a95ba66ac1457b76fe472c8e092ab1006271f16c ] Light reported sometimes shinker gets nat_cnt < dirty_nat_cnt resulting in wrong do_shinker work. Let's avoid to return insane overflowed value by adding single tracking value. Reported-by: Light Hsieh Reviewed-by:

[f2fs-dev] [PATCH] f2fs: trival cleanup in move_data_block()

2020-12-30 Thread Chao Yu
Trival cleanups: - relocate set_summary() before its use - relocate "allocate block address" to correct place - remove unneeded f2fs_wait_on_page_writeback() Signed-off-by: Chao Yu --- fs/f2fs/gc.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/gc.c b/fs/f2fs