Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754671AbaDYUCS (ORCPT ); Fri, 25 Apr 2014 16:02:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64375 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750902AbaDYUCK (ORCPT ); Fri, 25 Apr 2014 16:02:10 -0400 Date: Fri, 25 Apr 2014 22:01:56 +0200 From: Oleg Nesterov To: "Eric W. Biederman" Cc: Dmitry Kasatkin , linux-security-module , john.johansen@canonical.com, Mimi Zohar , James Morris , viro@ZenIV.linux.org.uk, Linux Kernel Mailing List , kernel-team@lists.ubuntu.com Subject: Re: Kernel panic at Ubuntu: IMA + Apparmor Message-ID: <20140425200156.GA13727@redhat.com> References: <535A5C78.1070901@samsung.com> <535A75C1.3050901@samsung.com> <20140425182310.GA9128@redhat.com> <87sip15iy5.fsf@x220.int.ebiederm.org> <20140425192543.GA11908@redhat.com> <878uqt42q7.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878uqt42q7.fsf@x220.int.ebiederm.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/25, Eric W. Biederman wrote: > > Oleg Nesterov writes: > > > Well. I _think_ that __fput() and ima_file_free() in particular should not > > depend on current and/or current->nsproxy. If nothing else, fput() can be > > called by the unrelated task which looks into /proc/pid/. > > > > But again, task_work_add() has more and more users, and it seems that even > > __fput() paths can do "everything", so perhaps it would be safer to allow > > to use ->nsproxy in task_work_run. > > Like I said, give me a clear motivating case. I agree, we need a reason. Currently I do not see one. > Right now not allowing > nsproxy is turning up bugs in __fput. Which seems like a good thing. This is what I certainly agree with ;) Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/