diff options
author | Linus Torvalds <[email protected]> | 2017-07-20 11:34:47 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-07-20 11:34:47 -0700 |
commit | 54a7d50b9205b5064628c1d10de6531d2d9fbc90 (patch) | |
tree | a51908ed455f210d1752a732c3af95c936bb6f63 /net/switchdev/switchdev.c | |
parent | 791f2df39b8248490ab41022939debaa82b96028 (diff) |
x86: mark kprobe templates as character arrays, not single characters
They really are, and the "take the address of a single character" makes
the string fortification code unhappy (it believes that you can now only
acccess one byte, rather than a byte range, and then raises errors for
the memory copies going on in there).
We could now remove a few 'addressof' operators (since arrays naturally
degrade to pointers), but this is the minimal patch that just changes
the C prototypes of those template arrays (the templates themselves are
defined in inline asm).
Reported-by: kernel test robot <[email protected]>
Acked-and-tested-by: Masami Hiramatsu <[email protected]>
Cc: Daniel Micay <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions