Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp806695lqc; Fri, 8 Mar 2024 12:10:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWGdgkCSXIIGCk+8UZKF30q28HI5V78Pu3eXhNAngiframifqAXboocqRicpyS1RdeYjh0V6p0NUpBQHpfBRLdA6K1w4+ox5d4JEbhAFA== X-Google-Smtp-Source: AGHT+IG69T6/oXqG8XrAgKJTeIiiztbup8QeIYNFj3Vr+iOEksgpcxFV9tCuMPMwql7gQUuFqFrx X-Received: by 2002:a50:9305:0:b0:566:d25e:b73c with SMTP id m5-20020a509305000000b00566d25eb73cmr223895eda.35.1709928612305; Fri, 08 Mar 2024 12:10:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709928612; cv=pass; d=google.com; s=arc-20160816; b=Rc1hW2Bh+krtTVC5CXVIZHH2vB35N2boL+hmlQkJscf19WIEj9JZw/qXyZTu3hjXZW x5as9dqwRGW4BztwdUypVNAV++VoZRK/EC881LSb8G2eaW6iHOprrfVn5MV74KnkGXHT 6d8WxlL1b11oFNzW9Z+jPKfaFffg5TMIsujRPpGT2siQ8SGCJsEG7AFKbxhAEGdjQMRw Z0nRMfCI7aLyYumOoqJzhJ+JnU4zV6lZE2jph4toLfcPXOlsoVsQ8P57WIZyTuUlhwCg FZ7ck2YJndc16B3D2JVeeRKRfciTktWUFiHuNY5mS6gW8TLfxfUQAGEmySm4+bZbgSok /RFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :references:cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=yB172oCMy767IdSvZDfI6ar8vCTqvaf/fdrD6SsSrcU=; fh=J8i+FHOKAkitAng/dk86WHaHmH1lyxd6p+f0L6SZLCg=; b=L0RfYvzkSNT5iZUjjbmXCyEfYawYLUijlfmfNtgxeSYy8T6aFnIWPDO/7RaVBQiKC7 xcMfybzClTDzSYEAY/e8MkBa8b6mLm4paFDzV99INRozMdBJdZeVp9MGuuJ4dvpBzB3n ap7KnLcbb2Tb7BRdzFVSQKjNucRkUsGjNdsuSQATbRhm55r23Cw9iwo3k1/bizmiU3JM w22x/qo/FobhdDW/Unhhqpz+8Aj+r7p7aE1t1mCs4/+BR3XmJEd6vRw7CzTLL4T42WAe jWGAqI59lXzX85U298T3m/yb/PkpFdUcianmOkHhtyjqYMdeM5s23EIBigab1N5RYmIE VIhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=GmAzMcoq; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-97534-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97534-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id es12-20020a056402380c00b0056830c9142csi94114edb.100.2024.03.08.12.10.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 12:10:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97534-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=GmAzMcoq; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-97534-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97534-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0B9381F21DD5 for ; Fri, 8 Mar 2024 20:10:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D64B85CDC0; Fri, 8 Mar 2024 20:10:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="GmAzMcoq" Received: from smtp-relay-canonical-1.canonical.com (smtp-relay-canonical-1.canonical.com [185.125.188.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3F7E5B5DD; Fri, 8 Mar 2024 20:09:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.121 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709928602; cv=none; b=t5PGfTHxEjIXa21M7EK7WkikqyFJM1fGKGLNSgfY1ODjR0QFyDLoZyRxiDxXQGYRrIGW9eRsPCvbYyOPKr6s1kH0rOaaTcWDjnxAoLj0c2e5qqK7MoG+TN2HsrIJ3buiJy8uexASvtjCn4S761ZP42Rl4/+n67ke20Gyq7mKa2w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709928602; c=relaxed/simple; bh=iTxSFJY/6ShsagdMiXSy2Jt9K4yssYnYeQNhQRuHjwk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HmmZr3xyU0cctzf76o7iKd8V7FcOAG3guyLGFwLuIlyV+GX1rwWvHIiavm+R52p7aezo4wd+qbCrjq2qeYXCtjvlZDwkXzzHZuvzsuJLq+SUvH37/XpY3BXgnXlzdIXKYzzBWiIvFj9kQ1ZzMUrKDaHluEsLkaGoyH4pOi+HgAc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b=GmAzMcoq; arc=none smtp.client-ip=185.125.188.121 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from [192.168.192.85] (unknown [50.39.103.33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 99BD33FB5F; Fri, 8 Mar 2024 20:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1709928596; bh=yB172oCMy767IdSvZDfI6ar8vCTqvaf/fdrD6SsSrcU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GmAzMcoqYpAN5NQh9m24Kw+W6g0VN80vlS5IZb8OcOnxBEdKiuepKlOS0Xl9F1ll+ SdBMrCSPKfrmEnJvpWkpYGChaUpAa1KdrBe0+upTg3cUNGXhASDjTlqd5gphD09BkH PvnRwtnyY314XIa6VNpk0RbekdBxc5cdZF5Eu6g2/SBkDO0xGyZT5W/ix9vbMF+6d3 1LweUxh6AoFuC667zNDYZqE07TJ/xCCguQey1Ljilwb/DNJwAQZi7MBHhPajOOP9bC +5cNehvdkhmOwUyNGvBNZRTf13PHeGoVc8QNzSxFH1g42YOEqNJQBkjM9A37J91HmW g8Wo7ojFWldrA== Message-ID: <3b880c7c-0d19-4bb6-9f0f-fb69047f41cd@canonical.com> Date: Fri, 8 Mar 2024 12:09:48 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 0/9] Nginx refcount scalability issue with Apparmor enabled and potential solutions Content-Language: en-US To: Mateusz Guzik Cc: Neeraj Upadhyay , paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, "Gautham R. Shenoy" , "Shukla, Santosh" , "Narayan, Ananth" , raghavendra.kodsarathimmappa@amd.com, koverstreet@google.com, paulmck@kernel.org, boqun.feng@gmail.com, vinicius.gomes@intel.com References: <096178c9-91de-4752-bdc4-6a31bcdcbaf8@amd.com> <4871a305-5d45-47d2-85f2-d718c423db80@canonical.com> From: John Johansen Autocrypt: addr=john.johansen@canonical.com; keydata= xsFNBE5mrPoBEADAk19PsgVgBKkImmR2isPQ6o7KJhTTKjJdwVbkWSnNn+o6Up5knKP1f49E BQlceWg1yp/NwbR8ad+eSEO/uma/K+PqWvBptKC9SWD97FG4uB4/caomLEU97sLQMtnvGWdx rxVRGM4anzWYMgzz5TZmIiVTZ43Ou5VpaS1Vz1ZSxP3h/xKNZr/TcW5WQai8u3PWVnbkjhSZ PHv1BghN69qxEPomrJBm1gmtx3ZiVmFXluwTmTgJOkpFol7nbJ0ilnYHrA7SX3CtR1upeUpM a/WIanVO96WdTjHHIa43fbhmQube4txS3FcQLOJVqQsx6lE9B7qAppm9hQ10qPWwdfPy/+0W 6AWtNu5ASiGVCInWzl2HBqYd/Zll93zUq+NIoCn8sDAM9iH+wtaGDcJywIGIn+edKNtK72AM gChTg/j1ZoWH6ZeWPjuUfubVzZto1FMoGJ/SF4MmdQG1iQNtf4sFZbEgXuy9cGi2bomF0zvy BJSANpxlKNBDYKzN6Kz09HUAkjlFMNgomL/cjqgABt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KJ2VZIfOP46nboqlsWebA07SmyJSyeG8c XA87+8BuXdGxHn7RGj6G+zZwSZC6/2v9sOUJ+nOna3dwr6uHFSqKw7HwNl/PUGeRqgJEVu++ +T7sv9+iY+e0Y+SolyJgTxMYeRnDWE6S77g6gzYYHmcQOWP7ZMX+MtD4SKlf0+Q8li/F9GUL p0rw8op9f0p1+YAhyAd+dXWNKf7zIfZ2ME+0qKpbQnr1oizLHuJX/Telo8KMmHter28DPJ03 lT9Q Organization: Canonical In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/2/24 02:23, Mateusz Guzik wrote: > On 2/9/24, John Johansen wrote: >> On 2/6/24 20:40, Neeraj Upadhyay wrote: >>> Gentle ping. >>> >>> John, >>> >>> Could you please confirm that: >>> >>> a. The AppArmor refcount usage described in the RFC is correct? >>> b. Approach taken to fix the scalability issue is valid/correct? >>> >> >> Hi Neeraj, >> >> I know your patchset has been waiting on review for a long time. >> Unfortunately I have been very, very busy lately. I will try to >> get to it this weekend, but I can't promise that I will be able >> to get the review fully done. >> > > Gentle prod. > > Any chances of this getting reviewed in the foreseeable future? Would > be a real bummer if the patchset fell through the cracks. > yes, sorry I have been unavailable for the last couple of weeks. I am now back, I have a rather large backlog to try catching up on but this is has an entry on the list.