Received: by 10.213.65.68 with SMTP id h4csp2151537imn; Sun, 8 Apr 2018 21:02:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx48i8e2gOoyDQCKLQs+PzCAZzNh84p2KAMAlUB/fPlcp0gvrj5WbQVQHkcNiVH0GWeD9JBkr X-Received: by 10.99.143.69 with SMTP id r5mr23918529pgn.159.1523246556950; Sun, 08 Apr 2018 21:02:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523246556; cv=none; d=google.com; s=arc-20160816; b=ZX6CW/5ei+EU1HjS0keuFGHy+dpWEtEGvWz/WdV3ylTABila86zxzWnRAoYvZxEZg+ ALbUg+5OMOPut0lFdAO66jUregY42Gb2kmbQZRLVzUNG2lQVAbTazUtMHkS9jP6rE/6Z N23x/aNTXMClB9vFfmiqXkvImxQRCq/6Wbl6STdMqiJAjUvLeyKf3VsJT8WcpQoTZdjx RW4HWeVTCkSceGtVpKZl+UwGyRPex161JHBT6//wI/yATPzdkgxxD+WvCaWEABarSTUC Jrc1gZ66s0RHS+R4IuwUQkUWyEtKdBW5TD1NeX0gjU63zQN3czK1xQA54OpZy83rNbQf VDyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Pkl8pkHdyzH0S3VMlALYkrb/F2nQ7eANsuzaFWbVHv4=; b=jZXSIYsvLin5vC0dpu8LRx/OdvQgU/ejty0PgppscqQu1f417eIM0zPZK1+shnUMNw hbYI6enXqJFllTLLE9nRT1Ww9/b4o4X67+kePWdi/fPQ8UGSyoxXa+vpKs9f0jSHfedd 0ZlndSoZDVOh4xWKpMlTSJYZA5ogwMNSd3rWfsQBlqOqyHIq/c2ONJR1CJw3SKYxQ836 GtxdGHa65AyGZhvV7BVzXrvG9XdNxEv/QyZEYYXUCpH6jcM3A/sX//gIoFAhVJ3VVLt1 n1XRWNEaNOsS6/Xrfm5ANEMxmDpfRoX5KElBjiv9NBV7/GcpoQodt4hVvIY7gRffBuPc clcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=HfBX9s5x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3-v6si12905614plp.471.2018.04.08.21.01.59; Sun, 08 Apr 2018 21:02:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=HfBX9s5x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754603AbeDID5M (ORCPT + 99 others); Sun, 8 Apr 2018 23:57:12 -0400 Received: from mail-bn3nam01on0092.outbound.protection.outlook.com ([104.47.33.92]:62923 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753723AbeDIASm (ORCPT ); Sun, 8 Apr 2018 20:18:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Pkl8pkHdyzH0S3VMlALYkrb/F2nQ7eANsuzaFWbVHv4=; b=HfBX9s5xyp1UC83r793ixBC6ZdsBval/h9P3n1hDLdxkM+qofboCYVuPvh9aBvuRepJRhBb/xe1vN1TV25JozgDWVCvQLQpc6OETENRqPUG5mY5Wz5qreZmkHx2OX+osJ/zgs3kVrKD0Ypk1VPOayS09We1foElDc5WJkRdwrso= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1128.namprd21.prod.outlook.com (52.132.133.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:18:36 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:18:36 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Alexei Starovoitov , Daniel Borkmann , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 076/189] selftests/bpf: fix test_dev_cgroup Thread-Topic: [PATCH AUTOSEL for 4.15 076/189] selftests/bpf: fix test_dev_cgroup Thread-Index: AQHTz5guhiGpA8wpR0iaHl2RDRsY+g== Date: Mon, 9 Apr 2018 00:17:44 +0000 Message-ID: <20180409001637.162453-76-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1128;7:k8hxp4282cCqzquvQo2yb/CC0NRbxt2OfNt5VkTwnlzAPo7/hO5BnPuUOlGldIdSItdcpL94XqeWAA4+IUlNQRBUFjrBQux2zktgcz2UainuOmwEq5SkR8/XJOb7XTY6sN6UKiEZMX9Xi8+WY+ytzC+UykkFsWuiI1A272YeqsAGCkdUGj0dkyxS5uGvYOIYqbywAOerV4X16qgMNxM8V3ETuAfnEYv6vzCBl0QvlvZj+4hE2FVREz5Y8BFiduJT;20:N4cQjzymbFQcKtUfriy2p2ss7/FJFzX+4bZBCj2pCuLbQ6lwxZOSq0bMAdQbWgoR8kRK3u6OH+sNip7+YBKIY5Pz7ir9gGJMEH6cAM1lO9kHXc70oMSVNJOfobwpKXWuT3Db191UZA/Oy/WIBT6KSdY9tEMbwAR2spFU2CFTXac= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 1eeca884-b364-4d3c-dad0-08d59daf6fb4 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1128; x-ms-traffictypediagnostic: DM5PR2101MB1128: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1128;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1128; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39860400002)(396003)(376002)(366004)(39380400002)(199004)(189003)(66066001)(86362001)(59450400001)(3660700001)(3280700002)(2900100001)(25786009)(36756003)(6506007)(76176011)(2906002)(6486002)(86612001)(99286004)(102836004)(1076002)(7736002)(575784001)(97736004)(2616005)(446003)(486006)(11346002)(476003)(26005)(305945005)(6666003)(6512007)(4326008)(107886003)(478600001)(6436002)(5660300001)(10290500003)(5250100002)(22452003)(316002)(105586002)(186003)(8676002)(110136005)(54906003)(72206003)(53936002)(2501003)(68736007)(14454004)(6116002)(8936002)(3846002)(81156014)(10090500001)(106356001)(81166006)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1128;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: yEAyQbKJ4hESwZ0lGgxhxCCP+iRx/LqOhH4URm0i6mClazyKxlhrLoNkNBSIiNM3u669/WhlkN11QzvaC3+P+9I63kyeIZDDidRUrqU0ED1k78YOyYHb4ksAPVhgWsq6DpZhco06chUS2UiKxV+b6Kwp27kna2dY/I+AHCGR7qiVW9XkMqSbg6usl+v2oLQITsZ+CbvsQ6LBdAK3qsoeYJO0xnzitIVcvR8mhpIjLg1DraLeEeNg1gsAybcxFlJZ6w3BsKXmWp6rrLi8aPrmu7zfnirTTE6pWzl5l71wJlpBb3SbPi4AE4Qn5viXq78Gw4rWr4c2tbyLDItXnZluIbREfupEDDn9aoFWDGle97MhXPV6faU/9DA1ZtCPFRMAh5jWDrNC/fqVLXDRIcmayTPKecfg+XHBVNZkpXhSDFQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1eeca884-b364-4d3c-dad0-08d59daf6fb4 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:44.9300 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1128 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexei Starovoitov [ Upstream commit 8e6875250a1189e0d8db8b05e18abe63c2744521 ] The test incorrectly doing mkdir /mnt/cgroup-test-work-dirtest-bpf-based-device-cgroup instead of mkdir /mnt/cgroup-test-work-dir/test-bpf-based-device-cgroup somehow such mkdir succeeds and new directory appears: /mnt/cgroup-test-work-dir/cgroup-test-work-dirtest-bpf-based-device-cgroup Later cleanup via nftw("/mnt/cgroup-test-work-dir", ...); doesn't walk this directory. "rmdir /mnt/cgroup-test-work-dir" succeeds, but bpf program and dangling cgroup stays in memory. That's a separate issue on a cgroup side. For now fix the test. Fixes: 37f1ba0909df ("selftests/bpf: add a test for device cgroup controlle= r") Signed-off-by: Alexei Starovoitov Signed-off-by: Daniel Borkmann Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/test_dev_cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/test_dev_cgroup.c b/tools/testing/= selftests/bpf/test_dev_cgroup.c index 02c85d6c89b0..070bc3c9a873 100644 --- a/tools/testing/selftests/bpf/test_dev_cgroup.c +++ b/tools/testing/selftests/bpf/test_dev_cgroup.c @@ -19,7 +19,7 @@ =20 #define DEV_CGROUP_PROG "./dev_cgroup.o" =20 -#define TEST_CGROUP "test-bpf-based-device-cgroup/" +#define TEST_CGROUP "/test-bpf-based-device-cgroup/" =20 int main(int argc, char **argv) { --=20 2.15.1