From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (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 26C3843F8CB for ; Thu, 30 Jul 2026 15:04:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785423894; cv=none; b=Osg7rIzbYsvmp3vOPTLEudbH1+TOF9ednkCieLUkVaEBCJp3fxPrA/OJ+d3pIKd5Shym4o/7ua+ygn/yU5mzTlVSko2SCPEsllNYEdrZvLvqcZGV+xOymBoimV8+hxKW61PnnV6Xzi35i437Drpju8yOsiGvjhkxCd3NVQA3OOc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785423894; c=relaxed/simple; bh=nlnEHFDXX/dP1HqALY5VFwo8vRof/49zcm5xHFGIqa0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IhxbDqNCtlajbHw1yXyG00HBGti7iLwhEGUSd+XW2nU1XlQkhn0HXEua/doal4kU99zgvF+Km9c22bsOlwQ8O/+yQbS84AcqW3rY/BOU4x5YGpbN743LhSIfhucZ9q7WwmF1CjhMAJROZRTGWz2HF4M5r/RzBqlZ+8ISLrq2VXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=l51MrxD/; arc=none smtp.client-ip=91.218.175.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="l51MrxD/" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1785423889; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=MwGTwILnTz3X5A8tudff7bUBj8GGfCDV0msq65uOzW8=; b=l51MrxD/nRCjqEiI0aa5c16zF8imvGF48vJE4L7ujvP8+NhJHoab0r4/LyeCHO/uiwN/YE AVtJhipySCeR1SUPa2NF/9ogxXQ4GNSs5K1L3XyQbuqnqyUojzgU0YMe0auKu7S4QioM5A JReSMIchTvXfH/idQAm3VLM8DnjhknA= From: Leon Hwang To: Steven Rostedt , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Jiri Olsa , Andrii Nakryiko Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Leon Hwang Subject: [PATCH 0/4] ftrace: Protect RCU accesses to direct_functions Date: Thu, 30 Jul 2026 23:04:07 +0800 Message-ID: <20260730150411.88667-1-leon.hwang@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Sashiko reported a potential issue of directly accessing direct_functions [1], which will be addressed by patch #1. The patch #2 and #3 protect accesses to the RCU-managed direct_functions hash in its delete, and modify paths. The final patch removes an unnecessary empty argument from a scoped_guard() invocation. [1] https://lore.kernel.org/all/20260727145217.72B9C1F000E9@smtp.kernel.org/ Leon Hwang (4): ftrace: Protect direct_functions in ftrace_find_rec_direct ftrace: Protect direct_functions in update_ftrace_direct_del ftrace: Protect direct_functions in update_ftrace_direct_mod ftrace: Drop extra comma in trace_buffered_event_enable kernel/trace/ftrace.c | 27 ++++++++++++++++++--------- kernel/trace/trace.c | 2 +- 2 files changed, 19 insertions(+), 10 deletions(-) -- 2.55.0