linux-stable/fs/sysv
Prince Kumar Maurya afd9a31b5a fs/sysv: Null check to prevent null-ptr-deref bug
commit ea2b62f305 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>
2023-08-11 15:13:58 +02:00
..
Kconfig
Makefile
balloc.c
dir.c
file.c fs: make helpers idmap mount aware 2021-01-24 14:27:20 +01:00
ialloc.c inode: make init and permission helpers idmapped mount aware 2021-01-24 14:27:16 +01:00
inode.c [PATCH] reduce boilerplate in fsid handling 2020-09-18 16:45:50 -04:00
itree.c fs/sysv: Null check to prevent null-ptr-deref bug 2023-08-11 15:13:58 +02:00
namei.c fs: make helpers idmap mount aware 2021-01-24 14:27:20 +01:00
super.c
sysv.h fs: make helpers idmap mount aware 2021-01-24 14:27:20 +01:00