Skip to content

Commit

Permalink
arm64: do not trace atomic operations
Browse files Browse the repository at this point in the history
Atomic operation function symbols are exported,when
CONFIG_ARM64_LSE_ATOMICS is defined. Prefix them with notrace, so that
an user can not trace these functions. Tracing these functions causes
kernel crash.

Signed-off-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Pratyush Anand authored and Will Deacon committed Feb 6, 2017
1 parent 5e5afa6 commit b7eed6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/include/asm/lse.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
__asm__(".arch_extension lse");

/* Move the ll/sc atomics out-of-line */
#define __LL_SC_INLINE
#define __LL_SC_INLINE notrace
#define __LL_SC_PREFIX(x) __ll_sc_##x
#define __LL_SC_EXPORT(x) EXPORT_SYMBOL(__LL_SC_PREFIX(x))

Expand Down

0 comments on commit b7eed6d

Please sign in to comment.