Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3561323iob; Tue, 17 May 2022 02:44:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbcLt0P8PtWXPH4YTfyjUrwXwgTsXD8ZzFkfn0jN0W5NBMN7wTNSeKQEuZ9tAMxCDHlJV/ X-Received: by 2002:a50:9344:0:b0:428:635f:b335 with SMTP id n4-20020a509344000000b00428635fb335mr18008494eda.300.1652780658982; Tue, 17 May 2022 02:44:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652780658; cv=pass; d=google.com; s=arc-20160816; b=rOD8RRYIGsjZCvfUxblCm5tcdT3PYzYR0qoY7i48xyCMUAodNqXe//pxNgNDEZiO2z y6T+DwgDtwUjzI+654f51phwSPe8qUx7hnJKWx2Ri4LTCbZGm96L2kWyvBdN3++MOWmW j/TvCh3FQimPTFKmvmMnuGVv7AUyrubJplj2lXdbSUzDHMN5OpEtFob57cWjmsWk31Mg 4R+3DcbupOdQ/C6/hL7QCj4sjf+Q4ptGWtAw8/W340pJgzU6/cYXaIY47QRnd/IC6haJ reZiYSbqMFXFk3vL79hWPPLsPTq7KpBE0KEV1soCnkTUgDKuo4LfM2gNJhjohXdGkmRw CCdA== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=93ri6eakOu0RPB9xwbjaO5SFABbVtc7/D09Qc3GNRZE=; b=H9v8yzY4ZLS68h34J8k3k2X+8vz1rxggGNzyEbWDRWtnFBA40vIGAZl56EnH5VqMN/ 91y0qbhU1MY9ulmJn0dz9aKfrWBhtcbVQfswV2okd51Hr3LtyICON43+Us+hnDw3L5sg KjqcQWmX3TlX6+oYiF38t3UG7MjUpMPqg8nUAgxI6CuHAOO0mW3hHZup3r1Hoxr575CX mzxqNqmVMtP5eXuHwdgFCyFcQGMPRAMWH1bw/qxuyQgqmJe+j/Vr/QBiHS95KAiGudUb ZtpIoZCFQ3vZxmNdpRiA9mFye9+Xv7uVFXRu4ZDOuGm8UBWgY3oFBb+kr+6VXxCEUzaf Sj4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=IXKgawXQ; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fb.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt22-20020a170907729600b006f3d0d3aa1esi2297472ejc.101.2022.05.17.02.43.52; Tue, 17 May 2022 02:44:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=IXKgawXQ; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234857AbiEQCty (ORCPT + 99 others); Mon, 16 May 2022 22:49:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbiEQCtu (ORCPT ); Mon, 16 May 2022 22:49:50 -0400 Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1D3F34BAF; Mon, 16 May 2022 19:49:49 -0700 (PDT) Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24GIWtJL015641; Mon, 16 May 2022 19:49:29 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=facebook; bh=93ri6eakOu0RPB9xwbjaO5SFABbVtc7/D09Qc3GNRZE=; b=IXKgawXQhh5TFuvJ1cxDjHhIpHXqMr1nFEUxD/2wBkRXU8Q++SpGE5g0e+YfoZ7QgUic 3xyuacqN5MpzUuYEWs9Ua+hyrSfCxvRJmoNVNZRUQOdraIJUybNh3mzUa1Q2oXRy0tCQ zl9JQI0eFcYUYpLZLgGeiH4axvidcx/OZAY= Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2109.outbound.protection.outlook.com [104.47.70.109]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3g28fkekpm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 May 2022 19:49:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XouIWKr/LgPq1IjG/zi0sbb1u7ovL5cJl7KETR4mCgbQ7p7K5yK+oPCDbDMMz+/U52P7wnQGW7Zva6Y3biM7fkqefj3Ob2dnanKgjEqqdpK5CqtQN8T6OIhkNZjQV51xPs3KL+IWJCfV6vWV4pFXarpFtKr9HOX8803koUmu4dKOH1j75uHQ5kMoFxl9jpvsQbnAAvc7V8Vi4bdOG6HTTvYV1lVNlJpWDUPIFQYVBil4E8+LAmvalIL/w54jfvG9WJSx4sSOIHGlK6om4cXpdoyQl1+Y0xaIUwCs47YniK3SGg1Lu/V5G6tTHPziw791qUS5M0xI7JReq2Dn7RCbdw== 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=93ri6eakOu0RPB9xwbjaO5SFABbVtc7/D09Qc3GNRZE=; b=FetYuXtyyMUXA6LOrUlxW58fuvFQED2laEFFS9Ov33UwiCEAZDOcMFd75Q13LZzV8ktcTDPx9CJQs7uZgHyw9HF4GSo4aOqQoPX44LSzxzDIEnZWTug8G4zp6TFvFxybxrJVaWcSzikOqUFdg31U3sYyr4/3rtQ7sBV84VYO0CLQkCKBrri1Ds8IcZ3XbJu+/Fy0wLeSsJf0G6AWbjxyA2JoygxcUPsQZGTn4fEo1DDe/4R/8CwkWMxznQiJ4NWcDFIzfZTcvsSn8H+HOr4MZVVi1Ude7snMP2Q3qZsapUu0MvMyj/IwZTMnrWNDfWma9A4Z0CCMTBHb2GSUk+4BMQ== 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 Received: from SN6PR1501MB2064.namprd15.prod.outlook.com (2603:10b6:805:d::27) by MWHPR15MB1455.namprd15.prod.outlook.com (2603:10b6:300:bc::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.18; Tue, 17 May 2022 02:49:26 +0000 Received: from SN6PR1501MB2064.namprd15.prod.outlook.com ([fe80::5811:4996:bbfd:3c53]) by SN6PR1501MB2064.namprd15.prod.outlook.com ([fe80::5811:4996:bbfd:3c53%7]) with mapi id 15.20.5250.018; Tue, 17 May 2022 02:49:26 +0000 Message-ID: <9560ec84-9b05-63f9-0090-590c0f1bd6c1@fb.com> Date: Mon, 16 May 2022 19:49:23 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH bpf-next] selftests/bpf: Add missing trampoline program type to trampoline_count test Content-Language: en-US To: Yuntao Wang , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: Martin KaFai Lau , Song Liu , John Fastabend , KP Singh , Shuah Khan , Yucong Sun , =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , Kui-Feng Lee , Jiri Olsa , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20220515063120.526063-1-ytcoode@gmail.com> From: Yonghong Song In-Reply-To: <20220515063120.526063-1-ytcoode@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY3PR10CA0014.namprd10.prod.outlook.com (2603:10b6:a03:255::19) To SN6PR1501MB2064.namprd15.prod.outlook.com (2603:10b6:805:d::27) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 43fefa57-251b-4598-17e5-08da37afdb0a X-MS-TrafficTypeDiagnostic: MWHPR15MB1455:EE_ X-Microsoft-Antispam-PRVS: X-FB-Source: Internal X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Rfy3zHFDH9OcVHkprFiuqximNHzSqkNtSIs6jUigEVJyAWtUD/yZz3ReVTfBra7ELukRi83rHIrDXrB6k7m54UzIA6suhrqckV4PPGWd+/O7EFn9gQyDFw3FHxGS6qvSrp+pb+ztWxRlim7gOzfWNoeyaZyXU/MiNKB3p06E1WNywicNy5+yEJzDzIQFM6QqU2DELOhBTjhpb9JPiESjxzGof/OenhvlPa56lmkTUvzX+8HOJWzp0LZLHlSFnK+g1qmo64bkc2J3FAU+4UP53LMWZHx9S3QeweItR7dRWeT1vBQcOtxjEof+UNS7tQNVbgjouacPrEt8CPhmrTqc7x7pXRLHu4hCO9X1KEPbCJt3zSw2y+BqIvqsVlZjLIQE4rVZ1ClvbrWmVRt1GCS7tFEeQkHCFFkZoUN1SZN6asuVLBzCLD+y3rz02Of9HlFEz1HxPAM3sb/YYmIX7jP4V+ZiwzIGMtcUzFD8aFQuBPHcR4JfUBxwKR7PROAVu2jXnmQhCJUJRKP4/GLJ80x+s71wnWlAQEf5gylTvF2NqwXJVZml/W3ARpPmOG0jYXAWA9v9MiEVhe4Tf6IdXdqmqjTbgWiOqsle+MOpR3uizQ3dayY7CG0QsZIFYFf0JTuEntpM4KG8SCIfdxclXpHiB8Weycx+HmvaQA6m/hhHFGfxRVE9Usq+ZEbACyVhbknzNM04WuQs9iJOe6v/O+P3sBgN+e4laGvZ9YTUNJlAvYQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR1501MB2064.namprd15.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(36756003)(83380400001)(31686004)(54906003)(6512007)(6666004)(316002)(2616005)(6506007)(2906002)(6486002)(110136005)(53546011)(508600001)(8936002)(31696002)(66556008)(8676002)(66476007)(66946007)(86362001)(4326008)(186003)(7416002)(4744005)(38100700002)(5660300002)(52116002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eG1Lak9FVjBKMHliTnl1VWxoYitzcXJqc1oxVkRMd2lDQzdJVjErbllmOXFo?= =?utf-8?B?dXp6MFZoY2VjTGY1Mk1tdE40UHJPbHBtWTJPMGt0UEpRMGVFM0tTdmo1a01W?= =?utf-8?B?blRGOUkvS0M2YXhpTTFEYlJRNllhV0RzRU1VQVBLODkxVTFYTzRxU3dzbW42?= =?utf-8?B?VEJqaHg2bENIZGMzd2VHV1dqKy82eHJlVXB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VRzeVlMeHhDOTdVYlA0SmNHVVJtU1Q2dGhqL2VzNnpoRWY2TkZQ?= =?utf-8?B?TXZvNkFmakVVbTRzN2t6ZVJYS0pNL3BQWjJvSktwRUdaNzBtYTBPSWdQQUF4?= =?utf-8?B?Z21QTWRMMU04V3JMek10YldaQmpNOWtCSmZSTnBTY3Z5WVRlV2srWHFXNjF0?= =?utf-8?B?VnU5MzdEYXdEOW5odVNpeVZicGdqdkN5eGh3QW5iUUttZ3dQTU92QmZFbmlH?= =?utf-8?B?SDc2QTFXTzdlSXR6QTQwZ001akk5ZkNGSUE2T1BKU2UwdzJQbVZ5UzlCbVdI?= =?utf-8?B?MFphOTV1cWZHL2h1dG1HbXBtaGU4SDJSU3Y2Y2RnellWbWk3VjZIMGZpSjJp?= =?utf-8?Q?LhtBFegY0Izw9u3c=3D?= X-OriginatorOrg: fb.com X-MS-Exchange-CrossTenant-Network-Message-Id: 43fefa57-251b-4598-17e5-08da37afdb0a X-MS-Exchange-CrossTenant-AuthSource: SN6PR1501MB2064.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2022 02:49:26.2053 (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: FLfUxW1V1kUwUsTkpswKFaKjdBKeGrE85RNAbS80abuhcZ8O9uheH62JUQOiXkEd X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR15MB1455 X-Proofpoint-ORIG-GUID: UcG00h_rySRnLv_2IqQCd1tRENggZBjG X-Proofpoint-GUID: UcG00h_rySRnLv_2IqQCd1tRENggZBjG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-16_16,2022-05-16_02,2022-02-23_01 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/14/22 11:31 PM, Yuntao Wang wrote: > Currently the trampoline_count test doesn't include any fmod_ret bpf > programs, fix it to make the test cover all possible trampoline program > types. > > Since fmod_ret bpf programs can't be attached to __set_task_comm function, > as it's neither whitelisted for error injection nor a security hook, change > it to bpf_modify_return_test. > > This patch also does some other cleanups such as removing duplicate code, > dropping inconsistent comments, etc. > > Signed-off-by: Yuntao Wang Acked-by: Yonghong Song