From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D0C9F1A8F97 for ; Sun, 26 Jul 2026 02:35:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785033327; cv=none; b=V2Yg84GnxVpJ0bXEuBWiSTv9MO3zARFGIU1l2CFwkcNU5VjKfayuz+bJZUwjqijxSjrX6qxHS1ABL7irkt9Zy0Dd+F3Vc6FsJg1/t4c/e0VkmN+1BxN8Wva9gmmRiT44GHAZaRAM0HCgxOkBpuBB03E9yk7b87DtodxpMp6/lLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785033327; c=relaxed/simple; bh=cP+oo9ybANeaegO8ITub6L2MYSQSVZScozz9VdDskO8=; h=Message-ID:Date:From:To:Cc:Subject; b=KrG6qskI0VUjie2SlMXO/s5YOYLDMVUNEIy8W2PZiCW1HFHSmuePjR11kyK7c4NqW5YHkjRwbh5iTC6WLIEkpOQItyhK1zlbgXrqNnpoZNB72c74z+JdA7IC0DWbCIw9h+XRLQxZ1wvU4D+7Z8oqGrQ0uElFZu1NRmSk+acSs+o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SYu8NTL2; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SYu8NTL2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93FD61F000E9; Sun, 26 Jul 2026 02:35:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785033326; bh=XBrpCEmVE1TGQnI36/8MhGmra/mJxWUDK9MQc1nUxGs=; h=Date:From:To:Cc:Subject; b=SYu8NTL2oEP8tyg4anMIbSG50nBGlxSDZvG9zbIMjZb3qYmSZ5YVU2YaG1VYoDsqS OrNYSsn0ESYyTzhg4V7807Zq3BYulB3qeo30E7lOD7NIUO+VO6dOXwgtVt0S81tY+S VwlHEzOoTyeLwlPFjXRONukdQWPPuZAlny8J125U48fDQgQ/4r3SBUHKaCuTz5mKSA 7FA+BjyjFEM7arOaOcO3gFYC3euGK+M81Qjk3s9I8c06r3WqrzfwcojBm3UDVWp4Vs kKhcjcXKg0XCZ84M6ylpwcPdBwSYx71Ou8UDQCb1hgEBVJ4cIT/BwwnSLcm74iN0p3 mr88TdD3sLHfw== Received: from rostedt by gandalf with local (Exim 4.99.4) (envelope-from ) id 1wnoiY-00000004bzN-3Rti; Sat, 25 Jul 2026 22:35:54 -0400 Message-ID: <20260726023542.092577615@kernel.org> User-Agent: quilt/0.69 Date: Sat, 25 Jul 2026 22:35:42 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [for-linus][PATCH 0/2] tracing: More fixes for 7.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: tracing fixes for 7.2: - Add mutex to protect parser in ftrace filtering The set_ftrace_filter file uses a parsing descriptor that is allocated at open and modified by writes. If multiple threads were to write to the descriptor at the same time, it can corrupt the parser. Add a mutex around the modifications of the parser descriptor. - Fix possible corruption in perf syscall tracing The perf system call trace events can now read user space. To do so, the reads of user space enable preemption and disables it again. During this time that preemption is enabled, the task can migrate. The perf event list head is assigned via a per CPU pointer. It is done before the user space part is called. If the user space reading migrates the task to another CPU, then the head pointer is no longer valid. Re-assign the head pointer after the reading of user space to keep it using the correct data. git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git trace/fixes Head SHA1: 2c2b322acdcc78575b8d6afa64a085cf92e03c12 Steven Rostedt (1): tracing: perf: Fix stale head for perf syscall tracing Tengda Wu (1): ftrace: Add global mutex to serialize trace_parser access ---- kernel/trace/ftrace.c | 13 +++++++++++++ kernel/trace/trace_syscalls.c | 5 +++++ 2 files changed, 18 insertions(+)