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:Daeho Jeong <daeho.jeong@samsung.com> Tested-by:
Youngjin Gil <youngjin.gil@samsung.com> Acked-by:
Eric Dumazet <edumazet@google.com> Fixes: 8a81252b ("fs/file.c: don't acquire files->file_lock in fd_install()") Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com> Reviewed-by:
Wei Fang <fangwei1@huawei.com>
Loading
Please sign in to comment