Message ID | 20221018145135.932240-1-yebin@huaweicloud.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1992247wrs; Tue, 18 Oct 2022 07:31:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM52QVNFRPhVfcZo9o3NRnTbSAtCXRgWwcV1rXeJdIyTl3vIVygl1iFuMd/2B43XBW8sEGC1 X-Received: by 2002:a63:1353:0:b0:457:3e87:7883 with SMTP id 19-20020a631353000000b004573e877883mr2848811pgt.172.1666103471662; Tue, 18 Oct 2022 07:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666103471; cv=none; d=google.com; s=arc-20160816; b=fp4bC1J7qG57NMDckuyJyB3pIzGpKswPUF1fUF9uY9S009YqcUVd/4NJy8KWo+EAWx NSWg5QSdxd+q//MO7y+w2G1Lg+fAuO86dUeT8fyKojGe6XI5Ri+cPuzk/+C2zx7V0NMn cmc0BdTQBd01lPG7vasGN6zQUaxQ87vIKU8m6y30EJuphnWR6JwAAbjPXJI4rt2Kdz/d uHRnBowCHTtJm2ov2AFKISIrwkhTX5Cur5+YpVGlYmCSp0DqTemnzIQSaezQ2zwT1PvW l/uKDrx+xWo/2nSudC+u490z8NyvtP9wDij3rRji4crVx67MMcpkX/0NjCshzIIMwPhC Bdtg== 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=DpML26XhUzWFji/Lxb/z1YB3x9H0QqN8v5fZAAegqeU=; b=vN7QHeibPukuDgUQjwpZggsgAdvk3EMPkEOSN6XVvmhUGPZRnONzhIklVvhZY6YUsw QgSqkJVrREWUOhi0WiNre0oN0G7bghOFJkApIcHqKdohhegnTGjMs/o/kLY3okIngE/t T79m5jPwUwG4fvPT7P2cLil+JXhsrQssQJZWzv41WJMBdSlpvelwSiJMfUhdhu41yH7k gGZqC8h1MHme++e+OOX1Pnl1YHDTkJJswFMKAUjtnZeXU+DNf2uuNB3vAeBWnEliJWgM Y3ZAHnStcM9RtL1G6z1qNUatB3pwAi1H9iiVKuBaK99KthO2aQuyoIXQwH24EX+E5rKA txbQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 194-20020a6300cb000000b00457dced8b7dsi13636571pga.588.2022.10.18.07.30.57; Tue, 18 Oct 2022 07:31:11 -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 S230250AbiJRO3t (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Tue, 18 Oct 2022 10:29:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231508AbiJRO3m (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Oct 2022 10:29:42 -0400 Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A7E762C5; Tue, 18 Oct 2022 07:29:39 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4MsGQs59Wtz6PFGM; Tue, 18 Oct 2022 22:27:17 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.127.227]) by APP4 (Coremail) with SMTP id gCh0CgBHWTBRuE5jkSo6AA--.18765S4; Tue, 18 Oct 2022 22:29:38 +0800 (CST) From: Ye Bin <yebin@huaweicloud.com> To: axboe@kernel.dk, rostedt@goodmis.org, mhiramat@kernel.org, linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, yebin@huaweicloud.com Subject: [PATCH v2 0/3] fix possible memleak in '__blk_trace_remove' Date: Tue, 18 Oct 2022 22:51:32 +0800 Message-Id: <20221018145135.932240-1-yebin@huaweicloud.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgBHWTBRuE5jkSo6AA--.18765S4 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUU5_7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Jr0_Jr4l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87 Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE 6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv67AKxVWUJVW8JwAm72 CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7 MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr 0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0E wIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJV W8JwCI42IY6xAIw20EY4v20xvaj40_Zr0_Wr1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF 0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUZa9-UUUUU= X-CM-SenderInfo: p1hex046kxt4xhlfz01xgou0bp/ 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747036114369135133?= X-GMAIL-MSGID: =?utf-8?q?1747036114369135133?= |
Series |
fix possible memleak in '__blk_trace_remove'
|
|
Message
Ye Bin
Oct. 18, 2022, 2:51 p.m. UTC
diff v2 VS v1: 1. Introduce 'blk_trace_{start,stop}' helper instead of 'blk_trace_switch_state'. 2. Move stop block trace from '__blk_trace_remove' to 'blk_trace_cleanup'. Ye Bin (3): blktrace: introduce 'blk_trace_{start,stop}' helper blktrace: fix possible memleak in '__blk_trace_remove' blktrace: remove unnessary stop block trace in 'blk_trace_shutdown' kernel/trace/blktrace.c | 90 +++++++++++++++++++++-------------------- 1 file changed, 47 insertions(+), 43 deletions(-)