From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) (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 1D7B1348886 for ; Tue, 9 Jun 2026 21:54:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781042059; cv=none; b=r5sKKRKCeK+Zn8oXl7hAZzMw4T208cDDUB0RCK/WQszImFA0Ivwvzfc6u0DNhhgOIsJlikdYuNJYOm6he6PNLeAIs3VplC1fcJ9lkqdt7Ys1rvucuWwkRyIkFWZjZaMnCg4cuB5CUUwnK7WE2RBzuT40duMJpMBsD2GMHVCSpxo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781042059; c=relaxed/simple; bh=LKgJXRMRVfnbXBdiS69HgA5NXem6uaG9DtNPuSC5Qtk=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=ipYjAUjNPHd2SOOaFR8JDefDOOBH/R3jluXZYMvfO7Q9fg6orwhgeYMMpFG6UC+G6WIDqAphBIS/CIvavvZ0lQXuZk3qbJfQFJFdm6ysQy6qn2240HyvniAcVJkd3ta3oguhmnihY+spN2fJKNs3Swob5BDhCqXV+0l7uqO38OQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=goodmis.org; spf=pass smtp.mailfrom=goodmis.org; arc=none smtp.client-ip=216.40.44.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=goodmis.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=goodmis.org Received: from omf06.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 0DE09407BD; Tue, 9 Jun 2026 21:54:17 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: rostedt@goodmis.org) by omf06.hostedemail.com (Postfix) with ESMTPA id 56B8020010; Tue, 9 Jun 2026 21:54:15 +0000 (UTC) Date: Tue, 9 Jun 2026 17:54:14 -0400 From: Steven Rostedt To: Linus Torvalds Cc: LKML , Gabriele Monaco , Wen Yang Subject: [GIT PULL] rv: Fxes for 7.1 Message-ID: <20260609175414.15c529b4@fedora> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: 56B8020010 X-Stat-Signature: mjhr7gw4sx3fo5d69s4wekhdemgzgynm X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Session-ID: U2FsdGVkX18m01CpQ+tHcln1Plz3rGP5lu6cMAslXuc= X-HE-Tag: 1781042055-402588 X-HE-Meta: U2FsdGVkX1+cjvzVISRd51q3XWqJnmGU8R1mwNMy2z4MEehVc9qT3uHIKvJcjXBnVQY1sHibwCzKI13O2+9149Pp3Fu3XsJR/GDU3Nsg2rNs1qLS+gGWIBNR6v4MAFx/ct3c8u7/wZdMKc7BqVs+YNai8RoV6s5NgYyJHP1+J1Z/20ofXS/Fgtu1nogXi255IZWocF75gXKK9SB+FO4UrDDj/YiSHSBQm56AgQvx3QQjLZ4gG2RDnxprt3xFnAdM6q/oTJTr7q7FLkyddqmeVs0SNUlvaka7jLuLA9wWbJ2lcVb/jtEsE7IL4h6teTZ7cOM3cHF2HVQQ5OCQkMZV2HrWCBDX6cmX Linus, runtime verifier fixes for v7.1: - Fix reset ordering on per-task destruction Reset the task before dropping the slot instead of after, which was causing out-of-bound memory accesses. - Fix HA monitor synchronization and cleanup Ensure synchronous cleanup for HA monitors by running timer callbacks in RCU read-side critical sections and using synchronize_rcu() during destruction. - Avoid armed timers after tasks exit Add automatic cleanup for per-task HA monitors to prevent timers from firing after task exit. - Fix memory ordering for DA/HA monitors Fix race conditions during monitor start by using release-acquire semantics for the monitoring flag. - Fix initialization for DA/HA monitors Ensure monitors are not initialized relying on potentially corrupted state like the monitoring flag, that is not reset by all monitors type and may have an unknown state in monitors reusing the storage (per-task). - Fix memory safety in per-task and per-object monitors Prevent use-after-free and out-of-bounds access by synchronizing with in-flight tracepoint probes using tracepoint_synchronize_unregister() before freeing monitor storage or releasing task slots. - Adjust monitors for preemptible tracepoints Fix monitors that relied on tracepoints disabling preemption. Explicitly disable task migration when per-CPU monitors handle events to avoid accessing the wrong state and update the opid monitor logic. - Fix incorrect __user specifier usage Remove __user from a non-pointer variable in the extract_params() helper. - Fix bugs in the rv tool Ensure strings are NUL-terminated, fix substring matching in monitor searches, and improve cleanup and exit status handling. - Fix several bugs in rvgen Fix LTL literal stringification, subparsers' options handling, and suffix stripping in dot2k. Please pull the latest trace-rv-v7.1-rc6-2 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git trace-rv-v7.1-rc6-2 Tag SHA1: 685e5f85b1b8df87439b83ffe6defd87923702fe Head SHA1: df996599cc69a9b74ff437c67751cf8a61f62e39 Gabriele Monaco (16): rv: Fix __user specifier usage in extract_params() rv: Reset per-task DA monitors before releasing the slot rv: Prevent in-flight per-task handlers from using invalid slots rv: Ensure all pending probes terminate on per-obj monitor destroy rv: Do not rely on clean monitor when initialising HA rv: Add automatic cleanup handlers for per-task HA monitors rv: Ensure synchronous cleanup for HA monitors rv: Prevent task migration while handling per-CPU events rv: Use 0 to check preemption enabled in opid tools/rv: Ensure monitor name and desc are NUL-terminated tools/rv: Fix substring match bug in monitor name search tools/rv: Fix substring match when listing container monitors tools/rv: Fix cleanup after failed trace setup verification/rvgen: Fix suffix strip in dot2k verification/rvgen: Fix options shared among commands verification/rvgen: Fix ltl2k writing True as a literal Wen Yang (1): rv: Fix monitor start ordering and memory ordering for monitoring flag ---- include/rv/da_monitor.h | 139 +++++++++++++++++---- include/rv/ha_monitor.h | 91 +++++++++++++- include/rv/ltl_monitor.h | 1 + kernel/trace/rv/monitors/deadline/deadline.h | 3 +- kernel/trace/rv/monitors/nomiss/nomiss.c | 4 +- kernel/trace/rv/monitors/opid/opid.c | 12 +- kernel/trace/rv/monitors/stall/stall.c | 4 +- tools/verification/rv/src/in_kernel.c | 65 +++++----- tools/verification/rvgen/__main__.py | 10 +- tools/verification/rvgen/rvgen/dot2k.py | 4 +- tools/verification/rvgen/rvgen/ltl2ba.py | 9 +- .../rvgen/rvgen/templates/dot2k/main.c | 4 +- 12 files changed, 263 insertions(+), 83 deletions(-) ---------------------------