From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:39050 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751774AbdFOLRE (ORCPT ); Thu, 15 Jun 2017 07:17:04 -0400 Date: Thu, 15 Jun 2017 12:16:57 +0100 From: Al Viro To: Daeho Jeong Cc: edumazet@google.com, mguzik@redhat.com, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] fs: initialize resize_wait wait queue of init task Message-ID: <20170615111657.GM31671@ZenIV.linux.org.uk> References: <1497400041-14501-1-git-send-email-daeho.jeong@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1497400041-14501-1-git-send-email-daeho.jeong@samsung.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Jun 14, 2017 at 09:27:21AM +0900, Daeho Jeong wrote: > 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. *shrug* Not a problem, but kernel threads playing with init_files are seriously asking for trouble. It *is* shared and uncooperating threads playing with shared descriptor table can fuck up very easily. I can apply that, but it might make more sense to restrict the use of that thing...