[Bug 227983] sys/cam: fail build with -fsanitize=safe-stack

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 5 01:17:31 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227983

            Bug ID: 227983
           Summary: sys/cam: fail build with -fsanitize=safe-stack
           Product: Base System
           Version: 11.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: rozhuk.im at gmail.com

/etc/make.conf:
COPTFLAGS= -O2 -mretpoline -fsanitize=safe-stack -funroll-loops -pipe 

...
linking kernel.full
cam.o: In function `cam_fetch_status_entry':
/usr/src/sys/cam/cam.c:310: undefined reference to
`__safestack_unsafe_stack_ptr'
cam.o: In function `cam_error_string':
/usr/src/sys/cam/cam.c:342: undefined reference to
`__safestack_unsafe_stack_ptr'
/usr/src/sys/cam/cam.c:519: undefined reference to
`__safestack_unsafe_stack_ptr'
cam.o: In function `cam_error_print':
/usr/src/sys/cam/cam.c:527: undefined reference to
`__safestack_unsafe_stack_ptr'
cam_compat.o: In function `cam_compat_translate_dev_match_0x18':
/usr/src/sys/cam/cam_compat.c:361: undefined reference to
`__safestack_unsafe_stack_ptr'
cam_compat.o:/usr/src/sys/cam/cam_compat.c:(.text+0xbf0): more undefined
references to `__safestack_unsafe_stack_ptr' follow
--- kernel.full ---
...

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list