Message ID | 20221107071617.21644-1-shangxiaojing@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1887803wru; Sun, 6 Nov 2022 23:19:43 -0800 (PST) X-Google-Smtp-Source: AMsMyM6W4c3uX7O3PuvtyB5UJI7VB01O3LQJJtEiZgWAZtAsodOwBpvKLoZ57BCbH0pgku7YyTft X-Received: by 2002:a17:907:7b94:b0:731:1b11:c241 with SMTP id ne20-20020a1709077b9400b007311b11c241mr47861418ejc.676.1667805583219; Sun, 06 Nov 2022 23:19:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667805583; cv=none; d=google.com; s=arc-20160816; b=iOcym9jP9k6QNy5MteeaD/Fj+JgSE1dN8aV4ygIj6F9PmG0UlxgI6+Nbw5DBHhp83G OfgWYBP4EUYOMCfBbulVPskSjaf1klvLYan71SuRhIOtVJCjV6Ao7UyeZcQQqZpZvMS8 hd0WWaQDbieys2yiQzJm3ZQsUL868cL9rA552MMGT4dtCRLfOg4ePN7RWSvAlgegMhoP g/9osK0gu5ALle7dLyK0ewXPneS3U6tKpASPLWcyPYcco40WW5E9H6RPfFtPemT2gEj9 630xcPtHCw16uIzOPpcH6WcJx0Z8sAYvyr1Od/JPKZPh08suBqMk9hVuBNHSVfBJ3GPJ 5X5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=PDLa92bU5c83fkvRI4oodFe85rRbVr1qhdrox2zDPI0=; b=BLkOU9Nu6yimDE1woX4K8FQHu5QF6N/TYwWDY1CqZ3rajCYxgh5svUyhlL/3E0a/v7 OSXkBCxP6wMYdX1AnDnxG31t+W9QE5piujqiTKf4GlPod/4kEQi1kor9VMfmEOZVV3w1 /Qy02mcMYEPu207p71fIWfUBU62rBH717vpaLi1ta2QdbYjn36ri0POf/mhKaPDITWHB o0Yz3agvz1KFqRvjFuy+D/O38CsoH1+Ka+aUMMS+Kh6A3r+1a4GygQHT6jG6zfm+Vogs 3D386OKd5io2Jf5pnH9MWiwSvTW+fSxfFD+eTcAIixDuObspOCgixM41Ip3HEYVnBZkB VL5g== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz6-20020a1709077d8600b007aa784a3cb8si7091269ejc.687.2022.11.06.23.19.18; Sun, 06 Nov 2022 23:19:43 -0800 (PST) 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231322AbiKGHSg (ORCPT <rfc822;hjfbswb@gmail.com> + 99 others); Mon, 7 Nov 2022 02:18:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231415AbiKGHSQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 7 Nov 2022 02:18:16 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CE6D13D1C for <linux-kernel@vger.kernel.org>; Sun, 6 Nov 2022 23:17:36 -0800 (PST) Received: from kwepemi500016.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4N5MtM35RtzJnWL; Mon, 7 Nov 2022 15:14:35 +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; Mon, 7 Nov 2022 15:17:33 +0800 From: Shang XiaoJing <shangxiaojing@huawei.com> To: <rostedt@goodmis.org>, <mhiramat@kernel.org>, <zanussi@kernel.org>, <linux-kernel@vger.kernel.org> CC: <shangxiaojing@huawei.com> Subject: [PATCH 0/2] tracing: kprobe: Fix some bug in kprobe_event_gen_test.c Date: Mon, 7 Nov 2022 15:16:15 +0800 Message-ID: <20221107071617.21644-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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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?1748820906856256993?= X-GMAIL-MSGID: =?utf-8?q?1748820906856256993?= |
Series |
tracing: kprobe: Fix some bug in kprobe_event_gen_test.c
|
|
Message
Shang XiaoJing
Nov. 7, 2022, 7:16 a.m. UTC
Due to lack of the checking and setting-NULL on pointer, there are some null pointer dereference or page fault bugs were found when insert module, and fixed by this patch set. Shang XiaoJing (2): tracing: kprobe: Fix potential null-ptr-deref on trace_event_file in kprobe_event_gen_test_exit() tracing: kprobe: Fix potential null-ptr-deref on trace_array in kprobe_event_gen_test_exit() kernel/trace/kprobe_event_gen_test.c | 51 +++++++++++++++++++--------- 1 file changed, 35 insertions(+), 16 deletions(-)