From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B83B1C169C4 for ; Fri, 8 Feb 2019 19:58:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8D4BA217D8 for ; Fri, 8 Feb 2019 19:58:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727144AbfBHT6Q (ORCPT ); Fri, 8 Feb 2019 14:58:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49626 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbfBHT6Q (ORCPT ); Fri, 8 Feb 2019 14:58:16 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1A80DE6A7C; Fri, 8 Feb 2019 19:58:15 +0000 (UTC) Received: from [10.18.17.89] (dhcp-17-89.bos.redhat.com [10.18.17.89]) by smtp.corp.redhat.com (Postfix) with ESMTP id F333762662; Fri, 8 Feb 2019 19:58:13 +0000 (UTC) Subject: Re: [PATCH rdma-next] IB/core: Don't register MAD agents for LSM notifications To: Paul Moore , Daniel Jurgens Cc: Leon Romanovsky , Doug Ledford , Jason Gunthorpe , RDMA mailing list , "selinux@vger.kernel.org" , Leon Romanovsky References: <20190127081023.21124-1-leon@kernel.org> <40feb71f-d24c-f592-58d0-fc5814307c6c@redhat.com> <1859ec04-d3d2-bffe-16ca-2ae602e5bbff@mellanox.com> <325d56d9-24d9-a850-57a7-47f12baa593c@mellanox.com> <3cf233f6-4ca7-1667-7d09-0d2b6879046d@mellanox.com> <3c92c876-8ef7-aff9-59ab-966ee95978e6@mellanox.com> From: Don Dutile Message-ID: <12c95863-83bc-2ce8-a2c4-72199af7ed0a@redhat.com> Date: Fri, 8 Feb 2019 14:58:13 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 08 Feb 2019 19:58:15 +0000 (UTC) Sender: selinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org On 02/01/2019 11:09 AM, Paul Moore wrote: > On Fri, Feb 1, 2019 at 9:16 AM Daniel Jurgens wrote: >> On 2/1/2019 7:57 AM, Paul Moore wrote: >>> On Tue, Jan 29, 2019 at 4:13 PM Paul Moore wrote: >>>> On Tue, Jan 29, 2019 at 3:58 PM Daniel Jurgens wrote: >>>>> On 1/29/2019 2:51 PM, Paul Moore wrote: >>>>>> Okay, so let's attempt the change above where we just do the access >>>>>> check directly. Although I'm a little concerned that without a >>>>>> reproducer we might not end up fixing the problem we're trying to fix. >>>>>> Is anyone in touch with the person who originally reported the >>>>>> problem? It would be great if we could get that person to verify the >>>>>> change ... >>>>> I decided to go with maintaining a list in IB core. The notifier call is done under rcu_read_lock vs spin_lock_irq for register/unregister, so we shouldn't have any problems in that case. So only registering once basically achieves the same thing as taking it all out. I'm testing it now. I'll send it for internal review today assuming it checks out. Hopefully Leon can get it posted tomorrow, I know Don has some schedule pressure here. >>>> Okay sounds good. We're still at -rc4 so as long as we can get >>>> something posted this week, or early next, I see no reason why it >>>> can't make the upcoming merge window. >>>> >>>> I'm guessing Don's schedule pressure is more a RH deadline, and not an >>>> upstream constraint. >>> I just wanted to check in and see how this was progressing? I didn't >>> see anything in my inbox, but perhaps I missed it ... >> It's passed internal review. Leon should send it soon (Sunday at the soonest, IL has Friday-Saturday weekends), he may be waiting for a regression run to finish. > > Great, thanks for the update. > update? we're approaching the 2nd Sunday after 2/1/2019, when this email was sent ...