Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2086487rwi; Tue, 11 Oct 2022 04:47:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Mud1UaMxEuXRKJk7c2oGNlPF3I1URq0QuIOeFWyew115pQjuEfAiCWwGZgwckINzbgU+p X-Received: by 2002:a17:90b:3588:b0:20b:590:46a2 with SMTP id mm8-20020a17090b358800b0020b059046a2mr26178609pjb.14.1665488878207; Tue, 11 Oct 2022 04:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665488878; cv=none; d=google.com; s=arc-20160816; b=qdnxb0ZEU1rF7BGWDv4iXtakRlu0lSv/bS6UXCnUTxUklvAoi+dO7NR/S+9VmHVw4W oucKM3gQBtbCYlWF8ld3OwqTfVjLk1ZOOUASNAi+IO3glmKeyvseGhRrUcZaGRBzCI+D 1TY6dQ2l7kMoy1M6qdHqiVI4duy7YAuBgZPs868UVZLp+kCvNoTmN80fjk47f9WQSGa1 2tk8gOUqkymabPONLkKUE7VdAHk059w9+2wkyyS1gHyoz+yTARYCBT/17qnxMzhE7JO8 lVHzztqPj1Tzl2TKmB59KtSaeDhwE50b44c40FNcacrp/QIhzG58N/gmz3+tZwi+v/4c /rqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=PsFMD0WiSkgv9MQo47Wi/v7tAcVLu2rMkE0SB1/jpwQ=; b=nxBNM5h7XVKSMfFAkBM1T3kerOzN6Uhb7+ExCB8jMNwX8JY6frSvPAUZTeCVzgQmHe Dye6njIWhx8Wi5Q9p7qoX577mYljNhB4w/C11TYORqN7tRGQv9qYvCcjJInXC46EqvHi HeBuvLBTRcfq7U8NDT5XA7Sc8SXO38drsm0glTbgpXCxIu/oSxkLYyl8y8nGMOe1bd34 uyjXQCKNoYVnAFH9Qy1dvGx20xKRIU5p56g4sofHN6OwS717fPJLRZYCxiFnpQJmzvUE Qgtf7ekBCU+CrlXrUCRLn7fYvf7MntylRH/ZT4WR0+a9Ps94CaSObaOFaawLM6IPMgGi EXgQ== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a17090a4f8100b0020a95eb3d4fsi14471353pjh.128.2022.10.11.04.47.46; Tue, 11 Oct 2022 04:47:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbiJKLna (ORCPT + 99 others); Tue, 11 Oct 2022 07:43:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbiJKLn2 (ORCPT ); Tue, 11 Oct 2022 07:43:28 -0400 Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1722A7C32E; Tue, 11 Oct 2022 04:43:26 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4Mmv4N2Hgyz6Pq8D; Tue, 11 Oct 2022 19:41:08 +0800 (CST) Received: from k01.huawei.com (unknown [10.67.174.197]) by APP2 (Coremail) with SMTP id Syh0CgBX8NTXVkVj5HNpAA--.32480S2; Tue, 11 Oct 2022 19:43:20 +0800 (CST) From: Xu Kuohai To: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan , "David S . Miller" , Jakub Kicinski , Jesper Dangaard Brouer , Kumar Kartikeya Dwivedi , Alan Maguire , Delyan Kratunov , Lorenzo Bianconi Subject: [PATCH bpf-next v4 0/6] Fix bugs found by ASAN when running selftests Date: Tue, 11 Oct 2022 08:01:02 -0400 Message-Id: <20221011120108.782373-1-xukuohai@huaweicloud.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: Syh0CgBX8NTXVkVj5HNpAA--.32480S2 X-Coremail-Antispam: 1UD129KBjvJXoW7uFyfJr4DKF4ktFy5ZFW3Awb_yoW8JFWkpF 1xCws0gryS9r1avF4fXFy293yrta1kXw15Za1Iyw13CrsrJay8uF4Igw4fu3Z0grWkWw15 Zw17KF95C34UZ37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26ryj6rWUM7CY07I20VC2zVCF04k2 6cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4 vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7Cj xVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I 0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40E x7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x 0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1l42xK82IY c2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s 026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r4a6rW5MIIYrxkI7VAKI48JMIIF 0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0x vE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2 jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07UZ18PUUUUU= X-CM-SenderInfo: 50xn30hkdlqx5xdzvxpfor3voofrz/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,SPF_NONE autolearn=no 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 From: Xu Kuohai This series fixes bugs found by ASAN when running bpf selftests on arm64. v4: - Address Andrii's suggestions v3: https://lore.kernel.org/bpf/5311e154-c2d4-91a5-ccb8-f5adede579ed@huawei.com - Fix error failure of case test_xdp_adjust_tail_grow exposed by this series v2: https://lore.kernel.org/bpf/20221010070454.577433-1-xukuohai@huaweicloud.com - Rebase and fix conflict v1: https://lore.kernel.org/bpf/20221009131830.395569-1-xukuohai@huaweicloud.com Xu Kuohai (6): libbpf: Fix use-after-free in btf_dump_name_dups libbpf: Fix memory leak in parse_usdt_arg() selftests/bpf: Fix memory leak caused by not destroying skeleton selftest/bpf: Fix memory leak in kprobe_multi_test selftests/bpf: Fix error failure of case test_xdp_adjust_tail_grow selftest/bpf: Fix error usage of ASSERT_OK in xdp_adjust_tail.c tools/lib/bpf/btf_dump.c | 30 +++++++++++++++++-- tools/lib/bpf/usdt.c | 11 +++---- .../bpf/prog_tests/kprobe_multi_test.c | 26 ++++++++-------- .../selftests/bpf/prog_tests/map_kptr.c | 3 +- .../selftests/bpf/prog_tests/tracing_struct.c | 3 +- .../bpf/prog_tests/xdp_adjust_tail.c | 7 +++-- 6 files changed, 53 insertions(+), 27 deletions(-) -- 2.30.2