Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1048103iob; Wed, 4 May 2022 13:30:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9aJDoAqN1ZuvqLsqXuqDNnRm/6M8+KZh4wHp6Zym+/MACozkozPaN++kyf/cfOG16VsLr X-Received: by 2002:a05:6a00:198a:b0:50e:a2a:32e9 with SMTP id d10-20020a056a00198a00b0050e0a2a32e9mr10180810pfl.82.1651696222389; Wed, 04 May 2022 13:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651696222; cv=none; d=google.com; s=arc-20160816; b=nt2xz+gmmlIgeXIxrhScTkjYqo+JyEt9N/2XploJUQ2Hcco/fNkdcak1JRSLd2BFjC lUXJbv3hfdUJErryWHl0RZ7eGDJDfd2UBPtfi+zikuDrFI2uydsQI1yKhso/iITII0lV n3CVte++j51ZxBZynayJuNbV9sZ4Ezk5s07fOv/b/KILj35wiUrsGIbN3H0UDOfRQrb6 Dcyvar+batTkAIM4Kd4AZ1SuDuVyEsMAfjejIpndPrTFmmUOskV/Erqbq4V02rbI9H+r jWCA4RuNx85yLLTqPWWAfNbCKmzoLKkY8OTyQeU+I04ZYXhPeDe3QPNb6ApRa2HNXqfo jpiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=o3chF9MvEE59MuSo+vDjo46H/oBaExhMv4ko9u6VUbc=; b=pQOFlCbsyBSDk6Of4Np4tKmZprd2tBUH41J0KxsXSTGlhGXxpbwEPJIhQgjbXB9YS8 qKgUTjwFpP06O8ubfgnUYFlxMUi2/OX2pHiYBQfnJCrzE7hFWX0htNycHkFFgkAMC87x XbGVoZ8UDVVmslajDTzSGilLCE+BQ6AA3w1X0FmLIInK8VZZWOfQ63M0cMJTdAD8BUP9 MkBI7VvdtMayzYuvbMHIq9XOzfBy5uKtRiIGASblFVNZDQnptmlUA0O37233itnOVqqf PPoZQh1XiTzzChUHSrrTo47OJN5IQ/QsWQJiY3nSoVrnNzLLAIcVU4ebUEr2fIvIjeOj 4JMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x32-20020a631720000000b003c5c0d482b6si3219326pgl.308.2022.05.04.13.30.04; Wed, 04 May 2022 13:30:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237952AbiECPMA (ORCPT + 99 others); Tue, 3 May 2022 11:12:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237928AbiECPLz (ORCPT ); Tue, 3 May 2022 11:11:55 -0400 Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [207.211.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4C30D37A8D for ; Tue, 3 May 2022 08:08:22 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-453-75oE-M6RP7eBPNBNfwRyUg-1; Tue, 03 May 2022 11:05:38 -0400 X-MC-Unique: 75oE-M6RP7eBPNBNfwRyUg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0F29F3D32CC7; Tue, 3 May 2022 13:40:18 +0000 (UTC) Received: from comp-core-i7-2640m-0182e6.redhat.com (unknown [10.36.110.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id D9EF19E60; Tue, 3 May 2022 13:40:09 +0000 (UTC) From: Alexey Gladkov To: LKML , "Eric W . Biederman" , Linus Torvalds Cc: Alexander Mikhalitsyn , Andrew Morton , Christian Brauner , Daniel Walsh , Davidlohr Bueso , Kirill Tkhai , Linux Containers , Manfred Spraul , Serge Hallyn , Varad Gautam , Vasily Averin Subject: Re: [PATCH v1 2/4] ipc: Use proper ipc namespace Date: Tue, 3 May 2022 15:39:53 +0200 Message-Id: In-Reply-To: <87sfprudal.fsf@email.froward.int.ebiederm.org> References: <87sfprudal.fsf@email.froward.int.ebiederm.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 02, 2022 at 11:09:22AM -0500, Eric W. Biederman wrote: > Alexey Gladkov writes: > > > As Eric Biederman pointed out, changing the namespace broke checkpoint > > restore. I have reverted my previous changes. > > Can you remind me the bug that is being fixed here? > > I am probably just going to fast to see it, but it would be good to have > it described in the commit comment. It was preparation for the "ipc: Check permissions for checkpoint_restart sysctls at open time". I wanted to split the commit and make it more readable, but it looks like I just confused everyone. This change should be part of the next commit. Here is a new version of the patchset where I moved the bugfix to a separate commit as you requested in the next email. Does that look better? -- Alexey Gladkov (4): ipc: Use the same namespace to modify and validate ipc: Remove extra1 field abuse to pass ipc namespace ipc: Check permissions for checkpoint_restart sysctls at open time ipc: Remove extra braces ipc/ipc_sysctl.c | 108 +++++++++++++++++++++-------------------------- 1 file changed, 49 insertions(+), 59 deletions(-) -- 2.33.3