]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
reiserfs: Initialize inode keys properly
authorJan Kara <jack@suse.cz>
Mon, 21 Sep 2020 13:08:50 +0000 (15:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2020 08:29:55 +0000 (10:29 +0200)
commitbd0bef47c51499396a2ccaf7efa77fc8849a46c0
treedc801813dfeca6c7fed22a6fc8c875e5cb032a6b
parent491bba5c9a632496518c25a5de98f5d8b9a30e4b
reiserfs: Initialize inode keys properly

commit 4443390e08d34d5771ab444f601cf71b3c9634a4 upstream.

reiserfs_read_locked_inode() didn't initialize key length properly. Use
_make_cpu_key() macro for key initialization so that all key member are
properly initialized.

CC: stable@vger.kernel.org
Reported-by: syzbot+d94d02749498bb7bab4b@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/reiserfs/inode.c