Skip to contentSkip to conversation

stable-rc build: 2 warnings 0 failures (stable-rc/v4.14.13-119-gb32d455)

PATCH Arnd Bergmann 2 participants 5 messages Jan 15, 2018 – Feb 3, 2018 1 message not in the archive Arm (32-bit)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · Olof's autobuilder

Warnings:

arm.allmodconfig:
/tmp/cccX4oa4.s:18153: Warning: using r15 results in unpredictable behaviour /tmp/cccX4oa4.s:18225: Warning: using r15 results in unpredictable behaviour

This appears to be an old issue that only now started to get reported here. From what I can
tell, new versions of binutils warn about two isntructions in the kprobes test:

Maybe we can work around it using a patch like below?

Arnd

(quoted diff) +0 -0

b/arch/arm/probes/kprobes/test-arm.c
index 8866aedfdea2..8b7df0ce04d2 100644

arch/arm/probes/kprobes/test-arm.c +2 -2
@@ -169,10 +169,10 @@ void kprobe_arm_test_cases(void)
 
        /* Data-processing with PC as a target and status registers updated */
        TEST_UNSUPPORTED("movs  pc, r1")
-       TEST_UNSUPPORTED("movs  pc, r1, lsl r2")
+       TEST_UNSUPPORTED(__inst_arm(0xe1b0f211) "       @ movs  pc, r1, lsl r2")
        TEST_UNSUPPORTED("movs  pc, #0x10000")
        TEST_UNSUPPORTED("adds  pc, lr, r1")
-       TEST_UNSUPPORTED("adds  pc, lr, r1, lsl r2")
+       TEST_UNSUPPORTED(__inst_arm(0xe09ef211) "       @ adds  pc,

lr, r1, lsl r2")
TEST_UNSUPPORTED("adds pc, lr, #4")

/* Data-processing with SP as target */

#2 lore raw
Quoted 8 lines · Arnd Bergmann
Quoted 5 lines · Olof's autobuilder

Warnings:

arm.allmodconfig:
/tmp/cccX4oa4.s:18153: Warning: using r15 results in unpredictable behaviour /tmp/cccX4oa4.s:18225: Warning: using r15 results in unpredictable behaviour

Quoted 8 lines

This appears to be an old issue that only now started to get reported here. From what I can
tell, new versions of binutils warn about two isntructions in the kprobes test:

Maybe we can work around it using a patch like below?

Arnd

Can't we just add -Wa,--no-warn for this file?

Quoted 19 lines
arch/arm/probes/kprobes/test-arm.c +2 -2
index 8866aedfdea2..8b7df0ce04d2 100644
@@ -169,10 +169,10 @@ void kprobe_arm_test_cases(void)
 
        /* Data-processing with PC as a target and status registers updated */
        TEST_UNSUPPORTED("movs  pc, r1")
-       TEST_UNSUPPORTED("movs  pc, r1, lsl r2")
+       TEST_UNSUPPORTED(__inst_arm(0xe1b0f211) "       @ movs  pc, r1, lsl r2")
        TEST_UNSUPPORTED("movs  pc, #0x10000")
        TEST_UNSUPPORTED("adds  pc, lr, r1")
-       TEST_UNSUPPORTED("adds  pc, lr, r1, lsl r2")
+       TEST_UNSUPPORTED(__inst_arm(0xe09ef211) "       @ adds  pc,
 lr, r1, lsl r2")
        TEST_UNSUPPORTED("adds  pc, lr, #4")
 
        /* Data-processing with SP as target */
#3 lore raw
Quoted 13 lines · Ard Biesheuvel
Quoted 12 lines · Arnd Bergmann
Quoted 5 lines · Olof's autobuilder

Warnings:

arm.allmodconfig:
/tmp/cccX4oa4.s:18153: Warning: using r15 results in unpredictable behaviour /tmp/cccX4oa4.s:18225: Warning: using r15 results in unpredictable behaviour

This appears to be an old issue that only now started to get reported here. From what I can
tell, new versions of binutils warn about two isntructions in the kprobes test:

Quoted 6 lines
Quoted 4 lines

Maybe we can work around it using a patch like below?

Arnd

Can't we just add -Wa,--no-warn for this file?

Probably (have not tried). Any reason for preferring one approach over the other?
My suggestion for using __inst_arm() was based on that macro already being used a lot in the file, I just don't know if I used it right.

If we turn off the warnings, would you change some of the __inst_arm() back intro the proper instructions?

Quoted 19 lines
Quoted 19 lines
arch/arm/probes/kprobes/test-arm.c +2 -2
index 8866aedfdea2..8b7df0ce04d2 100644
@@ -169,10 +169,10 @@ void kprobe_arm_test_cases(void)
 
        /* Data-processing with PC as a target and status registers updated */
        TEST_UNSUPPORTED("movs  pc, r1")
-       TEST_UNSUPPORTED("movs  pc, r1, lsl r2")
+       TEST_UNSUPPORTED(__inst_arm(0xe1b0f211) "       @ movs  pc, r1, lsl r2")
        TEST_UNSUPPORTED("movs  pc, #0x10000")
        TEST_UNSUPPORTED("adds  pc, lr, r1")
-       TEST_UNSUPPORTED("adds  pc, lr, r1, lsl r2")
+       TEST_UNSUPPORTED(__inst_arm(0xe09ef211) "       @ adds  pc,
 lr, r1, lsl r2")
        TEST_UNSUPPORTED("adds  pc, lr, #4")
 
        /* Data-processing with SP as target */
#4 lore raw
Quoted 22 lines · Arnd Bergmann
Quoted 13 lines · Ard Biesheuvel
Quoted 12 lines · Arnd Bergmann
Quoted 5 lines · Olof's autobuilder

Warnings:

arm.allmodconfig:
/tmp/cccX4oa4.s:18153: Warning: using r15 results in unpredictable behaviour /tmp/cccX4oa4.s:18225: Warning: using r15 results in unpredictable behaviour

This appears to be an old issue that only now started to get reported here. From what I can
tell, new versions of binutils warn about two isntructions in the kprobes test:

Quoted 6 lines
Quoted 4 lines

Maybe we can work around it using a patch like below?

Arnd

Can't we just add -Wa,--no-warn for this file?

Quoted 8 lines

Probably (have not tried). Any reason for preferring one approach over the other?
My suggestion for using __inst_arm() was based on that macro already being used a lot in the file, I just don't know if I used it right.

If we turn off the warnings, would you change some of the __inst_arm() back intro the proper instructions?

TBH I didn't look at the file before replying. But it appears some of the opcodes trigger errors rather than warnings, so we can't get rid of all of them. I still think just disabling assembler warnings is justified here.

Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
arch/arm/probes/kprobes/test-arm.c +2 -2
index 8866aedfdea2..8b7df0ce04d2 100644
@@ -169,10 +169,10 @@ void kprobe_arm_test_cases(void)
 
        /* Data-processing with PC as a target and status registers updated */
        TEST_UNSUPPORTED("movs  pc, r1")
-       TEST_UNSUPPORTED("movs  pc, r1, lsl r2")
+       TEST_UNSUPPORTED(__inst_arm(0xe1b0f211) "       @ movs  pc, r1, lsl r2")
        TEST_UNSUPPORTED("movs  pc, #0x10000")
        TEST_UNSUPPORTED("adds  pc, lr, r1")
-       TEST_UNSUPPORTED("adds  pc, lr, r1, lsl r2")
+       TEST_UNSUPPORTED(__inst_arm(0xe09ef211) "       @ adds  pc,
 lr, r1, lsl r2")
        TEST_UNSUPPORTED("adds  pc, lr, #4")
 
        /* Data-processing with SP as target */
#5 lore raw
Quoted 28 lines · Ard Biesheuvel
Quoted 27 lines · Arnd Bergmann
Quoted 13 lines · Ard Biesheuvel
Quoted 12 lines · Arnd Bergmann
Quoted 5 lines · Olof's autobuilder

Warnings:

arm.allmodconfig:
/tmp/cccX4oa4.s:18153: Warning: using r15 results in unpredictable behaviour /tmp/cccX4oa4.s:18225: Warning: using r15 results in unpredictable behaviour

This appears to be an old issue that only now started to get reported here. From what I can
tell, new versions of binutils warn about two isntructions in the kprobes test:

Quoted 6 lines
Quoted 4 lines

Maybe we can work around it using a patch like below?

Arnd

Can't we just add -Wa,--no-warn for this file?

Probably (have not tried). Any reason for preferring one approach over the other?
My suggestion for using __inst_arm() was based on that macro already being used a lot in the file, I just don't know if I used it right.

Quoted 8 lines
Quoted 3 lines

If we turn off the warnings, would you change some of the __inst_arm() back intro the proper instructions?

TBH I didn't look at the file before replying. But it appears some of the opcodes trigger errors rather than warnings, so we can't get rid of all of them. I still think just disabling assembler warnings is justified here.

I have not put my patch in Russell's tracker yet, but now that I did some tests with LTO, the warning has come back, since in the LTO case, the "-Wa," flags to individual .c files are ignored.

Arnd