Bug 201023 - amdgpu fails compilation
Summary: amdgpu fails compilation
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-05 12:22 UTC by Jan Kosterec
Modified: 2018-09-05 14:03 UTC (History)
0 users

See Also:
Kernel Version: 4.18
Subsystem:
Regression: No
Bisected commit-id:


Attachments
CONFIG_FORTIFY_SOURCE causes amdgpu to fail compilation (525 bytes, patch)
2018-09-05 12:22 UTC, Jan Kosterec
Details | Diff

Description Jan Kosterec 2018-09-05 12:22:13 UTC
Created attachment 278317 [details]
CONFIG_FORTIFY_SOURCE causes amdgpu to fail compilation

amdgpu driver (DC part) fails compilation when compiling with CONFIG_FORTIFY_SOURCE 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.
Comment 1 Michel Dänzer 2018-09-05 14:03:26 UTC
Please send the patch to the amd-gfx@lists.freedesktop.org mailing list for review.

Note You need to log in before you can comment on or make changes to this bug.