]> git.baikalelectronics.ru Git - kernel.git/commit
tracepoint: static call: Compare data on transition from 2->1 callees
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 5 Aug 2021 13:27:15 +0000 (09:27 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 5 Aug 2021 19:40:41 +0000 (15:40 -0400)
commit7a5b8de98b606d8994779b9ebc5dde22c8ae24ba
treeb22838fd7ffa466129fa2288ee37c828a10c5210
parent1e6fee3ad187237cb588e824ad316f41139d9662
tracepoint: static call: Compare data on transition from 2->1 callees

On transition from 2->1 callees, we should be comparing .data rather
than .func, because the same callback can be registered twice with
different data, and what we care about here is that the data of array
element 0 is unchanged to skip rcu sync.

Link: https://lkml.kernel.org/r/20210805132717.23813-2-mathieu.desnoyers@efficios.com
Link: https://lore.kernel.org/io-uring/4ebea8f0-58c9-e571-fd30-0ce4f6f09c70@samba.org/
Cc: stable@vger.kernel.org
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Stefan Metzmacher <metze@samba.org>
Fixes: 2145dc4ef911 ("tracepoint: Fix out of sync data passing by static caller")
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/tracepoint.c