Greeting, FYI, we noticed WARNING:at_drivers/thermal/thermal_sysfs.c:#cooling_device_stats_setup due to commit (built with gcc-11): commit: 790930f44289c8209c57461b2db499fcc702e0b3 ("thermal: core: Introduce thermal_cooling_device_update()") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master [test failed on linus/master 197b6b60ae7bc51dd0814953c562833143b292aa] [test failed on linux-next/master 011eb7443621f49ca1e8cdf9c74c215f25019118] in testcase: kernel-selftests version: kernel-selftests-i386-60acb023-1_20230326 with following parameters: sc_nr_hugepages: 2 group: mm test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel. test-url: https://www.kernel.org/doc/Documentation/kselftest.txt on test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (Kaby Lake) with 32G memory caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): If you fix the issue, kindly add following tag | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-lkp/202303281654.5930cb77-oliver.sang@intel.com [ 10.537181][ T1] ------------[ cut here ]------------ [ 10.542595][ T1] WARNING: CPU: 1 PID: 1 at drivers/thermal/thermal_sysfs.c:879 cooling_device_stats_setup (thermal_sysfs.c:?) [ 10.553411][ T1] Modules linked in: [ 10.557263][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.3.0-rc3-00003-g790930f44289 #1 [ 10.565992][ T1] Hardware name: Dell Inc. OptiPlex 7050/062KRH, BIOS 1.2.0 12/22/2016 [ 10.574199][ T1] EIP: cooling_device_stats_setup (thermal_sysfs.c:?) [ 10.580060][ T1] Code: 28 ab 42 c2 8d 65 f4 5b 5e 5f 5d c3 8d b4 26 00 00 00 00 8d 76 00 8d 86 e4 02 00 00 ba ff ff ff ff e8 b0 5a 32 00 85 c0 75 81 <0f> 0b e9 7a ff ff ff 90 3e 8d 74 26 00 55 89 e5 57 56 53 89 c3 83 All code ======== 0: 28 ab 42 c2 8d 65 sub %ch,0x658dc242(%rbx) 6: f4 hlt 7: 5b pop %rbx 8: 5e pop %rsi 9: 5f pop %rdi a: 5d pop %rbp b: c3 retq c: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 13: 8d 76 00 lea 0x0(%rsi),%esi 16: 8d 86 e4 02 00 00 lea 0x2e4(%rsi),%eax 1c: ba ff ff ff ff mov $0xffffffff,%edx 21: e8 b0 5a 32 00 callq 0x325ad6 26: 85 c0 test %eax,%eax 28: 75 81 jne 0xffffffffffffffab 2a:* 0f 0b ud2 <-- trapping instruction 2c: e9 7a ff ff ff jmpq 0xffffffffffffffab 31: 90 nop 32: 3e 8d 74 26 00 lea %ds:0x0(%rsi,%riz,1),%esi 37: 55 push %rbp 38: 89 e5 mov %esp,%ebp 3a: 57 push %rdi 3b: 56 push %rsi 3c: 53 push %rbx 3d: 89 c3 mov %eax,%ebx 3f: 83 .byte 0x83 Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: e9 7a ff ff ff jmpq 0xffffffffffffff81 7: 90 nop 8: 3e 8d 74 26 00 lea %ds:0x0(%rsi,%riz,1),%esi d: 55 push %rbp e: 89 e5 mov %esp,%ebp 10: 57 push %rdi 11: 56 push %rsi 12: 53 push %rbx 13: 89 c3 mov %eax,%ebx 15: 83 .byte 0x83 [ 10.599689][ T1] EAX: 00000000 EBX: 00000001 ECX: 00000000 EDX: 00000000 [ 10.606761][ T1] ESI: c55e6400 EDI: 00000000 EBP: c35d5de4 ESP: c35d5dd8 [ 10.613829][ T1] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010246 [ 10.621429][ T1] CR0: 80050033 CR2: 00000000 CR3: 025de000 CR4: 003506f0 [ 10.628499][ T1] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 10.635567][ T1] DR6: fffe0ff0 DR7: 00000400 [ 10.640199][ T1] Call Trace: [ 10.643443][ T1] thermal_cooling_device_setup_sysfs (??:?) [ 10.649646][ T1] __thermal_cooling_device_register+0x10f/0x268 [ 10.656542][ T1] thermal_cooling_device_register (??:?) [ 10.662481][ T1] acpi_processor_thermal_init (??:?) [ 10.668074][ T1] __acpi_processor_start (processor_driver.c:?) [ 10.673232][ T1] acpi_processor_start (processor_driver.c:?) [ 10.678215][ T1] really_probe (dd.c:?) [ 10.682677][ T1] __driver_probe_device (dd.c:?) [ 10.687834][ T1] driver_probe_device (dd.c:?) [ 10.692760][ T1] __driver_attach (dd.c:?) [ 10.697395][ T1] ? __device_attach_driver (dd.c:?) [ 10.702727][ T1] bus_for_each_dev (??:?) [ 10.707362][ T1] driver_attach (??:?) [ 10.711737][ T1] ? __device_attach_driver (dd.c:?) [ 10.717066][ T1] bus_add_driver (??:?) [ 10.721614][ T1] ? acpi_pci_slot_init (processor_driver.c:?) [ 10.726600][ T1] driver_register (??:?) [ 10.731149][ T1] ? acpi_pci_slot_init (processor_driver.c:?) [ 10.736133][ T1] acpi_processor_driver_init (processor_driver.c:?) [ 10.741637][ T1] do_one_initcall (??:?) [ 10.746274][ T1] ? rdinit_setup (main.c:?) [ 10.750734][ T1] ? rdinit_setup (main.c:?) [ 10.755200][ T1] do_initcalls (main.c:?) [ 10.759575][ T1] kernel_init_freeable (main.c:?) [ 10.764742][ T1] ? rest_init (main.c:?) [ 10.769116][ T1] kernel_init (main.c:?) [ 10.773401][ T1] ret_from_fork (??:?) [ 10.777779][ T1] irq event stamp: 1863171 [ 10.782150][ T1] hardirqs last enabled at (1863183): __up_console_sem (printk.c:?) [ 10.791054][ T1] hardirqs last disabled at (1863194): __up_console_sem (printk.c:?) [ 10.799958][ T1] softirqs last enabled at (1863106): __do_softirq (??:?) [ 10.808719][ T1] softirqs last disabled at (1863101): do_softirq_own_stack (??:?) [ 10.817977][ T1] ---[ end trace 0000000000000000 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests sudo bin/lkp install job.yaml # job file is attached in this email bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run sudo bin/lkp run generated-yaml-file # if come across any failure that blocks the test, # please remove ~/.lkp and /lkp dir to run from a clean state. -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests