Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp297176rwi; Sun, 9 Oct 2022 23:49:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5/OK8/xWxpf/IuzJWAJ094rSZQGeBzB2A7hnqDzEUnuXEIsu7arXllM+VX25HO9K2lBLq9 X-Received: by 2002:a17:907:c78e:b0:78d:138a:ec4b with SMTP id tz14-20020a170907c78e00b0078d138aec4bmr13570440ejc.381.1665384585123; Sun, 09 Oct 2022 23:49:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665384585; cv=none; d=google.com; s=arc-20160816; b=PYscIZ0TiYdTG+l4f17jHGd/ZEbClH2xyE+9XYvz6WUNzP5SZ3qnrkZQHUXY/7tTV9 LZvbLSriHyHGXPdxi49oOZTyeRkdZX9IuvKsFHYfJ9fG89O5R9LUy1qBGyp4mk7S357K IlVFnMqBk5BwYKPP/mA49WrvRMfpY4PHczPzLB9UBbmAHjE6Q6xviQFgh/Q9e9TqgL6s Rhx7Z4GQFG1RXoGpMD3HNYBQEzUAHkIfuK6XbuaZMCNB6I+pbgPA59WL/lvL2MMSjmAI JwxW3yxo1NsLJIKj7ThqYnjAuuRqPOzAJKvlAU1CNw946Rh8JYjtV6vL/eCGLvyTH+WR 8rsQ== 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=7+EgBIgDLl2x76vxd4CdaCs9Q+zn7AkuGSOMi7beK+M=; b=gT317SGQBTeKz5DIU+6cfwpdWW4/vVJEAb35HfzsFshQ08ftbqXZ4Ouu+KtGQjTsBA 2JKi2orBAhz4Hp7INnZKFgN3eWLWJCL03jUyfupV4loW7w0A4up+Ub0evSQm8YhNZ8BP uvgqItxaPqD8j4c9Zy7KM/1NWCAXo7CAnrYZzGKvisMaR5iN+hyQs4YtPqFY+CTngPtr cMyUQDmelJEuMZzMgbjOLpJA8qqvVYhxuXgsePkrNmPo0B83wFRTMHkapuGmMPnH8x9U AsrHM9FsNy6yAaYEcf6JRua12oStiZhzDNiE7JK9lpS9B6wLZ1TcjZUJM7MVOvH73TgP tosw== 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 ci19-20020a170906c35300b00777be437681si7936058ejb.984.2022.10.09.23.49.01; Sun, 09 Oct 2022 23:49:45 -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 S231469AbiJJGrI (ORCPT + 99 others); Mon, 10 Oct 2022 02:47:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230486AbiJJGrH (ORCPT ); Mon, 10 Oct 2022 02:47:07 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 174BE5140C; Sun, 9 Oct 2022 23:47:05 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4Mm8Xs5DMVzKG2m; Mon, 10 Oct 2022 14:44:45 +0800 (CST) Received: from k01.huawei.com (unknown [10.67.174.197]) by APP2 (Coremail) with SMTP id Syh0CgDnf9Tiv0NjoL4qAA--.49036S2; Mon, 10 Oct 2022 14:46:59 +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 , Hou Tao , Dmitrii Dolgov <9erthalion6@gmail.com>, Alan Maguire , Kumar Kartikeya Dwivedi , Lorenzo Bianconi Subject: [PATCH bpf v2 0/5] Fix bugs found by ASAN when running selftests Date: Mon, 10 Oct 2022 03:04:49 -0400 Message-Id: <20221010070454.577433-1-xukuohai@huaweicloud.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: Syh0CgDnf9Tiv0NjoL4qAA--.49036S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Jw4fJr18AF1UCw13uw45KFg_yoW3urbEyF 42gr95AFZxGa9xAFWUCan3WrZrC3y5tryfZFsrtFyxJ3Wjkr17CFsYgFWSya48Ww4fJry3 ZFWkX3y0gryYgjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb28YFVCjjxCrM7AC8VAFwI0_Xr0_Wr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwV A0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8IcVCY1x02 67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_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.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 v2: - Rebase and fix conflict v1: https://lore.kernel.org/bpf/20221009131830.395569-1-xukuohai@huaweicloud.com/ Xu Kuohai (5): 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 selftest/bpf: Fix error usage of ASSERT_OK in xdp_adjust_tail.c tools/lib/bpf/btf_dump.c | 47 +++++++++++---- tools/lib/bpf/usdt.c | 59 +++++++++++-------- .../bpf/prog_tests/kprobe_multi_test.c | 17 +++--- .../selftests/bpf/prog_tests/map_kptr.c | 3 +- .../selftests/bpf/prog_tests/tracing_struct.c | 3 +- .../bpf/prog_tests/xdp_adjust_tail.c | 6 +- 6 files changed, 85 insertions(+), 50 deletions(-) -- 2.30.2