From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD617C433FE for ; Sun, 13 Nov 2022 07:11:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235167AbiKMHLB (ORCPT ); Sun, 13 Nov 2022 02:11:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233068AbiKMHKx (ORCPT ); Sun, 13 Nov 2022 02:10:53 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1805FD2D2 for ; Sat, 12 Nov 2022 23:10:50 -0800 (PST) Received: from kwepemi500016.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4N93Vt0KT9z15Lxh; Sun, 13 Nov 2022 15:10:30 +0800 (CST) Received: from huawei.com (10.175.100.227) by kwepemi500016.china.huawei.com (7.221.188.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sun, 13 Nov 2022 15:10:46 +0800 From: Shang XiaoJing To: , , , , CC: Subject: [PATCH v2 0/2] tracing: Fix some bug about synth Date: Sun, 13 Nov 2022 15:09:18 +0800 Message-ID: <20221113070920.26236-1-shangxiaojing@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.100.227] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemi500016.china.huawei.com (7.221.188.220) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some bugs are found when insert synth_event_gen_test, and fixed by this patch set. Shang XiaoJing (2): tracing: Fix memory leak in test_gen_synth_cmd() and test_empty_synth_event() tracing: Fix wild-memory-access in register_synth_event() --- changes in v2: - some clean up. - remove redundant code. --- kernel/trace/synth_event_gen_test.c | 16 ++++++---------- kernel/trace/trace_events_synth.c | 3 ++- 2 files changed, 8 insertions(+), 11 deletions(-) -- 2.17.1