Re: drivers/acpi/acpi_processor.o: warning: objtool: acpi_duplicate_processor_id()+0x49: stack state mismatch: cfa1=7+8 cfa2=6+16

From: Alexander Popov
Date: Thu Nov 08 2018 - 13:59:39 EST


On 06.11.2018 18:50, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 163c8d54a997153ee1a1e07fcac087492ad85b37
> commit: 10e9ae9fabaf96c8e5227c1cd4827d58b3aa406d gcc-plugins: Add STACKLEAK plugin for tracking the kernel stack
> date: 9 weeks ago
> config: x86_64-randconfig-u0-11062149 (attached as .config)
> compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
> reproduce:
> git checkout 10e9ae9fabaf96c8e5227c1cd4827d58b3aa406d
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
>>> drivers/acpi/acpi_processor.o: warning: objtool: acpi_duplicate_processor_id()+0x49: stack state mismatch: cfa1=7+8 cfa2=6+16

Hello!

I have reproduced this problem. It looks like stackleak_cleanup_execute() does
something wrong with RTL which is generated by gcc-5.

I'm working on this.

Best regards,
Alexander