amdgpu fails compilation with CONFIG_FORTIFY_SOURCE

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

 



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20180905/556727eb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amdgpu.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20180905/556727eb/attachment.bin>


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux