tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NULL pointer arithmetic issues



When running the ATF tests under MKLIBCSANITIZER [1], there are many
NULL pointer arithmetic issues .

http://netbsd.org/~kamil/mksanitizer-reports/ubsan-2020-02-22-null-pointer.txt

These issues are in macros like:
 - IN_ADDRHASH_READER_FOREACH()
 - IN_ADDRLIST_WRITER_INSERT_TAIL()
 - IFADDR_READER_FOREACH()
 - etc

These macros wrap internally pserialize-safe linked lists.

What's the proper approach to address this issue?

These reports are responsible for around half of all kinds of the
remaining Undefined Behavior unique issues when executing ATF tests.


[1] ./build.sh -N0 -U -V MAKECONF=/dev/null -V HAVE_LLVM=yes -V MKGCC=no
-V MKLLVM=yes -V MKLIBCSANITIZER=yes -j8 -u -O /public/netbsd-llvm
distribution



Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index