]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/sysv: Null check to prevent null-ptr-deref bug
authorPrince Kumar Maurya <princekumarmaurya06@gmail.com>
Wed, 31 May 2023 01:31:41 +0000 (18:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 13:13:58 +0000 (15:13 +0200)
commitafd9a31b5aa4b3747f382d44a7b03b7b5d0b7635
treef1bd4357b7ced3a99fc33e9d0cbaac53c2984cda
parent80ec112c199664a455e8372d5d7c38012409c71f
fs/sysv: Null check to prevent null-ptr-deref bug

commit ea2b62f305893992156a798f665847e0663c9f41 upstream.

sb_getblk(inode->i_sb, parent) return a null ptr and taking lock on
that leads to the null-ptr-deref bug.

Reported-by: syzbot+aad58150cbc64ba41bdc@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=aad58150cbc64ba41bdc
Signed-off-by: Prince Kumar Maurya <princekumarmaurya06@gmail.com>
Message-Id: <20230531013141.19487-1-princekumarmaurya06@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysv/itree.c