Skip to contentSkip to conversation

x86_64 build failure of next-20220715 and next-20220718 with clang

DISCUSSION Sudip Mukherjee (Codethink) 2 participants 3 messages Jul 18, 2022

lore
Share & tools
lore
#0 lore raw

Hi All,

Not sure if its reported, builds of x86_64 allmodconfig of next-20220715 and next-20220718 with clang are showing lots of new warnings like:

warning: objtool: asan.module_dtor+0x15: 'naked' return found in RETHUNK build

--
Regards
Sudip

#1 lore raw

Hi Sudip,

Quoted 6 lines · Sudip Mukherjee (Codethink)

Hi All,

Not sure if its reported, builds of x86_64 allmodconfig of next-20220715 and next-20220718 with clang are showing lots of new warnings like:

warning: objtool: asan.module_dtor+0x15: 'naked' return found in RETHUNK build

Thanks for the report! Nick fixed this in LLVM, it was a problem with compiler generated functions like the ones that are generated with KASAN, KCSAN, and GCOV having 'ret' instead of 'jmp __x86_return_thunk':

https://github.com/llvm/llvm-project/commit/140bfdca60ae8b1b2ad115846379e3c9ca914bfb

With that change, you should see no warnings of that nature with allmodconfig anymore. Thanks for the continuous testing!

Cheers,
Nathan

#2 lore raw
Quoted 11 lines · Nathan Chancellor

Hi Sudip,

Quoted 6 lines · Sudip Mukherjee (Codethink)

Hi All,

Not sure if its reported, builds of x86_64 allmodconfig of next-20220715 and next-20220718 with clang are showing lots of new warnings like:

warning: objtool: asan.module_dtor+0x15: 'naked' return found in RETHUNK build

Quoted 8 lines

Thanks for the report! Nick fixed this in LLVM, it was a problem with compiler generated functions like the ones that are generated with KASAN, KCSAN, and GCOV having 'ret' instead of 'jmp __x86_return_thunk':

https://github.com/llvm/llvm-project/commit/140bfdca60ae8b1b2ad115846379e3c9ca914bfb

With that change, you should see no warnings of that nature with allmodconfig anymore. Thanks for the continuous testing!

Thanks Nathan. Built again and confirmed that has indeed fixed the warnings.

Signature · 2 lines
Regards
Sudip