From patchwork Wed Oct 25 09:42:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Michael_Wei=C3=9F?= X-Patchwork-Id: 157977 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2479742vqx; Wed, 25 Oct 2023 02:46:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTJFvk2KIeTELPp5nJ7V8fTHC0z9yD7lA6ufJvUIgckYYXOlGQa2LvmRiK8ozFL4vWPK4D X-Received: by 2002:a05:620a:190d:b0:773:af20:43f7 with SMTP id bj13-20020a05620a190d00b00773af2043f7mr18311743qkb.54.1698227161588; Wed, 25 Oct 2023 02:46:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698227161; cv=pass; d=google.com; s=arc-20160816; b=sGLNmwiBuaJvsbLaVZmifXSL689skPfmFhd5KORJ4uIBkx3KmABfFXpKyoDwlUEHtp gXVeVR5Lxc1hMz/ZFwpsGiyG0QUyVytaIoFSoL8ivhLErzJpnwAth7WN+ij3pFkwVvZB OhZ3AbKReWF832bq7PDfEP1Dk1LoHNMlYTsF5Y/moubbpq5ZLkAqno8yxBePe6hu9V+6 SixHJnLtDY7oZ1PB/rs+bU9NvM0Dz05O3PUe3pY5OW5uO+m1a5EO+J8u+XMIClmh3eO3 LOlt8bavP0MQZnpgUSlvKw9pTtthuO7XjrqZ3IZl4ywoP07Yg3RDEvwA8Ovaj7x1Ws1i 1njA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:ironport-hdrordr:ironport-data:ironport-phdr :ironport-sdr:ironport-phdr:dkim-signature; bh=TM3rWZ37iOm/+kXlAfc2yttJ28JWP9yMUE/Bl4wxnbM=; fh=z3ksJh+wv3D7xBEXa7uqO9NpOoCTaO1mFrFJSZ6Twwg=; b=SjJBQgouER/FT3dMeaAinHEYgFuoKzcGrnf4o12onpbTnQ56k/EdiLdXwImUyCRSxa VMiqiaHb1p7FYhHEJ7I0VrqZw0rOLbArcTrna04eI3tsheTwT0/ynIk2rog6Mv3heJg0 bBxmz5/IEGzlGs0yy0c2eg1BP9welWE699Mju/En51ZmGT06+AayzIQFtv0zPLFIsDCN arzxNZJ/zz7BR2bdcOyIIuF7y1aD7MYxq0soDlWnzNNZjFMMYtojeNXsnGHAZ1zUfeOm JGCTpN9W3mcM0ncCL5jkLc1qnOHSCuNSHKhffQD6PWTXbWNCKTi+sL0vQGe3hqVs+Kzd 3pzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@aisec.fraunhofer.de header.s=emailbd1 header.b=CCqEVald; dkim=pass header.i=@fraunhofer.onmicrosoft.com header.s=selector2-fraunhofer-onmicrosoft-com header.b=HujE1mML; arc=pass (i=1 spf=pass spfdomain=aisec.fraunhofer.de dkim=pass dkdomain=aisec.fraunhofer.de dmarc=pass fromdomain=aisec.fraunhofer.de); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aisec.fraunhofer.de Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id c14-20020a81df0e000000b005a7af9a753asi9977927ywn.327.2023.10.25.02.46.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 02:46:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=fail header.i=@aisec.fraunhofer.de header.s=emailbd1 header.b=CCqEVald; dkim=pass header.i=@fraunhofer.onmicrosoft.com header.s=selector2-fraunhofer-onmicrosoft-com header.b=HujE1mML; arc=pass (i=1 spf=pass spfdomain=aisec.fraunhofer.de dkim=pass dkdomain=aisec.fraunhofer.de dmarc=pass fromdomain=aisec.fraunhofer.de); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aisec.fraunhofer.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D2C3480FCBDF; Wed, 25 Oct 2023 02:45:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234378AbjJYJpc (ORCPT + 26 others); Wed, 25 Oct 2023 05:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234687AbjJYJpB (ORCPT ); Wed, 25 Oct 2023 05:45:01 -0400 Received: from mail-edgeF24.fraunhofer.de (mail-edgef24.fraunhofer.de [IPv6:2a03:db80:3004:d210::25:24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7D1E19F; Wed, 25 Oct 2023 02:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aisec.fraunhofer.de; i=@aisec.fraunhofer.de; q=dns/txt; s=emailbd1; t=1698227061; x=1729763061; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=xfHIWfu+FOq/jbmo/K/PtYK8ttjna13orZaG8aVLYp8=; b=CCqEVald44HACVKh7rXm6tuLjzdB1LZNL1E0JV3lXmkaW2Cql7OIM63T pXZcxoz5pFWC4Mv12nDjvA55aKfH+ImvpCtwNdySrmCA5vIXqy2axSPaC UceL301tr6XIWyfUv0CQb7dPN+ewnxet8kJCvYK9XjFkybf88aOl6lkyH Xc8yGci2V1DUHPCnJ8NcKI7dS3CUf+ohmF0DI1LlUOgoOzBKja/JGUTu7 7YMqVpG/mBQ8hrPHVVdwTeL1bJ5LgHDFxDed3cwR+/SaO6u95is5ArH9E cpYDbgVBhJ+/CEsxZ7Vvod28a8J8vBnPS2VUklRLjA4NaPIAZeMqt5VQ9 g==; X-CSE-ConnectionGUID: THgPYn6KQriXTyw5tn6oBg== X-CSE-MsgGUID: wfq6KoI1Q/SLsQsLFZUN2g== Authentication-Results: mail-edgeF24.fraunhofer.de; dkim=pass (signature verified) header.i=@fraunhofer.onmicrosoft.com X-IPAS-Result: A2E2AABB4jhl/xwBYJlaHQEBAQEJARIBBQUBQIE7CAELAYI4gleEU4gdiUGYJoQEKoEsgSUDVg8BAQEBAQEBAQEHAQFEBAEBAwSEfwKHGic0CQ4BAgEDAQEBAQMCAwEBAQEBAQECAQEGAQEBAQEBBgYCgRmFLzkNhACBHgEBAQEBAQEBAQEBAR0CNVQCAQMjBAsBDQEBNwEPJQImAgIyJQYBDQWCfoIrAzGyGH8zgQGCCQEBBrAfGIEggR4JCQGBEC4Bg1uELgGENIEdhDWCT4FKgQaCLYRYg0aCaIN1hTwHMoIigy8phASHeoEBR1oWGwMHA1kqECsHBC0iBgkWLSUGUQQXFiQJExI+BIFngVEKgQM/Dw4RgkIiAgc2NhlLglsJFQw1BEl2ECoEFBeBEW4FGhUeNxESFw0DCHYdAhEjPAMFAwQ0ChUNCyEFVwNEBkoLAwIaBQMDBIE2BQ0eAhAtJwMDGU0CEBQDOwMDBgMLMQMwV0cMWQNsHxocCTwPDB8CGx4NMgMJAwcFLB1AAwsYDUgRLDUGDhtEAXMHnU2CbQE8LSWBbg5DlkYBrnkHgjGBXqEJGgQvlyuSTy6HRpBIIKgIAgQCBAUCDgiBY4IWMz6DNlIZD44gOINAj3t0AjkCBwEKAQEDCYI5iRIBAQ IronPort-PHdr: A9a23:ViDUjRTNaSgIxZFKTT9G4EQdHNpsovKeAWYlg6HP9ppQJ/3wt523J lfWoO5thQWUA9aT4Kdehu7fo63sHnYN5Z+RvXxRFf4EW0oLk8wLmQwnDsOfT0r9Kf/hdSshG 8peElRi+iLzKh1OFcLzbEHVuCf34yQbBxP/MgR4PKHyHIvThN6wzOe859jYZAAb4Vj1YeZcN hKz/ynYqsREupZoKKs61knsr2BTcutbgEJEd3mUmQrx4Nv1wI97/nZ1mtcMsvBNS777eKJqf fl9N3ELI2s17cvkuFz4QA2D62E1fk4WnxFLUG2npBv6C6vU6THFhLEi2Q6feo71fbQdVz/4/ rt3akW4qhg/Zi8czUyQoMgsk7Jdqjf09Hkdi4SBQJyXGaN7W4fDdM8FGzR8dJpNWyJBRYXsX a0CIPI7FMRnqNnegmITtTa1CCCVCcPiwCZi3kW11ogn7bpwNV7s5VIRJ/4qnWr6h8zILKUXc uaIkKjBlD/bdvJ0iQzXxarneE8Hi6GgZ/FRX9Tuk3kiKT/mgguqhYPfYjPEzflVnEqp3tt8b dKtmT8IqSpYmRKt3v18i7j0nd062Eza/ngoy48lfsOgaxFXQfP0RcgYp2SbLYxwWsQ4XyRyt T0nzqFToZegZ3tiIPUPwhfeb7mKf4eFzEi/EuiLKCp+hHVrdaj5ixvhuUSjy+ipTsCvyx4Kt StKlNDQq2oAnwLe8MmJS/Zxvw+h1D+D2hqV67RsL1o9iKzbLJAs2Pg3kJ8Sul7EBSj4hAP9i 6r+Sw== X-Talos-CUID: 9a23:JHfu2G9ZvDlDvEV06OyVv3I0FfgUdCP+9W3RE3OpFjt1TuOSY1DFrQ== X-Talos-MUID: 9a23:zWAcjgVqQ60yIt3q/CDinW9BM+Yx2uOVLFs0irEoifSibyMlbg== X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.03,250,1694728800"; d="scan'208";a="62757492" Received: from mail-mtaka28.fraunhofer.de ([153.96.1.28]) by mail-edgeF24.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 11:43:10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R4E7SXF8y9N7XuXhAWg7r20Gk8IscehmAaeanOIuKE/4/1z VFAO0QDOXk= IronPort-HdrOrdr: A9a23:4sS34Kj1sgRPnOtVEqjzEqcxHnBQXrUji2hC6mlwRA09TyX4ra 2TdZsgtSMc5Ax6ZJhfo7G90cC7KBu2yXcf2+Us1NmZMzUOwFHHEL1f X-Talos-CUID: 9a23:A78ZVGu0APgybVnfmAGCzAa+6It/T338w1XfGHWbNm83deCQUkGw/5x7xp8= X-Talos-MUID: 9a23:iJDVyAR7qWe9CuvORXS1vQo+MZ5Y6p6NM0stjc44uZDeah1/bmI= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.03,250,1694728800"; d="scan'208";a="135077960" Received: from 153-97-179-127.vm.c.fraunhofer.de (HELO smtp.exch.fraunhofer.de) ([153.97.179.127]) by mail-mtaKA28.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 11:43:09 +0200 Received: from XCH-HYBRID-04.ads.fraunhofer.de (10.225.9.46) by XCH-HYBRID-04.ads.fraunhofer.de (10.225.9.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.27; Wed, 25 Oct 2023 11:43:08 +0200 Received: from DEU01-FR2-obe.outbound.protection.outlook.com (104.47.11.169) by XCH-HYBRID-04.ads.fraunhofer.de (10.225.9.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.27 via Frontend Transport; Wed, 25 Oct 2023 11:43:08 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hzTY+qYKCrJ1Du9XpxOLo5BVp3unINjF6DIACG4E2bhWNXOhWVNKPX3JG92Er2QUIhgMhEzD8r+ketflkrYrGRc/E/vHu8wNRgCNZ35HmAwMeCJNCPEJyLKx+CEeiwFt3cRp3/Goqf4B4LkB8Q956D2tS7+pYRIGsgDKI26aOpe3l2n5zzlXEE0KkEBLBBSTLl94tSnMrDbNJCr5fln2piCo5fNicxNwk0zN+v+Y0h4Zk8zGfBouiOUxbZ34mA/+Z9rQzrCrrAygicDdg0+fvDALWlyLeROVwmSlS9nZsEf9CLG9yEzQJYQnHhslf5NIvE5GNZs1XOA9zkeeCZljFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TM3rWZ37iOm/+kXlAfc2yttJ28JWP9yMUE/Bl4wxnbM=; b=K1NQ63z07pLciFXWK0lHVbwPVoNSCroBLFIyBFn5GU1y2Qix1tlkcIaN84edP4rNTtNxOoTP63P+IdcKGIchmmj5k8i5IbFeUz1lkil3q0mZo1dUWNB0ij5YJjMFqDeLxRNea0ON3RkO0Fff/urLdaKym5oeOiElicJkLp4OEplBIAj+jlO/OihEZlUjgWBi5o5f4NUoaaLJeuokHRhw/1l+ofblssEDsNqcE0fX3enNXrxD4yBOQRHhfCAkfgg62FRvKMiUKBXZIfbtDQD+6ui3Rbko6hYt3ph3e+gkfksFXVLwrR3ywq0/u+j6kq4KCR2jlHzLuL0AemQHLcK16A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aisec.fraunhofer.de; dmarc=pass action=none header.from=aisec.fraunhofer.de; dkim=pass header.d=aisec.fraunhofer.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fraunhofer.onmicrosoft.com; s=selector2-fraunhofer-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TM3rWZ37iOm/+kXlAfc2yttJ28JWP9yMUE/Bl4wxnbM=; b=HujE1mMLvatw66UB4tdfh/n8ZNeGpRAJWo8KMQupEceAQeHebqB0R+cMuV69L7BQ6YPDLEvFCqUpjmKnU4ia1bpqiJ8SBEJGb7NB8DR+IFvW2XeVTKd6RDgR5h9su0GJZYYtPXjz9GjCASBjpR8iYUs7Gztvc59cax3vpK7DHE8= Received: from BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:50::14) by BE0P281MB0116.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19; Wed, 25 Oct 2023 09:43:07 +0000 Received: from BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM ([fe80::7330:78f8:1bf2:2f4d]) by BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM ([fe80::7330:78f8:1bf2:2f4d%5]) with mapi id 15.20.6933.019; Wed, 25 Oct 2023 09:43:07 +0000 From: =?utf-8?q?Michael_Wei=C3=9F?= To: Alexander Mikhalitsyn , Christian Brauner , Alexei Starovoitov , Paul Moore CC: Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Quentin Monnet , Alexander Viro , Miklos Szeredi , Amir Goldstein , "Serge E. Hallyn" , , , , , =?utf-8?q?Michael_Wei=C3=9F?= , Alexander Mikhalitsyn Subject: [RESEND RFC PATCH v2 13/14] bpf: cgroup: Introduce helper cgroup_bpf_current_enabled() Date: Wed, 25 Oct 2023 11:42:23 +0200 Message-Id: <20231025094224.72858-14-michael.weiss@aisec.fraunhofer.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231025094224.72858-1-michael.weiss@aisec.fraunhofer.de> References: <20231025094224.72858-1-michael.weiss@aisec.fraunhofer.de> X-ClientProxiedBy: FR4P281CA0420.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:d0::17) To BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:50::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BEZP281MB2791:EE_|BE0P281MB0116:EE_ X-MS-Office365-Filtering-Correlation-Id: e03c1c06-6d09-4730-cc83-08dbd53ecad0 X-LD-Processed: f930300c-c97d-4019-be03-add650a171c4,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iZ2y04VC63LLTwCwdU8DZ47eWNOLifKQxnujmUKHc+nJn4BDMSR2gCRUvB3j9t8U4LYIhr0dtpk8hmSqo24+AqqIG1rso3y7QkkQLBqdCjvn3AlNIp9owNFSHCofd3zX8Yq9TuBzH2YmFIRxePyPRZLJbylN7zx/7pVtWPd2MZwC3eLSzYRPxHNI8m4wq9bn9txWRb8+5tYGVLMe7MROSPYw8GDTvF0FVurURdZ2TLEUmBnXkITPspU5/X9n7sZZsTdQvJ01SwqrLG2wpYSag15/APv/ZrqH3/zTS6t2AGLaR+PkG++fP0ZNfDdo3LF6J413Eu8eTUXIIc1TNFj3MjaF1L2vqkubZSyG+OZ3aWisvhz+Io77YNByT0pNBw6xw5MLpK9wqby2JKmtWTTi++t8LuPjnUj9Qmj9e9GQwNdSbydkDfbioIzq2mso2Ie7bsS2VloFLl94/KJEirPIhVSFHNVF44ez0rnVvZKlR7SAefv3SUC/W3eOZy4Sz9PVw0PskP51st1/TqdQisb0Mn0e91xFAjGzzpZCYBp4qYwsBgZFSwISz7P0DLXKqFEhjkHQSZBlqmHHWbM+RaI+dcLzRxNoeknbxkh1mmBJiQg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(366004)(346002)(136003)(396003)(376002)(39860400002)(230922051799003)(1800799009)(186009)(64100799003)(451199024)(66946007)(83380400001)(316002)(38100700002)(6486002)(478600001)(6666004)(54906003)(110136005)(66556008)(66476007)(1076003)(52116002)(6506007)(2616005)(6512007)(7416002)(2906002)(86362001)(4326008)(8936002)(82960400001)(8676002)(41300700001)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?zC3wRZvOoYk4ZYwBtcQrxyePSHWw?= =?utf-8?q?n+mDHwxk+3Ho5UrLNfjwVdYc1euoddgiGSYMQHc/LLC+Ix2yg1oagdtmuXDUAYGvx?= =?utf-8?q?4Y7JaCrgP8pFcHDCU096gl6w1lQvIdvrBMUniqy3Mt1p5FxJxlX1pKbaX18JXCgPx?= =?utf-8?q?gaNDWIJI77/TJ891cHgIv2XaM3+EG3/KOcQ06Yxi3RWQB1QQFc4K6PNqmXqyPRBw1?= =?utf-8?q?Ld0HtPSBB15h+8myQxdXId7uxYsorecrzU11XduK8ZmnsLECtVrc/m07Fo/FV5wxA?= =?utf-8?q?mWHRsq8VDG5Zswxk9fy3wPGuuFPdZQpGV5H1yJ8Gp1kESRskoAsGymchCWTnD4ktt?= =?utf-8?q?+I0nMxb1xnWihSHFW9Yf9b3wcu3gQ6P0kgRbS5+gHp8EaIk2jeklnCHn7eVo3g91s?= =?utf-8?q?ZCz67G6qK9S4njjMILEmlnztgsumY2VuotEcoESjeuRuQulw7paaLddL4SIysB0UK?= =?utf-8?q?w8ZPX5m476YqmD8nIuGJYmueXFbFkAIs1+UJgFHf3MjBoHfhy842ua6hUIbj2vFL0?= =?utf-8?q?mDl2nTkuyJZmJm3AGDeRzvV7wDCupoXMILtFHzoPG3VYTQuWXAiLsEi5iIY8TrABp?= =?utf-8?q?qOwntykPQIkXEtDpJ/xX+xx3Nha0N3mGM46jdYM+hXA4zMDc/F+tUiOpMkI0p3qLH?= =?utf-8?q?HOfGtNfFMi+1VJmqTjY7CuG3EfrsNGRnfgsK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HbjQksTWvLf7Yytq/CR6gEgzNxUva44d?= =?utf-8?q?uz8XmqHyMUEm2Q7UOgspyo2wOslYsSI2q35G+iUT3GoJy4RXsZleWc=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: e03c1c06-6d09-4730-cc83-08dbd53ecad0 X-MS-Exchange-CrossTenant-AuthSource: BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2023 09:43:07.1760 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f930300c-c97d-4019-be03-add650a171c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YGBrTQLBBxYvBDOPV23YGMx640pRU+21xc5d9X0e0w9rvkPgrR8oe/7vdwP+S7je6G2gTimxcZgaZaMOJvAGVoWJasj3f40XqUdM3aZTfycXfQdazJYqOPQ2sFeIZQ7D X-MS-Exchange-Transport-CrossTenantHeadersStamped: BE0P281MB0116 X-OriginatorOrg: aisec.fraunhofer.de X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 25 Oct 2023 02:45:58 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780720244028275205 X-GMAIL-MSGID: 1780720244028275205 This helper can be used to check if a cgroup-bpf specific program is active for the current task. Signed-off-by: Michael Weiß Reviewed-by: Alexander Mikhalitsyn --- include/linux/bpf-cgroup.h | 2 ++ kernel/bpf/cgroup.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/include/linux/bpf-cgroup.h b/include/linux/bpf-cgroup.h index 8506690dbb9c..655697c2a620 100644 --- a/include/linux/bpf-cgroup.h +++ b/include/linux/bpf-cgroup.h @@ -184,6 +184,8 @@ static inline bool cgroup_bpf_sock_enabled(struct sock *sk, return array != &bpf_empty_prog_array.hdr; } +bool cgroup_bpf_current_enabled(enum cgroup_bpf_attach_type type); + /* Wrappers for __cgroup_bpf_run_filter_skb() guarded by cgroup_bpf_enabled. */ #define BPF_CGROUP_RUN_PROG_INET_INGRESS(sk, skb) \ ({ \ diff --git a/kernel/bpf/cgroup.c b/kernel/bpf/cgroup.c index 03b3d4492980..19ae3d037db7 100644 --- a/kernel/bpf/cgroup.c +++ b/kernel/bpf/cgroup.c @@ -24,6 +24,20 @@ DEFINE_STATIC_KEY_ARRAY_FALSE(cgroup_bpf_enabled_key, MAX_CGROUP_BPF_ATTACH_TYPE); EXPORT_SYMBOL(cgroup_bpf_enabled_key); +bool cgroup_bpf_current_enabled(enum cgroup_bpf_attach_type type) +{ + struct cgroup *cgrp; + struct bpf_prog_array *array; + + rcu_read_lock(); + cgrp = task_dfl_cgroup(current); + rcu_read_unlock(); + + array = rcu_access_pointer(cgrp->bpf.effective[type]); + return array != &bpf_empty_prog_array.hdr; +} +EXPORT_SYMBOL(cgroup_bpf_current_enabled); + /* __always_inline is necessary to prevent indirect call through run_prog * function pointer. */