Commit bb9fc8a8 authored by Daeho Jeong's avatar Daeho Jeong Committed by Xie XiuQi
Browse files

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: default avatarDaeho Jeong <daeho.jeong@samsung.com>
Tested-by: default avatarYoungjin Gil <youngjin.gil@samsung.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Fixes: 8a81252b ("fs/file.c: don't acquire files->file_lock in
fd_install()")

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarWei Fang <fangwei1@huawei.com>
parent 818d77c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment