Messages in this thread | | | Date | Fri, 24 Oct 2014 14:36:25 +0400 | Subject | Re: [RFC PATCH] UBSan: run-time undefined behavior sanity checker | From | Andrey Ryabinin <> |
| |
2014-10-24 12:31 GMT+04:00 y.gribov <y.gribov@samsung.com>: >> Unaligned accesses disabled because they are allowed on some arches (see > HAVE_EFFICIENT_UNALIGNED_ACCESS). >> Another reason is that there are to many reports. Not because there are >> lot of bugs, but because >> there are many reports for one bug. > > A side note - unaligned accesses would prevent KASan from doing it's job > well because instrumentation code relies on address alignment when > performing the check. >
I guess it only matters for inline instrumentation, right? Because in outline case I've taken care about unaligned accesses.
We could do following trick in Kconfig: select HAVE_EFFICIENT_UNALIGNED_ACCESS if !KASAN
This will prevent a lot of unaligned accesses, but surely not all of them
-- Best regards, Andrey Ryabinin
| |