Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp519569ybl; Tue, 7 Jan 2020 10:08:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzqg05UsVGqABRUb37mXkdMANioWsvzYMt+HA2EdW4g58xwS29XT0my66cKOXQUWkEqCEA5 X-Received: by 2002:a05:6830:2053:: with SMTP id f19mr1015964otp.193.1578420514551; Tue, 07 Jan 2020 10:08:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578420514; cv=pass; d=google.com; s=arc-20160816; b=uLLwRNPUyvqOPJVanAY5H4fwb/JptNAZYurHmVTpbltWmNZqwC+hB8/eg+vVaybmHN YqRfjniwDFJQfnbkKvaEjA3qFwJXLDoWlLXb8fWTOjEC+0nRyzdnNk6nEBEZxAzsFZHI RzYeJnmJEN1dv0vukeVwWLDsL8i6WRzTjnvHfd1IxXcstARAgbZak+89l/v0sjId7xPZ 1rZFn86uGPEfPv8xQUX0UNM+OiC72C47UjbPeiB2uv8p24xayoBsmuOzFe2ufeXUkeVd z7dysGB8Ddf81hKmn5Fd4vEcYxWBxiq9JrPWhNvyIkEtYtZraabtLqsnFp2u1js9CzFs dxxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=qfDk0lQY3SnoK3Kq1BN4ddSOgSvUNi+U/l7oms2sw9w=; b=Y1nkJPM+cLu48Aq+BeW//2AAyhfDXxPt0hUV1e6/oSLKCKkbas8zKONMRDVk41uS6h uasqKpNacULPC4fVIdS0EuBewFPtbgTcXWy8PQQUVtvN/qcXt8pmsqfp55OQXJTp2V3Z 2bHbKko9fzSJRVGj+9h4fJX7+l0VPKvHWAx7SnUKLeOWRJm7ko2Jaitx3/kDWVPn6xFl iOeYtrsmsCKRV+XEDHDF19piQW3mM3/T5qgIAAjVsePiQLQblhdDRcIWI6jz6fOzEN1g FkLbsQtR+A6wPtgx3utXMQAbBt7Jk/cbdXjyV2AWpJPp9ueqTthG+We8NMxfK+s84ABh kfjg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=STlZuwth; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=NAvhEad+; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); 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=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k37si334852otk.89.2020.01.07.10.08.21; Tue, 07 Jan 2020 10:08:34 -0800 (PST) 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=@fb.com header.s=facebook header.b=STlZuwth; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=NAvhEad+; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); 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=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728583AbgAGSHA (ORCPT + 99 others); Tue, 7 Jan 2020 13:07:00 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:43438 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbgAGSG7 (ORCPT ); Tue, 7 Jan 2020 13:06:59 -0500 Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 007I5gGo022263; Tue, 7 Jan 2020 10:06:38 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=qfDk0lQY3SnoK3Kq1BN4ddSOgSvUNi+U/l7oms2sw9w=; b=STlZuwthY9dOeBs5xOjZ4ddJ+hM1tz3jHU3v2c+vO7orpO+OtPAZDfXszb/RFIL0b/Mv TkWkJiV8m77sxz3FnzkHRnvxa6HELArYOUW9YLW+jw+1TVHXSCNkpXBXdvShMeZmA6tT adzjMTWElOPD2vJyGbWWcPyM4rVQoiDd4r4= Received: from mail.thefacebook.com (mailout.thefacebook.com [199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2xbb4vmx2r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 07 Jan 2020 10:06:38 -0800 Received: from prn-hub06.TheFacebook.com (2620:10d:c081:35::130) by prn-hub05.TheFacebook.com (2620:10d:c081:35::129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5; Tue, 7 Jan 2020 10:06:37 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5 via Frontend Transport; Tue, 7 Jan 2020 10:06:37 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jkl5pWa7JQiP7fYlciDQI2RiK0aZxumbCHvp73R/+spIoHbF/SCjvIi9WxR1zDAmeAF9uC5bVfMJGjk8QMLH4Rnd22zty4Epb583KHDcp8O5SNbv6q2AUiwcCix51admezDTbo9IMwxRPi8AIeoKyjzFQNO+aIL2/Q6j1RRbzKxa/8MpX9dXLNJQGsAer6Q9D3vppfZkdnNMxX04aiESiljtC0oVy1JwHriydoR0ewCRNZJVRnQE10OYMPWjSuNOOv/U2Nbu/HsxzvLGUw7F+rRFaJe0Ps5gaQe+oW2HKnf/QuxJykiW39bdDsnlxsm11VCqbKZNILEw54f+FCID0w== 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-SenderADCheck; bh=qfDk0lQY3SnoK3Kq1BN4ddSOgSvUNi+U/l7oms2sw9w=; b=BFNAbWCuqxT4lruwJO95ttg33eTJsLauYF/4AUKkU46RxV0GczZeF4fdsoKoj+XmUfvh1AQF4BZjQfvSOfUrlmzP3rsJq/Yo/DvO8y7JCrZ7qfZKAWLX571CdfTxRUztlzmQ3YXdaxSyY8dyMLu/2tmCqUqZMKcWOA+5++kZokABWPH56qFGHJh3ZxcJ4XfQuCRObq0ETv1UfJ6gm4/Ozm3bh2coLKyU1sVvWYssjXde+2C3pX8bhhWYdzW3Vb8Xb0x+w0jlHFGuNtIoj6nW/PrushBHhUeK2S1I+56AYTvxyPI6nhfuJ74f+VrcrxER8eFXb0K/0t1K9bQKAAZTDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fb.com; dmarc=pass action=none header.from=fb.com; dkim=pass header.d=fb.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector2-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qfDk0lQY3SnoK3Kq1BN4ddSOgSvUNi+U/l7oms2sw9w=; b=NAvhEad+4mVJ8vqR+QkzHNtSL4OHgU8+rOeloY63afm5z7v6NB/Ce3LTmDAjng9dE+nryHUiVm0Dah9Vb15/CSSjoDs0uuL3pFTNEUP6QJnwcB/X6iYL4ZAvgwe0naJUTrVvsQT5sPZ6jbXdMuCrmYAk+Lkwg59xr8zZ8JFBsSs= Received: from DM5PR15MB1675.namprd15.prod.outlook.com (10.175.107.145) by DM5PR15MB1179.namprd15.prod.outlook.com (10.173.215.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Tue, 7 Jan 2020 18:06:36 +0000 Received: from DM5PR15MB1675.namprd15.prod.outlook.com ([fe80::1cbf:c518:3a4d:291b]) by DM5PR15MB1675.namprd15.prod.outlook.com ([fe80::1cbf:c518:3a4d:291b%11]) with mapi id 15.20.2602.016; Tue, 7 Jan 2020 18:06:36 +0000 Received: from macbook-pro-52.dhcp.thefacebook.com (2620:10d:c090:200::1:2af9) by CO2PR05CA0104.namprd05.prod.outlook.com (2603:10b6:104:1::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.4 via Frontend Transport; Tue, 7 Jan 2020 18:06:34 +0000 From: Yonghong Song To: Brian Vazquez CC: Brian Vazquez , Alexei Starovoitov , Daniel Borkmann , "David S . Miller" , Stanislav Fomichev , Petar Penkov , Willem de Bruijn , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" Subject: Re: [PATCH v3 bpf-next 02/11] bpf: add generic support for lookup and lookup_and_delete batch ops Thread-Topic: [PATCH v3 bpf-next 02/11] bpf: add generic support for lookup and lookup_and_delete batch ops Thread-Index: AQHVsHMkVh4m3HefgkGiZrFDkJ92tKe3zdyAgCceqACAALz4gA== Date: Tue, 7 Jan 2020 18:06:35 +0000 Message-ID: <19539914-f405-456d-37c5-fa25e0c672e4@fb.com> References: <20191211223344.165549-1-brianvv@google.com> <20191211223344.165549-3-brianvv@google.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CO2PR05CA0104.namprd05.prod.outlook.com (2603:10b6:104:1::30) To DM5PR15MB1675.namprd15.prod.outlook.com (2603:10b6:3:11f::17) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:200::1:2af9] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: be6fbe75-d107-44d4-aa76-08d7939c55b3 x-ms-traffictypediagnostic: DM5PR15MB1179: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 027578BB13 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(366004)(396003)(39860400002)(346002)(136003)(199004)(189003)(54906003)(316002)(2616005)(6916009)(2906002)(66946007)(4326008)(6512007)(66556008)(66446008)(66476007)(64756008)(8936002)(86362001)(71200400001)(53546011)(7416002)(6506007)(36756003)(186003)(6486002)(81156014)(16526019)(31686004)(8676002)(478600001)(5660300002)(52116002)(31696002)(81166006)(41533002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1179;H:DM5PR15MB1675.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LNOiPgeTLl2sHfwzgO0cyQ5a88k6TdGCGVTDnX2bGRZp1vvGRI07mp4EQ4JdwwEHFEyQ4T9kVCygmc0yNCuwvoDQ0SEQzoEiFy8v5MtdKWoVEsbMo8htilHAJXJDAp8IpKZ7Ef4YY86vQImTa0OtChSlelQebH29Csx7yJ79vciMlCUT+MTL2q+lRJ0eNsURjzO7P58F3ekrtI0xExK2WNAuBU3+6WRkAi0ohWOamxFdQR3zbrjlTYiunFexbaskOx4LARwtGfnf5Y2DBCjbKQjKrxjw/D361eEanQdO9EL+3f2iOlRYHSYcvuMjd4LJoZ9WvhDX7ZN4m8pbbsaB04hUgvjqMgpfIcw0N5u+VUNbicfos5w87Mv+akRb9kkLFhYs/r8sV44af78BmfGXZQ6d0khUOwjZSJ1v6c2XdAtbENQ5NgjcnmeWFf0QUjtRcV77xCcqn1QY/f3V9xT8hlTPJoOxlrHV3wAIzWP20nMYZ2EbguyZ0USLkAizcqwQ x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <8979D0B1A5A8364A90804B6E4596FBBE@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: be6fbe75-d107-44d4-aa76-08d7939c55b3 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2020 18:06:35.9882 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8mxu0cL6TrzZWtB2M9JKCs/toEeWyKqLN2NCDrQVcefXl8I8zyMre1+bq/i8tDyo X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1179 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-07_06:2020-01-07,2020-01-07 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 phishscore=0 spamscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 suspectscore=0 clxscore=1015 impostorscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001070143 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDEvNi8yMCAxMDo1MCBQ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gICAgICAgICAgICAgICogTlVMTCB0byBzdGFydCBmcm9tIGJlZ2lubmluZw0K Pj4+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKi8NCj4+PiAg ICAgICAgICAgIF9fYWxpZ25lZF91NjQgICBvdXRfYmF0Y2g7ICAgICAgLyogb3V0cHV0OiBuZXh0 IHN0YXJ0IGJhdGNoICovDQo+Pj4gICAgICAgICAgICBfX2FsaWduZWRfdTY0ICAga2V5czsNCj4+ PiAgICAgICAgICAgIF9fYWxpZ25lZF91NjQgICB2YWx1ZXM7DQo+Pj4gICAgICAgICAgICBfX3Uz MiAgICAgICAgICAgY291bnQ7ICAgICAgICAgIC8qIGlucHV0L291dHB1dDoNCj4+PiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICogaW5wdXQ6ICMgb2Yga2V5L3Zh bHVlDQo+Pj4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqIGVs ZW1lbnRzDQo+Pj4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAq IG91dHB1dDogIyBvZiBmaWxsZWQgZWxlbWVudHMNCj4+PiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICovDQo+Pj4gICAgICAgICAgICBfX3UzMiAgICAgICAgICAg bWFwX2ZkOw0KPj4+ICAgICAgICAgICAgX191NjQgICAgICAgICAgIGVsZW1fZmxhZ3M7DQo+Pj4g ICAgICAgICAgICBfX3U2NCAgICAgICAgICAgZmxhZ3M7DQo+Pj4gICAgIH0gYmF0Y2g7DQo+Pj4N Cj4+PiBpbl9iYXRjaC9vdXRfYmF0Y2ggYXJlIG9wYXF1ZSB2YWx1ZXMgdXNlIHRvIGNvbW11bmlj YXRlIGJldHdlZW4NCj4+PiB1c2VyL2tlcm5lbCBzcGFjZSwgaW5fYmF0Y2gvb3V0X2JhdGNoIG11 c3QgYmUgb2Yga2V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dWJhdGNoKSB7DQo+Pj4gKyAgICAgICAgICAgICBwcmV2X2tl eSA9IE5VTEw7DQo+Pj4gKyAgICAgICAgICAgICBmaXJzdF9rZXkgPSB0cnVlOw0KPj4+ICsgICAg IH0NCj4+PiArDQo+Pj4gKyAgICAgZm9yIChjcCA9IDA7IGNwIDwgbWF4X2NvdW50Oykgew0KPj4+ ICsgICAgICAgICAgICAgaWYgKGNwIHx8IGZpcnN0X2tleSkgew0KPj4+ICsgICAgICAgICAgICAg ICAgICAgICByY3VfcmVhZF9sb2NrKCk7DQo+Pj4gKyAgICAgICAgICAgICAgICAgICAgIGVyciA9 IG1hcC0+b3BzLT5tYXBfZ2V0X25leHRfa2V5KG1hcCwgcHJldl9rZXksIGtleSk7DQo+Pj4gKyAg ICAgICAgICAgICAgICAgICAgIHJjdV9yZWFkX3VubG9jaygpOw0KPj4+ICsgICAgICAgICAgICAg ICAgICAgICBpZiAoZXJyKQ0KPj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFr Ow0KPj4+ICsgICAgICAgICAgICAgfQ0KPj4+ICsgICAgICAgICAgICAgZXJyID0gYnBmX21hcF9j b3B5X3ZhbHVlKG1hcCwga2V5LCB2YWx1ZSwNCj4+PiArICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICBhdHRyLT5iYXRjaC5lbGVtX2ZsYWdzLCBkb19kZWxldGUpOw0KPj4+ICsN Cj4+PiArICAgICAgICAgICAgIGlmIChlcnIgPT0gLUVOT0VOVCkgew0KPj4+ICsgICAgICAgICAg ICAgICAgICAgICBpZiAocmV0cnkpIHsNCj4+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAg ICByZXRyeS0tOw0KPj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlOw0K Pj4+ICsgICAgICAgICAgICAgICAgICAgICB9DQo+Pj4gKyAgICAgICAgICAgICAgICAgICAgIGVy ciA9IC1FSU5UUjsNCj4+PiArICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQo+Pj4gKyAgICAg ICAgICAgICB9DQo+Pj4gKw0KPj4+ICsgICAgICAgICAgICAgaWYgKGVycikNCj4+PiArICAgICAg ICAgICAgICAgICAgICAgZ290byBmcmVlX2J1ZjsNCj4+PiArDQo+Pj4gKyAgICAgICAgICAgICBp ZiAoY29weV90b191c2VyKGtleXMgKyBjcCAqIG1hcC0+a2V5X3NpemUsIGtleSwNCj4+PiArICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFwLT5rZXlfc2l6ZSkpIHsNCj4+PiArICAgICAg ICAgICAgICAgICAgICAgZXJyID0gLUVGQVVMVDsNCj4+PiArICAgICAgICAgICAgICAgICAgICAg Z290byBmcmVlX2J1ZjsNCj4+PiArICAgICAgICAgICAgIH0NCj4+PiArICAgICAgICAgICAgIGlm IChjb3B5X3RvX3VzZXIodmFsdWVzICsgY3AgKiB2YWx1ZV9zaXplLCB2YWx1ZSwgdmFsdWVfc2l6 ZSkpIHsNCj4+PiArICAgICAgICAgICAgICAgICAgICAgZXJyID0gLUVGQVVMVDsNCj4+PiArICAg ICAgICAgICAgICAgICAgICAgZ290byBmcmVlX2J1ZjsNCj4+PiArICAgICAgICAgICAgIH0NCj4+ PiArDQo+Pj4gKyAgICAgICAgICAgICBwcmV2X2tleSA9IGtleTsNCj4+PiArICAgICAgICAgICAg IHJldHJ5ID0gTUFQX0xPT0tVUF9SRVRSSUVTOw0KPj4+ICsgICAgICAgICAgICAgY3ArKzsNCj4+ PiArICAgICB9DQo+Pj4gKw0KPj4+ICsgICAgIGlmICghZXJyKSB7DQo+Pj4gKyAgICAgICAgICAg ICByY3VfcmVhZF9sb2NrKCk7DQo+Pj4gKyAgICAgICAgICAgICBlcnIgPSBtYXAtPm9wcy0+bWFw X2dldF9uZXh0X2tleShtYXAsIHByZXZfa2V5LCBrZXkpOw0KPj4+ICsgICAgICAgICAgICAgcmN1 X3JlYWRfdW5sb2NrKCk7DQo+Pj4gKyAgICAg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