X86 platform drivers
 help / color / mirror / Atom feed
From: "Li,Rongqing" <lirongqing@baidu.com>
To: "srinivas.pandruvada@linux.intel.com"
	<srinivas.pandruvada@linux.intel.com>,
	"hansg@kernel.org" <hansg@kernel.org>,
	"ilpo.jarvinen@linux.intel.com" <ilpo.jarvinen@linux.intel.com>
Cc: "platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>
Subject: panic on show_attr
Date: Thu, 20 Nov 2025 01:59:25 +0000	[thread overview]
Message-ID: <719de07e4eb14bd4afcfad9772e5f686@baidu.com> (raw)

When both the intel-uncore-frequency.ko and intel-uncore-frequency-tpmi.ko modules are loaded, if the probing of intel-uncore-frequency-tpmi fails, the intel_uncore_frequency_tpmi module fails to load. However, uncore_freq_common_init() called by intel-uncore-frequency-tpmi has already replaced the uncore_read and uncore_write function pointers with those from intel-uncore-frequency-tpmi. Subsequent access to sysfs will then trigger a kernel panic.

[  288.179765] BUG: kernel NULL pointer dereference, address: 0000000000000000
[  288.179772] #PF: supervisor read access in kernel mode
[  288.179775] #PF: error_code(0x0000) - not-present page
[  288.179776] PGD 7fabf95067 P4D 7fabf95067 PUD 7f929e2067 PMD 0
[  288.179780] Oops: 0000 [#1] PREEMPT SMP NOPTI
[  288.179783] CPU: 137 PID: 56850 Comm: cat Kdump: loaded Tainted: G           OE      6.6.0#3 
[  288.179787] RIP: 0010:uncore_read+0xb9/0x1e0 [intel_uncore_frequency_tpmi]
[  288.179793] Code: 84 df 00 00 00 48 c1 e8 0f 5b 83 e0 7f 69 c0 a0 86 01 00 89 06 31 c0 c3 cc cc cc cc 80 7f f0 00 0f 85 11 01 00 00 48 8b 47 f8 <48> 8b 00 83 e0 7f 5b 69 c0 a0 86 01 00 89 06 31 c0 c3 cc
 cc cc cc
[  288.179796] RSP: 0018:ffffc9000b5bfdb0 EFLAGS: 00010246
[  288.179798] RAX: 0000000000000000 RBX: ffff88ffcac4f400 RCX: 0000000000000000
[  288.179800] RDX: 0000000000000002 RSI: ffffc9000b5bfdc4 RDI: ffff88ffcac4f400
[  288.179801] RBP: 0000000000000002 R08: ffff88ffcb3c7b80 R09: 0000000000001000
[  288.179802] R10: 0000000000001000 R11: 0000000000000000 R12: ffff88ffcb080000
[  288.179803] R13: 0000000000000001 R14: 0000000000000001 R15: ffff88ffcb0b8000
[  288.179804] FS:  00007f6b530b3740(0000) GS:ffff88ff7f840000(0000) knlGS:0000000000000000
[  288.179806] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  288.179808] CR2: 0000000000000000 CR3: 0000007f8f0e0003 CR4: 0000000000770ee0
[  288.179809] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  288.179810] DR3: 0000000000000000 DR6: 00000000fffe07f0 DR7: 0000000000000400
[  288.179812] PKRU: 55555554
[  288.179812] Call Trace:
[  288.179814]  <TASK>
[  288.179816]  ? __die_body+0x1a/0x60
[  288.179822]  ? page_fault_oops+0x15d/0x460
[  288.179827]  ? xas_load+0x9/0xa0
[  288.179831]  ? filemap_get_entry+0xe2/0x160
[  288.179837]  ? exc_page_fault+0x60e/0x7f0
[  288.179840]  ? __mod_memcg_lruvec_state+0x4a/0xa0
[  288.179844]  ? asm_exc_page_fault+0x22/0x30
[  288.179848]  ? uncore_read+0xb9/0x1e0 [intel_uncore_frequency_tpmi]
[  288.179852]  show_attr+0x44/0xa0 [intel_uncore_frequency_common]
[  288.179857]  sysfs_kf_seq_show+0xa7/0x100
[  288.179862]  seq_read_iter+0x186/0x3e0
[  288.179866]  vfs_read+0x214/0x310
[  288.179869]  ksys_read+0x59/0xd0
[  288.179871]  do_syscall_64+0x8a/0x100
[  288.179875]  entry_SYSCALL_64_after_hwframe+0x78/0xe2

             reply	other threads:[~2025-11-20  1:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-20  1:59 Li,Rongqing [this message]
2025-11-20 17:46 ` panic on show_attr srinivas pandruvada
2025-11-20 18:24   ` srinivas pandruvada
2025-11-21  7:26     ` [外部邮件] " Li,Rongqing

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=719de07e4eb14bd4afcfad9772e5f686@baidu.com \
    --to=lirongqing@baidu.com \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=srinivas.pandruvada@linux.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