mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
Merge branch 'proc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull proc fix from Eric Biederman: "Syzbot found a NULL pointer dereference if kzalloc of s_fs_info fails" * 'proc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: proc: s_fs_info may be NULL when proc_kill_sb is called
This commit is contained in:
commit
79ca035d2d
@ -264,11 +264,13 @@ static void proc_kill_sb(struct super_block *sb)
|
||||
{
|
||||
struct proc_fs_info *fs_info = proc_sb_info(sb);
|
||||
|
||||
if (fs_info->proc_self)
|
||||
dput(fs_info->proc_self);
|
||||
if (!fs_info) {
|
||||
kill_anon_super(sb);
|
||||
return;
|
||||
}
|
||||
|
||||
if (fs_info->proc_thread_self)
|
||||
dput(fs_info->proc_thread_self);
|
||||
dput(fs_info->proc_self);
|
||||
dput(fs_info->proc_thread_self);
|
||||
|
||||
kill_anon_super(sb);
|
||||
put_pid_ns(fs_info->pid_ns);
|
||||
|
Loading…
Reference in New Issue
Block a user