Skip to contentSkip to conversation

kcov: fix comparison callback signature

PATCH New Dmitry Vyukov 1 participant 1 message Dec 7, 2017

Subsystems (2)
lore
Share & tools
lore

Dmitry Vyukov

author reviewer
#0 lore raw

PATCH 1/1 kcov: fix comparison callback signature

Fix a silly copy-paste bug.
We truncated u32 args to u16.

Fixes ded97d2c2b2c ("kcov: support comparison operands collection")
Cc Alexander Potapenko <[email protected]>
Cc Vegard Nossum <[email protected]>
Cc Quentin Casasnovas <[email protected]>
---
 kernel/kcov.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/kcov.c +2 -2
index 15f33faf4013..7594c033d98a 100644
@@ -157,7 +157,7 @@ void notrace __sanitizer_cov_trace_cmp2(u16 arg1, u16 arg2)
 }
 EXPORT_SYMBOL(__sanitizer_cov_trace_cmp2);
 
-void notrace __sanitizer_cov_trace_cmp4(u16 arg1, u16 arg2)
+void notrace __sanitizer_cov_trace_cmp4(u32 arg1, u32 arg2)
 {
 	write_comp_data(KCOV_CMP_SIZE(2), arg1, arg2, _RET_IP_);
 }
@@ -183,7 +183,7 @@ void notrace __sanitizer_cov_trace_const_cmp2(u16 arg1, u16 arg2)
 }
 EXPORT_SYMBOL(__sanitizer_cov_trace_const_cmp2);
 
-void notrace __sanitizer_cov_trace_const_cmp4(u16 arg1, u16 arg2)
+void notrace __sanitizer_cov_trace_const_cmp4(u32 arg1, u32 arg2)
 {
 	write_comp_data(KCOV_CMP_SIZE(2) | KCOV_CMP_CONST, arg1, arg2,
 			_RET_IP_);
Signature · 7 lines
2.15.1.424.g9478a66081-goog

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>