Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1548265rwi; Mon, 10 Oct 2022 18:45:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4BNzgET6lFmi5PlkK0/QSEdzeDOiPjeZktJCygz1r12d0YakD82F07wE6W+w6UVmLItSbT X-Received: by 2002:a17:907:75dc:b0:78b:339:63c7 with SMTP id jl28-20020a17090775dc00b0078b033963c7mr16870070ejc.480.1665452723767; Mon, 10 Oct 2022 18:45:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665452723; cv=none; d=google.com; s=arc-20160816; b=qUGAjN2BAJFs8CNba2QtRaBwGZ2c35Cp/PLEIJ+03X69imOGfe7UbygfNmDjzfNH2W 5CM+UUn2sIVeYac0tzmxATGaZsP+/gr5klJavFLdwaRpNSg3VcMgNaqZfXf48Y4bZN+p GtOMeITGshWT2Hb6xetCqtBKp74BK7nnmhXNd48flmLJrl2JbkmY33HW5+Ze/8mIefNV wPLRor8MtdSRwSLmHELBsCDQUQN+78nLaDn1PpTLVHKULLk/Nd+6DcupL6mxkleEWxsT 4my1LpJZZDYcK9goEOnkKu4vTVUaEcJOfbv5XmGSVa3HgL1pIWoArv/4JwwbZt5LkfFC AtZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=b+Yl2DZ+J6gAjW0kiUvsxuGh/xCs2Xbm/tBRea3AtWc=; b=uMEG9wLMJQ/p/s+0J4aXHgZMdy+FwB38DO+oCjfw8rbU9+8mWiKtWcv5bImQNWiXrF ttza4O5c42wz7Xq2hVHAIwW5ahR2URle3crD/dp74ynFG13zuwH/VCOwXZeKLCztfbug Vvu2j8i2L6sheu+sN/zZ7g8uWdHVlPPTxkBACmXnLVWMyFcGMIcnW3bCt9e3JWm8BlD5 iX+jVDawWn9aXw913cmzj3MWAnoo4gqgu1/dbUlFsehyCRZq8ZpauH/ndu1cvepzvdH0 Un6IERdw4oysVrK2pJT0f+uHvW6Pms4/J3+uS4eDddI2dys31pZR0gexlgrhzOFW2jFM /GOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R4yirgRr; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z18-20020a170906241200b00740110c599bsi10170704eja.146.2022.10.10.18.44.57; Mon, 10 Oct 2022 18:45:23 -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=@gmail.com header.s=20210112 header.b=R4yirgRr; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbiJKBhR (ORCPT + 99 others); Mon, 10 Oct 2022 21:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiJKBhP (ORCPT ); Mon, 10 Oct 2022 21:37:15 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C62EE263C; Mon, 10 Oct 2022 18:37:14 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id nb11so28332982ejc.5; Mon, 10 Oct 2022 18:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=b+Yl2DZ+J6gAjW0kiUvsxuGh/xCs2Xbm/tBRea3AtWc=; b=R4yirgRrxViNfYXko3FMHsvyhmv4eskQeQf/KbKB9IAspHNWQ+s+pLbamp4onNRNQN P0k1CE/RZ5CAE1mwjFHTitnNyWs6rwOoXyx+QJUmPQgPGojOg7dzKh7BC0sDW7JvztjY O129kYQB1NccdWkgIL6C11SA35kaR5fnpGjGhib4BVaddc42cAH7rAAhF0/gCGP5/IdL 6DS7AEU+0FZRIqf1F19j3lXMP0jinh1wN3fb0iFvYBZVTYl9fme5lRLpdaxfoTiGA69L UqKDQSr30ztJZyZx97Btv52UtMjcMO9TXqsRHWx6AShdqB4OuzkmnHBRHZfJZ+l5wLZu V1Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=b+Yl2DZ+J6gAjW0kiUvsxuGh/xCs2Xbm/tBRea3AtWc=; b=mOIw5N/aMdsQY7czy464uxTsPfWBhJ5ShdxvR+dBqHUvrgKIC0Tk7Nj25HkKLCpaCr ZzfpJuPb/T9++h08P9FXmmb7XJhBMvGHuS8JN6Z3bZnbAvsna29n9OrEGXdc+on2kfZc iL+LEBNL22EhNCamWd0X9f8B+sCqCVSF/Yeq7i2ylLP9XnGoHnHQHpdRf7ADsTv7xGzY FKhmFB/4uiaW5fO5bh3tYqRNJhuGFYNQTHB2nV0Z+BdyQr/1VYkswKEBejWPfqKHrMck D6Vv1jt5bI3LlbdRoFS2NIZ1jD7+qs6aNjz3y/Q+XbDZgamsI57/dg7mxA+JSZT/m7pe DrfA== X-Gm-Message-State: ACrzQf3pN01WVJlzskIQ9aT1gwwGsAxQkcOCHhre8fWEpRcAvXl9Tq6R BCE1HSwmvWW5KjTu6b3RXofb6u6HFGW51xa33aY= X-Received: by 2002:a17:907:3fa9:b0:782:ed33:df8d with SMTP id hr41-20020a1709073fa900b00782ed33df8dmr17287226ejc.745.1665452233208; Mon, 10 Oct 2022 18:37:13 -0700 (PDT) MIME-Version: 1.0 References: <20221010142553.776550-1-xukuohai@huawei.com> In-Reply-To: <20221010142553.776550-1-xukuohai@huawei.com> From: Andrii Nakryiko Date: Mon, 10 Oct 2022 18:37:00 -0700 Message-ID: Subject: Re: [PATCH bpf v3 0/6] Fix bugs found by ASAN when running selftests To: Xu Kuohai Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Mon, Oct 10, 2022 at 7:08 AM Xu Kuohai wrote: > Thanks for the fixes! I left a few comments in a few patches, please address those. But also please provide a commit message, even if a single line one. Kernel style dictates that the commit message shouldn't be empty. And I think none of these fixes are critical enough to go to bpf tree, please target bpf-next for next revision. Thanks. > v3: > - 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 | 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 | 7 ++- > 6 files changed, 86 insertions(+), 50 deletions(-) > > -- > 2.30.2 >