amdgpu fails compilation with CONFIG_FORTIFY_SOURCE
Harry Wentland
harry.wentland at amd.com
Thu Sep 20 14:59:01 UTC 2018
Thanks for the fix.
We've moved to logging functionality more closely aligned with the rest of DRM and dropped logger.c a while back.
Harry
On 2018-09-05 02:43 PM, Ján Kosterec wrote:
> amdgpu driver fails compilation when compiling with CONFIG_FORTIFY_SOURCE kernel option:
>
> In function ‘memmove’,
> inlined from ‘append_entry’ at drivers/gpu/drm/amd/amdgpu/../display/dc/basics/logger.c:258:2,
> inlined from ‘dm_logger_append_va.part.5’ at drivers/gpu/drm/amd/amdgpu/../display/dc/basics/logger.c:349:4:
> ./include/linux/string.h:356:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter
> __read_overflow2();
> ^~~~~~~~~~~~~~~~~~
>
> I have attached a patch which resolves this problem.
> Regards,
> Jan
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20180920/fe9273a3/attachment-0001.html>
More information about the amd-gfx
mailing list