Skip to content

eb0e1978df7b9e7 caused msan false positive in vectorized crc code #43997

@nico

Description

@nico
Bugzilla Link 44652
Resolution FIXED
Resolved on Jan 27, 2020 06:19
Version trunk
OS Linux
Blocks #43900
Attachments crc_folding.c standalone repro
CC @topperc,@eugenis,@zmodem,@RKSimon,@rotateright

Extended Description

This is very similar to issue 42982, but in slightly different vectorized crc code in zlib.

As far as I can tell, no uninitialized reads happen here, and things are happy before eb0e197

bin/clang crc_folding.c -msse4.2 -mpclmul -g -O2 -fsanitize=memory && ./a.out
==135688==WARNING: MemorySanitizer: use-of-uninitialized-value
#​0 0x499549 in crc_fold_512to32 /usr/local/google/home/thakis/src/chrome/src/crc_folding.c:479:16
#​1 0x499549 in main /usr/local/google/home/thakis/src/chrome/src/crc_folding.c:514:10
#​2 0x7f706ab6f52a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2352a)
#​3 0x41f269 in _start (/usr/local/google/home/thakis/src/chrome/src/a.out+0x41f269)

SUMMARY: MemorySanitizer: use-of-uninitialized-value /usr/local/google/home/thakis/src/chrome/src/crc_folding.c:479:16 in crc_fold_512to32

(reduced from https://crbug.com/1045291)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions