https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119926
Bug ID: 119926 Summary: Allow -fasan-shadow-offset= to be used with -fsanitize=address Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: yshuiv7 at gmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- Right now gcc limits -fasan-shadow-offset= to -fsanitize=kernel-address (with clang, I can already use `-mllvm -asan-mapping-offset=` with normal asan). But setting the shadow offset can be useful for user space programs as well. For example, wine supports running 32-bit and 64-bit code in the same process, by changing the shadow offset we can have a single unified shadow rather than duplicating the shadow at two different offsets. Related question: what are the differences between -fsanitize=kernel-address and =address? Is there anything that would stop me from using kernel-address on user space programs?