From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751861AbbHNSCG (ORCPT ); Fri, 14 Aug 2015 14:02:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40913 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751122AbbHNSCD (ORCPT ); Fri, 14 Aug 2015 14:02:03 -0400 Date: Fri, 14 Aug 2015 19:59:44 +0200 From: Oleg Nesterov To: "Eric W. Biederman" Cc: "Kirill A. Shutemov" , Andrew Morton , Kees Cook , David Howells , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , "Kirill A. Shutemov" , Rik van Riel , Vladimir Davydov , Ricky Zhou , Julien Tinnes Subject: Re: [PATCH 1/2] unshare: Unsharing a thread does not require unsharing a vm Message-ID: <20150814175944.GA16652@redhat.com> References: <20150806134426.GA6843@redhat.com> <871tf9cnbi.fsf_-_@x220.int.ebiederm.org> <87vbclb8op.fsf_-_@x220.int.ebiederm.org> <20150812174847.GA6703@redhat.com> <87614k73mo.fsf@x220.int.ebiederm.org> <20150813125550.GA13984@redhat.com> <87vbcjyzac.fsf@x220.int.ebiederm.org> <20150813161718.GA23114@redhat.com> <87vbcjtapu.fsf@x220.int.ebiederm.org> <20150813165011.GA25284@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150813165011.GA25284@redhat.com> 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 08/13, Oleg Nesterov wrote: > > On 08/13, Eric W. Biederman wrote: > > > > In the sense of document when these tests apply I think it makes a > > teensy bit of sense to have the CLONE_VM there. But if you want to send > > me a cosmetic patch that removes that I will add it to my tree, with the > > other two patches. > > Will do ;) Yes, I still think it is pointless to check sighand->count if CLONE_VM. > Eric, I need to run away, I'll try to answer other parts of our confusing > discussion tomorrow. No, lest stop it. Yes, I was wrong, we can't avoid sighand->count check. Somehow I absolutely forgot that we also need to ensure that unshare(SIGHAND) can't wrongly _fail_. Oleg.