From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43376 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726850AbeILCBs (ORCPT ); Tue, 11 Sep 2018 22:01:48 -0400 From: David Howells In-Reply-To: References: <24102.1536697257@warthog.procyon.org.uk> To: Andrei Vagin Cc: dhowells@redhat.com, linux-fsdevel Subject: Re: [dhowells/mount-api] general protection fault in mqueue_get_tree MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2577.1536699641.1@warthog.procyon.org.uk> Date: Tue, 11 Sep 2018 22:00:41 +0100 Message-ID: <2578.1536699641@warthog.procyon.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Andrei Vagin wrote: > The ipc_namespace structure is big, so I am not sure about kzalloc(). > ns->mq_mnt can be initialized in mq_init_ns, it looks better than my > previous patch. I sincerely hope that ipc_namespace creation isn't a particularly hot path, so I wouldn't've thought that preclearing the struct (which is nearly 2K in my build) shouldn't add too much overhead. David