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 5731AC7618A for ; Mon, 20 Mar 2023 18:05:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229553AbjCTSFb (ORCPT ); Mon, 20 Mar 2023 14:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231342AbjCTSFI (ORCPT ); Mon, 20 Mar 2023 14:05:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE5F710E7; Mon, 20 Mar 2023 10:59:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 91F926176C; Mon, 20 Mar 2023 17:58:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01322C433EF; Mon, 20 Mar 2023 17:58:34 +0000 (UTC) Date: Mon, 20 Mar 2023 13:58:33 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: linux-trace-kernel@vger.kernel.org, Naresh Kamboju , linux-kernel@vger.kernel.org, Linux-Next Mailing List , lkft-triage@lists.linaro.org, Stephen Rothwell , Arnd Bergmann , Anders Roxell Subject: Re: [PATCH] selftests/ftrace: Choose target function for filter test from samples Message-ID: <20230320135833.3681499e@gandalf.local.home> In-Reply-To: <167919441260.1922645.18355804179347364057.stgit@mhiramat.roam.corp.google.com> References: <167919441260.1922645.18355804179347364057.stgit@mhiramat.roam.corp.google.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-trace-kernel@vger.kernel.org On Sun, 19 Mar 2023 11:53:32 +0900 "Masami Hiramatsu (Google)" wrote: > From: Masami Hiramatsu (Google) > > Since the event-filter-function.tc expects the 'exit_mmap()' directly > calls 'kmem_cache_free()', this is vulnerable to code modifications. > > Choose the target function for the filter test from the sample > event data so that it can keep test running correctly even if the caller > function name will be changed. > > Link: https://lore.kernel.org/all/CA+G9fYtF-XEKi9YNGgR=Kf==7iRb2FrmEC7qtwAeQbfyah-UhA@mail.gmail.com/ > Reported-by: Linux Kernel Functional Testing > Fixes: 7f09d639b8c4 ("tracing/selftests: Add test for event filtering on function name") > Signed-off-by: Masami Hiramatsu (Google) Acked-by: Steven Rostedt (Google) -- Steve