diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2023-05-11 16:48:45 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-05-25 23:44:44 +0200 |
commit | d031f4e8b493df299123fbb4ec13db870584ed28 (patch) | |
tree | dffdfff9b85bf5606388d2e440b27c3b13a5bb74 /security/device_cgroup.c | |
parent | capability: fix kernel-doc warnings in capability.c (diff) | |
download | linux-d031f4e8b493df299123fbb4ec13db870584ed28.tar.xz linux-d031f4e8b493df299123fbb4ec13db870584ed28.zip |
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: syzbot <syzbot+00a3779539a23cbee38c@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=00a3779539a23cbee38c
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fixes: 52ca4b6435a4 ("reiserfs: Switch to security_inode_init_security()")
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/device_cgroup.c')
0 files changed, 0 insertions, 0 deletions