Linux Power Management development
 help / color / mirror / Atom feed
From: kernel test robot <oliver.sang@intel.com>
To: Daniel Lezcano <daniel.lezcano@kernel.org>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>,
	<linux-pm@vger.kernel.org>, <rafael@kernel.org>,
	<daniel.lezcano@kernel.org>, <rui.zhang@intel.com>,
	<lukasz.luba@arm.com>, <linux-kernel@vger.kernel.org>,
	<oliver.sang@intel.com>
Subject: Re: [PATCH] thermal/core: Fix double device initialization
Date: Sun, 31 May 2026 17:42:10 +0800	[thread overview]
Message-ID: <202605311744.299c79b6-lkp@intel.com> (raw)
In-Reply-To: <20260525151609.2826121-2-daniel.lezcano@kernel.org>



Hello,

kernel test robot noticed "RIP:kobject_get" on:

commit: 01e1401d1389f3fe2815a3f391cb22224ff1bfb5 ("[PATCH] thermal/core: Fix double device initialization")
url: https://github.com/intel-lab-lkp/linux/commits/Daniel-Lezcano/thermal-core-Fix-double-device-initialization/20260525-231836
patch link: https://lore.kernel.org/all/20260525151609.2826121-2-daniel.lezcano@kernel.org/
patch subject: [PATCH] thermal/core: Fix double device initialization

in testcase: boot

config: x86_64-rhel-9.4-rust
compiler: clang-20
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 32G

(please refer to attached dmesg/kmsg for entire log/backtrace)



If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202605311744.299c79b6-lkp@intel.com



[    0.943552][   T21] ------------[ cut here ]------------
[    0.945364][   T21] kobject: 'cooling_device0' ((____ptrval____)): is not initialized, yet kobject_get() is being called.
[    0.949812][   T21] WARNING: lib/kobject.c:642 at kobject_get+0x16/0x80, CPU#0: cpuhp/0/21
[    0.952015][   T21] Modules linked in:
[    0.953029][   T21] CPU: 0 UID: 0 PID: 21 Comm: cpuhp/0 Not tainted 7.1.0-rc4-next-20260522+ #1 PREEMPT(lazy)
[    0.955559][   T21] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[    0.958092][   T21] RIP: 0010:kobject_get (kobject.c:640)
[    0.959340][   T21] Code: 66 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 85 ff 74 3a 53 f6 40 3c 01 75 18 48 8d 3d ca c9 26 01 48 8b 30 48 89 c2 48 89 c3 <67> 48 0f b9 3a 48 89 d8 be 01 00 00 00 b9 01 00 00 00 f0 0f c1 48
All code
========
   0:	66 66 2e 0f 1f 84 00 	data16 cs nopw 0x0(%rax,%rax,1)
   7:	00 00 00 00 
   b:	48 89 f8             	mov    %rdi,%rax
   e:	48 85 ff             	test   %rdi,%rdi
  11:	74 3a                	je     0x4d
  13:	53                   	push   %rbx
  14:	f6 40 3c 01          	testb  $0x1,0x3c(%rax)
  18:	75 18                	jne    0x32
  1a:	48 8d 3d ca c9 26 01 	lea    0x126c9ca(%rip),%rdi        # 0x126c9eb
  21:	48 8b 30             	mov    (%rax),%rsi
  24:	48 89 c2             	mov    %rax,%rdx
  27:	48 89 c3             	mov    %rax,%rbx
  2a:*	67 48 0f b9 3a       	ud1    (%edx),%rdi		<-- trapping instruction
  2f:	48 89 d8             	mov    %rbx,%rax
  32:	be 01 00 00 00       	mov    $0x1,%esi
  37:	b9 01 00 00 00       	mov    $0x1,%ecx
  3c:	f0                   	lock
  3d:	0f                   	.byte 0xf
  3e:	c1                   	.byte 0xc1
  3f:	48                   	rex.W

Code starting with the faulting instruction
===========================================
   0:	67 48 0f b9 3a       	ud1    (%edx),%rdi
   5:	48 89 d8             	mov    %rbx,%rax
   8:	be 01 00 00 00       	mov    $0x1,%esi
   d:	b9 01 00 00 00       	mov    $0x1,%ecx
  12:	f0                   	lock
  13:	0f                   	.byte 0xf
  14:	c1                   	.byte 0xc1
  15:	48                   	rex.W
[    0.964083][   T21] RSP: 0000:ffffcbf2000bbd80 EFLAGS: 00010246
[    0.965592][   T21] RAX: ffff8bdb41ce3018 RBX: ffff8bdb41ce3018 RCX: 0000000000000000
[    0.967573][   T21] RDX: ffff8bdb41ce3018 RSI: ffff8bdb40aba8e0 RDI: ffffffffbe2b18e0
[    0.969551][   T21] RBP: 00000000ffffffea R08: 0000000000000000 R09: ffffffffbd0448fd
[    0.971541][   T21] R10: ffff8bdb41ce3001 R11: ffffffffbc95ce40 R12: ffff8bdb41ce3000
[    0.973500][   T21] R13: ffffffffbd3207d0 R14: ffff8bdb41ce3018 R15: ffff8bdb4180b000
[    0.975475][   T21] FS:  0000000000000000(0000) GS:ffff8be2a1119000(0000) knlGS:0000000000000000
[    0.977684][   T21] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.979292][   T21] CR2: ffff8be27ffff000 CR3: 00000001f3220000 CR4: 00000000000406f0
[    0.981267][   T21] Call Trace:
[    0.982115][   T21]  <TASK>
[    0.982879][   T21]  device_add (base/core.c:3798 base/core.c:3578)
[    0.983946][   T21]  __thermal_cooling_device_register (thermal/thermal_core.c:1039)
[    0.985496][   T21]  acpi_processor_thermal_init (acpi/processor_thermal.c:316)
[    0.986903][   T21]  acpi_soft_cpu_online (acpi/processor_driver.c:167)
[    0.988178][   T21]  cpuhp_invoke_callback (cpu.c:194)
[    0.989488][   T21]  ? smpboot_thread_fn (smpboot.c:?)
[    0.990732][   T21]  cpuhp_thread_fun (cpu.c:1109)
[    0.991912][   T21]  smpboot_thread_fn (smpboot.c:160)
[    0.993138][   T21]  ? smpboot_unregister_percpu_thread (smpboot.c:320)
[    0.994663][   T21]  kthread (kthread.c:436)
[    0.995688][   T21]  ? kthread_blkcg (kthread.c:1737)
[    0.996817][   T21]  ret_from_fork (x86/kernel/process.c:158)
[    0.997947][   T21]  ? kthread_blkcg (kthread.c:1737)
[    0.999098][   T21]  ret_from_fork_asm (x86/entry/entry_64.S:245)
[    1.000269][   T21]  </TASK>
[    1.001042][   T21] ---[ end trace 0000000000000000 ]---


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20260531/202605311744.299c79b6-lkp@intel.com



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


      parent reply	other threads:[~2026-05-31  9:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-25 15:16 [PATCH] thermal/core: Fix double device initialization Daniel Lezcano
2026-05-25 15:29 ` Rafael J. Wysocki
2026-05-25 15:33   ` Rafael J. Wysocki
2026-05-25 15:43   ` Daniel Lezcano
2026-05-31  9:42 ` kernel test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202605311744.299c79b6-lkp@intel.com \
    --to=oliver.sang@intel.com \
    --cc=daniel.lezcano@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=lukasz.luba@arm.com \
    --cc=oe-lkp@lists.linux.dev \
    --cc=rafael@kernel.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox