Does __sanitizer_cov_trace_pc inserted for assembly code?

9 views
Skip to first unread message

Joey Jiao

unread,
May 16, 2022, 10:51:24 PM5/16/22
to syzkaller
Hi,
Just to confirm if __sanitizer_cov_trace_pc instrument happend for pure assembly functions in .S file?

I checked several function like __arch_copy_from_user which seems not.

Also SanitizerCoverage.cpp in llvm code seems doesn't support it, right?

THX
Joey

Dmitry Vyukov

unread,
May 17, 2022, 3:15:03 AM5/17/22
to Joey Jiao, syzkaller
Hi Joey,

You are right. Instrumentation is not insured into asm files. It's
done by C compiler which does not compile asm.

But I also think it's not really necessary for __arch_copy_from_user.
It does not contain any interesting branches that depend on the user
inputs. There is one: failure/non-failure case, but it should affect
branching in the caller code, which is C and which is instrumented. So
the fuzzer will be able to observe that branch indirectly.
Reply all
Reply to author
Forward
0 new messages