Skip to content
Commit d031f4e8 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Paul Moore
Browse files

reiserfs: Initialize sec->length in reiserfs_security_init().



syzbot is reporting that sec->length is not initialized.

Since security_inode_init_security() returns 0 when initxattrs is provided
but call_int_hook(inode_init_security) returned -EOPNOTSUPP, control will
reach to "if (sec->length && ...) {" without initializing sec->length.

Reported-by: default avatarsyzbot <syzbot+00a3779539a23cbee38c@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=00a3779539a23cbee38c


Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fixes: 52ca4b64 ("reiserfs: Switch to security_inode_init_security()")
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent a495108e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment