For mips64, structure of the buffer after stat syscall is of kernel_stat, and we need to convert it to stat form.
Diff Detail
Event Timeline
interestingly, I don't see any uses of internal_lstat.
Does anyone know if we still need it?
Maybe we just delete it?
We call internal_lstat() from internal symbolizer. I don't know if calling regular interceptor would work there (adding Dmitry).
lib/sanitizer_common/sanitizer_linux.cc | ||
---|---|---|
192 | Use #if defined(__mips64) | |
219 | Nest compiler directives like this: #if FOO # if BAR // code # endif #endif | |
lib/sanitizer_common/sanitizer_platform.h | ||
121 ↗ | (On Diff #16600) | Is there no header you can #include in sanitizer_linux.cc on MIPS to get the definition of this structure? In any case, this is the wrong place for the declaration. If you absolutely must provide the declaration, move it to sanitizer_platform_limits_posix.h |
lib/sanitizer_common/sanitizer_linux.cc | ||
---|---|---|
51 | Please turn this comment into a few regular english sentences with proper punctuation. It's hard to understand it otherwise. |
lib/sanitizer_common/sanitizer_linux.cc | ||
---|---|---|
51 | Hi @samsonov, is it OK to write it like: /* For mips64, syscall(__NR_stat) fills the buffer in the 'struct kernel_stat' format. Struct kernel_stat is defined as 'struct stat' in asm/stat.h. To access stat from asm/stat.h, without conflicting with definition in sys/stat.h, we use this trick. */ |
LGTM
lib/sanitizer_common/sanitizer_linux.cc | ||
---|---|---|
51 | Alright, I see what you mean now :) (but use //-style comments) |
I haven't been following the sanitizer reviews particularly closely but from what I've seen yourself and Kumar have been cooperating with the review process properly. If the others agree, perhaps it's time to request commit access.
If the others agree, perhaps it's time to request commit access.
Yes, I'd support granting post-review commit rights to Mohit.
Please turn this comment into a few regular english sentences with proper punctuation. It's hard to understand it otherwise.