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 DCF0AC433F5 for ; Mon, 9 May 2022 07:51:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236310AbiEIHwG (ORCPT ); Mon, 9 May 2022 03:52:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236155AbiEIHs3 (ORCPT ); Mon, 9 May 2022 03:48:29 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66770187044 for ; Mon, 9 May 2022 00:44:36 -0700 (PDT) Received: from [192.168.88.87] (unknown [180.242.99.67]) by gnuweeb.org (Postfix) with ESMTPSA id C62447E7F6; Mon, 9 May 2022 07:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1652081673; bh=27DTnJK3MypWLfzhHvPUFGb6x05+cT0J+g+6ZaU1ufU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=OnzokGKowQtI8z4oKSGYLk9NjdqW2WHuJQ7mDk+Ojhcx/Oz3SHw8Anm9G0w8cHQRt X95t/K1kEqopR0dniBUB+97SeVdO94f++HmLlLK/c9biQHChCwIhXKPQGL+idChWg8 5xhsvRoB17O6ceJCZ0/yiJItsDQNrGbWmJeFjoQ9zW4Y+eVWcrgvb3AGWGC8HK/7XQ rRHuKl/t1gUrjltGej+Nsk8f1ZhBxoyWs7uRFdmU1QG1g90fqhe2+zAeFXiimvH2bM ToPBilhYLWpWeAQ6Sa+7dXYAMedCAsZO/Pd7EJTELCuw3pHcFyCM9qNPGKrBfu+dEL c4nu/47vPlAqQ== Message-ID: <6689f8e3-b61b-9bb1-0334-a3e5f52df450@gnuweeb.org> Date: Mon, 9 May 2022 14:34:28 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] tracing: Fix possible crash in ftrace_free_ftrace_ops() Content-Language: en-US To: Jeff Xie Cc: Ingo Molnar , Masami Hiramatsu , Steven Rostedt , Tom Zanussi , Linux Kernel Mailing List References: <20220508161827.1014186-1-xiehuan09@gmail.com> From: Ammar Faizi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/9/22 8:33 AM, Jeff Xie wrote: > I am so sorry to bother you, this may be an invalid patch, kfree can > return directly from null. ;-) Yeah, kfree(NULL) is a valid call. There's no potential crash here. -- Ammar Faizi