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
All warnings (new ones prefixed by >>):
Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
Cyclomatic Complexity 1 include/linux/cpumask.h:free_cpumask_var
Cyclomatic Complexity 1 arch/x86/include/asm/topology.h:arch_fix_phys_package_id
Cyclomatic Complexity 1 include/linux/kasan.h:kasan_kmalloc
Cyclomatic Complexity 28 include/linux/slab.h:kmalloc_index
Cyclomatic Complexity 1 include/linux/slab.h:kmem_cache_alloc_trace
Cyclomatic Complexity 1 include/linux/slab.h:kmalloc_order_trace
Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
Cyclomatic Complexity 5 include/linux/slab.h:kmalloc
Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
Cyclomatic Complexity 1 include/acpi/acpi_bus.h:acpi_driver_data
Cyclomatic Complexity 1 arch/x86/include/asm/acpi.h:acpi_has_cpu_in_madt
Cyclomatic Complexity 1 include/linux/acpi.h:invalid_logical_cpuid
Cyclomatic Complexity 1 include/linux/acpi.h:invalid_phys_cpuid
Cyclomatic Complexity 1 drivers/acpi/acpi_processor.c:acpi_processor_hotadd_init
Cyclomatic Complexity 1 drivers/acpi/acpi_processor.c:acpi_processor_container_attach
Cyclomatic Complexity 7 drivers/acpi/acpi_processor.c:processor_validated_ids_update
Cyclomatic Complexity 1 drivers/acpi/acpi_processor.c:acpi_processor_check_duplicates
Cyclomatic Complexity 6 drivers/acpi/acpi_processor.c:acpi_hwp_native_thermal_lvt_osc
Cyclomatic Complexity 3 include/linux/bitmap.h:bitmap_zero
Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_clear
Cyclomatic Complexity 1 include/linux/cpumask.h:zalloc_cpumask_var
Cyclomatic Complexity 8 drivers/acpi/acpi_processor.c:acpi_processor_errata_piix4
Cyclomatic Complexity 2 drivers/acpi/acpi_processor.c:acpi_processor_errata
Cyclomatic Complexity 6 drivers/acpi/acpi_processor.c:acpi_processor_ids_walk
Cyclomatic Complexity 2 drivers/acpi/acpi_processor.c:acpi_early_processor_osc
Cyclomatic Complexity 3 drivers/acpi/acpi_processor.c:acpi_duplicate_processor_id
Cyclomatic Complexity 17 drivers/acpi/acpi_processor.c:acpi_processor_get_info
Cyclomatic Complexity 9 drivers/acpi/acpi_processor.c:acpi_processor_add
Cyclomatic Complexity 1 drivers/acpi/acpi_processor.c:acpi_processor_init
Cyclomatic Complexity 1 drivers/acpi/acpi_processor.c:_GLOBAL__sub_I_65535_0_acpi_early_processor_osc
>> drivers/acpi/acpi_processor.o: warning: objtool: acpi_duplicate_processor_id()+0x49: stack state mismatch: cfa1=7+8 cfa2=6+16
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
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