Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp3760373lfb; Mon, 9 May 2022 03:28:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTAAYJzZKuowjeQbu88aF4A/CrAWwize/zUgcSAjZDunAa4Zze2DQogtpZsIwDr0Q8xlr9 X-Received: by 2002:a17:902:8504:b0:15d:2c7c:ceac with SMTP id bj4-20020a170902850400b0015d2c7cceacmr15903337plb.130.1652092133219; Mon, 09 May 2022 03:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652092133; cv=none; d=google.com; s=arc-20160816; b=FqF6DaLDDlBCJ4jD+PLaiuArqKJhQ8QGdJwpag4p0IHCspYI5B3Fhe5s/uNUcGPaiJ rsZOU11/KnjvA/eF/kzwb22AS4D88QSr2Whkmqil9ifOCZ9/alKBy/JVcNoxxoViBXKC FcE0wB9IsArHM+xpQVLiX7ae/2hFqdxQfSfq2Dm/ny6EMqWCjQhiTclqMnG5iKnQNrG4 sHyxG1giJec+xtqSKH6Fl4Ifx+a4K7K+iqXwjaiv8nwj2I/8tWBhSzMBwO/jdP2ZQ1S8 A3Y3GmwW/eOybDp+sWq3wW/ccRbQ+dAfHb0PDlCpEGnCXxODHEdHWyVMuWpFpy+IzlRV 89YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SW8bFdl7kk9fl4RyEe7XGbPZvrsScDa/X7YJP9ty9Gc=; b=HNxqIrjX/8E0zeEXN1FhFyT4K6WIfFkaphNWbctFTkdO8M2NUSEDg8EHAxODQ0qEfO N6yrL/9CXVa4UlNW9Ejco2ORY1wkS0yFykrKKq8QIeKsJMsxM7fPirISvg2z55aKORhb ANyXAXx/HBLEZCSLkDXz1qm2zNxa7jYGvbSNbE2wryhG6f/3d3kymJped6VYxb333Xgr hqrbMJfNP1VMhu8FrV0zf++wTt1TpiM5NqlKr3Go50+PEsBqhvXulCfHoYGMxKN4fns7 jk7lBGeolwqkVTSao4L9Ayu9ASXdJGv8osC9QPlR5HLbp8tXt3hQ3vjkrtOFhf4diKHL UNjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gnuweeb.org header.s=default header.b=OnzokGKo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnuweeb.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e23-20020a63db17000000b0039908cd4e78si16384058pgg.263.2022.05.09.03.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:28:53 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gnuweeb.org header.s=default header.b=OnzokGKo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnuweeb.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 962EF1C94D4; Mon, 9 May 2022 03:01:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236203AbiEIHwG (ORCPT + 99 others); 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 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: 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