tech-kern archive

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

Re: GENERIC Kernel Build errors with -fsanitize=undefined option enabled



In article <CAFXTyT8Pc-SoDWHUSr6yNS8c9AAG59+wesgYaErbWWYPQYtx+g%mail.gmail.com@localhost>,
Harry Pantazis  <luserx0%gmail.com@localhost> wrote:
>-=-=-=-=-=-
>
>Sorry, I faultily sent before completing the mail.
>
>Continuing..
>
>This first errors are located in
>src/sys/external/bsd/drm2/dist/drm/i915/intel_ddi.c and are specific
>to the switch statement concerning that the case flags are not
>reducing directly to integer constants.
>
>Not a big deal, I'm writing a patch to overcome this issue and
>continuing the error-checking.
>All are encouraged to submit patches for a fix.
>
>I've included just the necessary portion of the build output I
>received cause the build file is too big.
>Looking forward in finding bigger issues.

Looks like a bug to me; it overflows 32 bits. Try changing them from
https://nxr.netbsd.org/xref/src/sys/external/bsd/drm2/dist/drm/i915/i915_reg.h#5429

(3 << 29) -> (3ULL << 29)

christos



Home | Main Index | Thread Index | Old Index