fs: initialize resize_wait wait queue of init task
mainline inclusion from next commit: https://patchwork.kernel.org/patch/9785023/ category: bugfix bugzilla: 5503 CVE: NA ----------------------------------------- We don't initialize resize_wait of init task now and all the kernel threads share this uninitialized resize_wait wait queue because they are sharing the file table of init task. Therefore, when expanding this file table shared by the kernel threads, we encounter kernel panic by accessing the NULL resize_wait wait queue. Signed-off-by: NDaeho Jeong <daeho.jeong@samsung.com> Tested-by: NYoungjin Gil <youngjin.gil@samsung.com> Acked-by: NEric Dumazet <edumazet@google.com> Fixes: 8a81252b ("fs/file.c: don't acquire files->file_lock in fd_install()") Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Reviewed-by: NWei Fang <fangwei1@huawei.com>
Showing
想要评论请 注册 或 登录