lkml.org 
[lkml]   [2024]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 6.8 53/68] sparc: vdso: Disable UBSAN instrumentation
    Date
    From: Kees Cook <keescook@chromium.org>

    [ Upstream commit d4be85d068b4418c341f79b654399f7f0891069a ]

    The UBSAN instrumentation cannot work in the vDSO since it is executing
    in userspace, so disable it in the Makefile. Fixes the build failures
    such as:

    arch/sparc/vdso/vclock_gettime.c:217: undefined reference to `__ubsan_handle_shift_out_of_bounds'

    Acked-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://lore.kernel.org/all/20240224073617.GA2959352@ravnborg.org
    Signed-off-by: Kees Cook <keescook@chromium.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    arch/sparc/vdso/Makefile | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/arch/sparc/vdso/Makefile b/arch/sparc/vdso/Makefile
    index 7f5eedf1f5e0a..e8aef2c8ae99b 100644
    --- a/arch/sparc/vdso/Makefile
    +++ b/arch/sparc/vdso/Makefile
    @@ -2,6 +2,7 @@
    #
    # Building vDSO images for sparc.
    #
    +UBSAN_SANITIZE := n

    # files to link into the vdso
    vobjs-y := vdso-note.o vclock_gettime.o
    --
    2.43.0

    \
     
     \ /
      Last update: 2024-05-27 16:15    [W:6.146 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site