* [tip:x86/cpu 2/3] arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds.
@ 2021-03-15 23:50 ` kernel test robot
0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2021-03-15 23:50 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: kbuild-all, linux-kernel, x86, Borislav Petkov
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu
head: 301cddc21a157a3072d789a3097857202e550a24
commit: a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 [2/3] x86: Remove dynamic NOP selection
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds. [pointerOutOfBounds]
x86nops + 1 + 2 + 3 + 4,
^
arch/x86/kernel/alternative.c:97:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+15' is out of bounds. [pointerOutOfBounds]
x86nops + 1 + 2 + 3 + 4 + 5,
^
arch/x86/kernel/alternative.c:98:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+21' is out of bounds. [pointerOutOfBounds]
x86nops + 1 + 2 + 3 + 4 + 5 + 6,
^
arch/x86/kernel/alternative.c:99:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+28' is out of bounds. [pointerOutOfBounds]
x86nops + 1 + 2 + 3 + 4 + 5 + 6 + 7,
^
>> arch/x86/kernel/ftrace.c:304:7: warning: union member 'ftrace_op_code_union::code' is never used. [unusedStructMember]
char code[OP_REF_SIZE];
^
vim +96 arch/x86/kernel/alternative.c
88
89 const unsigned char * const x86_nops[ASM_NOP_MAX+1] =
90 {
91 NULL,
92 x86nops,
93 x86nops + 1,
94 x86nops + 1 + 2,
95 x86nops + 1 + 2 + 3,
> 96 x86nops + 1 + 2 + 3 + 4,
97 x86nops + 1 + 2 + 3 + 4 + 5,
98 x86nops + 1 + 2 + 3 + 4 + 5 + 6,
99 x86nops + 1 + 2 + 3 + 4 + 5 + 6 + 7,
100 };
101
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* [tip:x86/cpu 2/3] arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds.
@ 2021-03-15 23:50 ` kernel test robot
0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2021-03-15 23:50 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1924 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu
head: 301cddc21a157a3072d789a3097857202e550a24
commit: a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 [2/3] x86: Remove dynamic NOP selection
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds. [pointerOutOfBounds]
x86nops + 1 + 2 + 3 + 4,
^
arch/x86/kernel/alternative.c:97:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+15' is out of bounds. [pointerOutOfBounds]
x86nops + 1 + 2 + 3 + 4 + 5,
^
arch/x86/kernel/alternative.c:98:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+21' is out of bounds. [pointerOutOfBounds]
x86nops + 1 + 2 + 3 + 4 + 5 + 6,
^
arch/x86/kernel/alternative.c:99:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+28' is out of bounds. [pointerOutOfBounds]
x86nops + 1 + 2 + 3 + 4 + 5 + 6 + 7,
^
>> arch/x86/kernel/ftrace.c:304:7: warning: union member 'ftrace_op_code_union::code' is never used. [unusedStructMember]
char code[OP_REF_SIZE];
^
vim +96 arch/x86/kernel/alternative.c
88
89 const unsigned char * const x86_nops[ASM_NOP_MAX+1] =
90 {
91 NULL,
92 x86nops,
93 x86nops + 1,
94 x86nops + 1 + 2,
95 x86nops + 1 + 2 + 3,
> 96 x86nops + 1 + 2 + 3 + 4,
97 x86nops + 1 + 2 + 3 + 4 + 5,
98 x86nops + 1 + 2 + 3 + 4 + 5 + 6,
99 x86nops + 1 + 2 + 3 + 4 + 5 + 6 + 7,
100 };
101
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [tip:x86/cpu 2/3] arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds.
2021-03-15 23:50 ` kernel test robot
@ 2021-03-16 8:27 ` Borislav Petkov
-1 siblings, 0 replies; 8+ messages in thread
From: Borislav Petkov @ 2021-03-16 8:27 UTC (permalink / raw)
To: kernel test robot; +Cc: Peter Zijlstra, kbuild-all, linux-kernel, x86
Yet another useless report!
On Tue, Mar 16, 2021 at 07:50:10AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu
> head: 301cddc21a157a3072d789a3097857202e550a24
> commit: a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 [2/3] x86: Remove dynamic NOP selection
> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
>
> cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
What's cppcheck?
That?
Description-en: tool for static C/C++ code analysis (CLI)
Cppcheck is a command-line tool that tries to detect bugs that your
> >> arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds. [pointerOutOfBounds]
> x86nops + 1 + 2 + 3 + 4,
> ^
> arch/x86/kernel/alternative.c:97:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+15' is out of bounds. [pointerOutOfBounds]
> x86nops + 1 + 2 + 3 + 4 + 5,
> ^
> arch/x86/kernel/alternative.c:98:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+21' is out of bounds. [pointerOutOfBounds]
> x86nops + 1 + 2 + 3 + 4 + 5 + 6,
> ^
> arch/x86/kernel/alternative.c:99:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+28' is out of bounds. [pointerOutOfBounds]
> x86nops + 1 + 2 + 3 + 4 + 5 + 6 + 7,
> ^
> >> arch/x86/kernel/ftrace.c:304:7: warning: union member 'ftrace_op_code_union::code' is never used. [unusedStructMember]
> char code[OP_REF_SIZE];
> ^
How do you trigger this?
/me ignores it until there's some info on how those things can be
reproduced.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [tip:x86/cpu 2/3] arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds.
@ 2021-03-16 8:27 ` Borislav Petkov
0 siblings, 0 replies; 8+ messages in thread
From: Borislav Petkov @ 2021-03-16 8:27 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1902 bytes --]
Yet another useless report!
On Tue, Mar 16, 2021 at 07:50:10AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu
> head: 301cddc21a157a3072d789a3097857202e550a24
> commit: a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 [2/3] x86: Remove dynamic NOP selection
> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
>
> cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
What's cppcheck?
That?
Description-en: tool for static C/C++ code analysis (CLI)
Cppcheck is a command-line tool that tries to detect bugs that your
> >> arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds. [pointerOutOfBounds]
> x86nops + 1 + 2 + 3 + 4,
> ^
> arch/x86/kernel/alternative.c:97:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+15' is out of bounds. [pointerOutOfBounds]
> x86nops + 1 + 2 + 3 + 4 + 5,
> ^
> arch/x86/kernel/alternative.c:98:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+21' is out of bounds. [pointerOutOfBounds]
> x86nops + 1 + 2 + 3 + 4 + 5 + 6,
> ^
> arch/x86/kernel/alternative.c:99:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+28' is out of bounds. [pointerOutOfBounds]
> x86nops + 1 + 2 + 3 + 4 + 5 + 6 + 7,
> ^
> >> arch/x86/kernel/ftrace.c:304:7: warning: union member 'ftrace_op_code_union::code' is never used. [unusedStructMember]
> char code[OP_REF_SIZE];
> ^
How do you trigger this?
/me ignores it until there's some info on how those things can be
reproduced.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [tip:x86/cpu 2/3] arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds.
2021-03-16 8:27 ` Borislav Petkov
@ 2021-03-16 9:01 ` Peter Zijlstra
-1 siblings, 0 replies; 8+ messages in thread
From: Peter Zijlstra @ 2021-03-16 9:01 UTC (permalink / raw)
To: Borislav Petkov; +Cc: kernel test robot, kbuild-all, linux-kernel, x86
On Tue, Mar 16, 2021 at 09:27:03AM +0100, Borislav Petkov wrote:
> Yet another useless report!
>
> On Tue, Mar 16, 2021 at 07:50:10AM +0800, kernel test robot wrote:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu
> > head: 301cddc21a157a3072d789a3097857202e550a24
> > commit: a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 [2/3] x86: Remove dynamic NOP selection
> > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
> >
> > If you fix the issue, kindly add following tag as appropriate
> > Reported-by: kernel test robot <lkp@intel.com>
> >
> >
> > cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>
> What's cppcheck?
>
> That?
>
> Description-en: tool for static C/C++ code analysis (CLI)
> Cppcheck is a command-line tool that tries to detect bugs that your
>
>
> > >> arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds. [pointerOutOfBounds]
> > x86nops + 1 + 2 + 3 + 4,
> > ^
> > arch/x86/kernel/alternative.c:97:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+15' is out of bounds. [pointerOutOfBounds]
> > x86nops + 1 + 2 + 3 + 4 + 5,
> > ^
> > arch/x86/kernel/alternative.c:98:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+21' is out of bounds. [pointerOutOfBounds]
> > x86nops + 1 + 2 + 3 + 4 + 5 + 6,
> > ^
> > arch/x86/kernel/alternative.c:99:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+28' is out of bounds. [pointerOutOfBounds]
> > x86nops + 1 + 2 + 3 + 4 + 5 + 6 + 7,
> > ^
> > >> arch/x86/kernel/ftrace.c:304:7: warning: union member 'ftrace_op_code_union::code' is never used. [unusedStructMember]
> > char code[OP_REF_SIZE];
> > ^
>
> How do you trigger this?
>
> /me ignores it until there's some info on how those things can be
> reproduced.
Just ignore, cppcheck is a load of crap. I don't know why they bother
running it.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [tip:x86/cpu 2/3] arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds.
@ 2021-03-16 9:01 ` Peter Zijlstra
0 siblings, 0 replies; 8+ messages in thread
From: Peter Zijlstra @ 2021-03-16 9:01 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2046 bytes --]
On Tue, Mar 16, 2021 at 09:27:03AM +0100, Borislav Petkov wrote:
> Yet another useless report!
>
> On Tue, Mar 16, 2021 at 07:50:10AM +0800, kernel test robot wrote:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu
> > head: 301cddc21a157a3072d789a3097857202e550a24
> > commit: a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 [2/3] x86: Remove dynamic NOP selection
> > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
> >
> > If you fix the issue, kindly add following tag as appropriate
> > Reported-by: kernel test robot <lkp@intel.com>
> >
> >
> > cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>
> What's cppcheck?
>
> That?
>
> Description-en: tool for static C/C++ code analysis (CLI)
> Cppcheck is a command-line tool that tries to detect bugs that your
>
>
> > >> arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds. [pointerOutOfBounds]
> > x86nops + 1 + 2 + 3 + 4,
> > ^
> > arch/x86/kernel/alternative.c:97:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+15' is out of bounds. [pointerOutOfBounds]
> > x86nops + 1 + 2 + 3 + 4 + 5,
> > ^
> > arch/x86/kernel/alternative.c:98:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+21' is out of bounds. [pointerOutOfBounds]
> > x86nops + 1 + 2 + 3 + 4 + 5 + 6,
> > ^
> > arch/x86/kernel/alternative.c:99:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+28' is out of bounds. [pointerOutOfBounds]
> > x86nops + 1 + 2 + 3 + 4 + 5 + 6 + 7,
> > ^
> > >> arch/x86/kernel/ftrace.c:304:7: warning: union member 'ftrace_op_code_union::code' is never used. [unusedStructMember]
> > char code[OP_REF_SIZE];
> > ^
>
> How do you trigger this?
>
> /me ignores it until there's some info on how those things can be
> reproduced.
Just ignore, cppcheck is a load of crap. I don't know why they bother
running it.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [kbuild-all] Re: [tip:x86/cpu 2/3] arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds.
2021-03-16 8:27 ` Borislav Petkov
@ 2021-03-16 10:01 ` Rong Chen
-1 siblings, 0 replies; 8+ messages in thread
From: Rong Chen @ 2021-03-16 10:01 UTC (permalink / raw)
To: Borislav Petkov, kernel test robot
Cc: Peter Zijlstra, kbuild-all, linux-kernel, x86
On 3/16/21 4:27 PM, Borislav Petkov wrote:
> Yet another useless report!
>
> On Tue, Mar 16, 2021 at 07:50:10AM +0800, kernel test robot wrote:
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu
>> head: 301cddc21a157a3072d789a3097857202e550a24
>> commit: a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 [2/3] x86: Remove dynamic NOP selection
>> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
>>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>>
>> cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
> What's cppcheck?
>
> That?
>
> Description-en: tool for static C/C++ code analysis (CLI)
> Cppcheck is a command-line tool that tries to detect bugs that your
>
>
>>>> arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds. [pointerOutOfBounds]
>> x86nops + 1 + 2 + 3 + 4,
>> ^
>> arch/x86/kernel/alternative.c:97:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+15' is out of bounds. [pointerOutOfBounds]
>> x86nops + 1 + 2 + 3 + 4 + 5,
>> ^
>> arch/x86/kernel/alternative.c:98:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+21' is out of bounds. [pointerOutOfBounds]
>> x86nops + 1 + 2 + 3 + 4 + 5 + 6,
>> ^
>> arch/x86/kernel/alternative.c:99:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+28' is out of bounds. [pointerOutOfBounds]
>> x86nops + 1 + 2 + 3 + 4 + 5 + 6 + 7,
>> ^
>>>> arch/x86/kernel/ftrace.c:304:7: warning: union member 'ftrace_op_code_union::code' is never used. [unusedStructMember]
>> char code[OP_REF_SIZE];
>> ^
> How do you trigger this?
>
> /me ignores it until there's some info on how those things can be
> reproduced.
>
Hi Borislav,
Sorry for the inconvenience, there's a bug in our system which sent
internal reports to outside.
please ignore the warnings.
Best Regards,
Rong Chen
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [tip:x86/cpu 2/3] arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds.
@ 2021-03-16 10:01 ` Rong Chen
0 siblings, 0 replies; 8+ messages in thread
From: Rong Chen @ 2021-03-16 10:01 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2090 bytes --]
On 3/16/21 4:27 PM, Borislav Petkov wrote:
> Yet another useless report!
>
> On Tue, Mar 16, 2021 at 07:50:10AM +0800, kernel test robot wrote:
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu
>> head: 301cddc21a157a3072d789a3097857202e550a24
>> commit: a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 [2/3] x86: Remove dynamic NOP selection
>> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
>>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>>
>> cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
> What's cppcheck?
>
> That?
>
> Description-en: tool for static C/C++ code analysis (CLI)
> Cppcheck is a command-line tool that tries to detect bugs that your
>
>
>>>> arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds. [pointerOutOfBounds]
>> x86nops + 1 + 2 + 3 + 4,
>> ^
>> arch/x86/kernel/alternative.c:97:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+15' is out of bounds. [pointerOutOfBounds]
>> x86nops + 1 + 2 + 3 + 4 + 5,
>> ^
>> arch/x86/kernel/alternative.c:98:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+21' is out of bounds. [pointerOutOfBounds]
>> x86nops + 1 + 2 + 3 + 4 + 5 + 6,
>> ^
>> arch/x86/kernel/alternative.c:99:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+28' is out of bounds. [pointerOutOfBounds]
>> x86nops + 1 + 2 + 3 + 4 + 5 + 6 + 7,
>> ^
>>>> arch/x86/kernel/ftrace.c:304:7: warning: union member 'ftrace_op_code_union::code' is never used. [unusedStructMember]
>> char code[OP_REF_SIZE];
>> ^
> How do you trigger this?
>
> /me ignores it until there's some info on how those things can be
> reproduced.
>
Hi Borislav,
Sorry for the inconvenience, there's a bug in our system which sent
internal reports to outside.
please ignore the warnings.
Best Regards,
Rong Chen
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-03-16 10:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 23:50 [tip:x86/cpu 2/3] arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds kernel test robot
2021-03-15 23:50 ` kernel test robot
2021-03-16 8:27 ` Borislav Petkov
2021-03-16 8:27 ` Borislav Petkov
2021-03-16 9:01 ` Peter Zijlstra
2021-03-16 9:01 ` Peter Zijlstra
2021-03-16 10:01 ` [kbuild-all] " Rong Chen
2021-03-16 10:01 ` Rong Chen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.