Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5465310iob; Mon, 9 May 2022 17:36:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1EzWUA+JIU7NP+0CIc32OK6tETXZdIIA5oxqsoAxwym8chnrJDGPQ/0XE44tbKG7C7VVR X-Received: by 2002:aa7:d8d1:0:b0:428:24bc:b434 with SMTP id k17-20020aa7d8d1000000b0042824bcb434mr19940520eds.391.1652142974393; Mon, 09 May 2022 17:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652142974; cv=none; d=google.com; s=arc-20160816; b=lRTF72tXLix2af/RCsmB/XQelupkNCWU7MfsgLggv+vvslmufFtQbc3BW2TruQqrun C4Msni4hZq4aOax3NoGX7tUIKkwgIHFobaKfcUU6NjquV3f5us1p+0r9JQgxzbdPAn0i T9ubyGQvTMznXq7OYhGDFDOmpChtEubZQCFER2+CJV0kk2G2xHXndPcRw41EA4DOhXqj GiXMdI9cL9NmuJX8QXnLtXUtvDMKd/txwQxFYgCHh6DkY3cCTiwOCNq5lEHOIwzr7S72 w0pCLk0AZHojLPYHVXQMi2tO+dzpkDIoxmE2KL7uQJ0cztkOKXUjFLN547MjbsVq2lOo rynA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=9GLpoXy9oSzofRzXBzS9YzBUZVFny1mjtkmBOHjF4kc=; b=zf1vBYLyxbNM5wzOCsjhoy6z+okU9BpRevx90ZvZ8thqKxB4SuTd5sV82zOwsEvT2Q SxXUW9RHrJjLxwnk9xX1G0SU13Of221BPR1Nz0Dt2yFMIydcvvIRPAyZ0wk+B+k4lCdm E/NOHlEJ5eGInLRc82VanJy1hgV1pJ/ZQnGNxxwCx30wMDmdQLEZYfMtkUn6Xlrcw2GZ uV3V8qFcw7fBQQ/z9TygamoArfW5gfGDDyW2UFDWrSgx8ihRd8R2v0UHkgB74k+sC17D feVi4pQVSyfMCyzfdN5iLp2vinogmrN2J9EhOSkYu/XnQDkLuG/jYO24g/uv8kxrbisO M3gA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a170906274200b006effe0b6fdcsi14819144ejd.613.2022.05.09.17.35.50; Mon, 09 May 2022 17:36:14 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231989AbiEIW6t (ORCPT + 99 others); Mon, 9 May 2022 18:58:49 -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 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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: 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