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 DA08BC433F5 for ; Mon, 9 May 2022 22:54:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231995AbiEIW6u (ORCPT ); Mon, 9 May 2022 18:58:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230381AbiEIW6r (ORCPT ); Mon, 9 May 2022 18:58:47 -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 6376B22A2D0 for ; Mon, 9 May 2022 15:54:51 -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 015DB60BC5 for ; Mon, 9 May 2022 22:54:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7B47C385B3; Mon, 9 May 2022 22:54:49 +0000 (UTC) Date: Mon, 9 May 2022 18:54:47 -0400 From: Steven Rostedt To: Jeff Xie Cc: mingo@redhat.com, Masami Hiramatsu , Tom Zanussi , linux-kernel@vger.kernel.org Subject: Re: [PATCH] tracing: Fix possible crash in ftrace_free_ftrace_ops() Message-ID: <20220509185447.0e2b6a39@gandalf.local.home> In-Reply-To: References: <20220508161827.1014186-1-xiehuan09@gmail.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-kernel@vger.kernel.org On Mon, 9 May 2022 09:33:44 +0800 Jeff Xie wrote: > I am so sorry to bother you, this may be an invalid patch, kfree can > return directly from null. ;-) Yes, and so does free() in user space glibc. -- Steve