From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C424190049 for ; Thu, 2 Jan 2025 22:01:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735855313; cv=none; b=hfP5GfOuwn8pEMyE+YIPy8TLnNLI0Gm2gCYTtNCC2btJTZRAdfgvmx0OoJStxJdKfeVi8YfoOPOTiCsOSMEe74h79V9D1nfBqI5QR1Cy7aYeRD+Ldaairumcp6Vc5HCIv61Mgt6tia7YDwnaV/9JhxTNtQpAQCmQjx2bzhnMAEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735855313; c=relaxed/simple; bh=/69G4hkk0/EfAruJANjLqSBGKjdXF31jSk22PWMJy9k=; h=Message-ID:Date:From:To:Cc:Subject; b=gkd2XW/n2hZYKToO+v+k/AOWyEe3QMY+kWaKypgmykWzniwfBHFhLo+Q7N+BXtT2SrOcl2E+uYjFaf2raHUYsaripixJX+Lqf3SOxyaYLPGWJI7+WVwC3+w4ZdLMGiE/QvGEOi2cKisbcZk0Pa9hPxjWXlJ6ItT+hvwJPnfSFio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEE07C4CEDC; Thu, 2 Jan 2025 22:01:52 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.98) (envelope-from ) id 1tTTHZ-00000005Urg-3q9N; Thu, 02 Jan 2025 17:03:09 -0500 Message-ID: <20250102220238.225015816@goodmis.org> User-Agent: quilt/0.68 Date: Thu, 02 Jan 2025 17:02:38 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [for-linus][PATCH 0/2] ftrace: Fixes for v6.13 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Fixes for ftrace in v6.13: - Add needed READ_ONCE() around access to the fgraph array element The updates to the fgraph array can happen when callbacks are registered and unregistered. The __ftrace_return_to_handler() can handle reading either the old value or the new value. But once it reads that value it must stay consistent otherwise the check that looks to see if the value is a stub may show false, but if the compiler decides to re-read after that check, it can be true which can cause the code to crash later on. - Make function profiler use the top level ops for filtering again When function graph became available for instances, its filter ops became independent from the top level set_ftrace_filter. In the process the function profiler received its own filter ops as well. But the function profiler uses the top level set_ftrace_filter file and does not have one of its own. In giving it its own filter ops, it lost any user interface it once had. Make it use the top level set_ftrace_filter file again. This fixes a regression.