Greeting,
FYI, we noticed canonical_address#:#[##] due to commit (built with gcc-11):
commit: 8526eb7fc75abcd09d8bd061610215baf0ca948a ("thermal: intel: powerclamp: Use powercap idle-inject feature")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
[test failed on linux-next/master 73f2c2a7e1d2b31fdd5faa6dfa151c437a6c0a5a]
in testcase: pm-qa
version: pm-qa-x86_64-5ead848-1_20220523
with following parameters:
test: thermal
on test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (Haswell) with 8G 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 <[email protected]>
| Link: https://lore.kernel.org/oe-lkp/[email protected]
[ 34.952519][ T325]
[ 34.952528][ T325]
[ 34.974513][ T325]
[ 34.974528][ T325]
[ 35.687958][ T936] Consider using thermal netlink events interface
[ 35.767075][ T936] general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] SMP KASAN PTI
[ 35.778317][ T936] KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
[ 35.786601][ T936] CPU: 2 PID: 936 Comm: thermal_02.sh Tainted: G I 6.2.0-rc5-00078-g8526eb7fc75a #1
[ 35.797228][ T936] Hardware name: Gigabyte Technology Co., Ltd. Z87X-UD5H/Z87X-UD5H-CF, BIOS F9 03/18/2014
[ 35.806988][ T936] RIP: 0010:idle_inject_set_duration (kbuild/src/consumer/drivers/powercap/idle_inject.c:176 (discriminator 2))
[ 35.813014][ T936] Code: 00 00 85 f6 74 70 55 89 d5 53 48 83 ec 08 85 d2 74 5d 48 b8 00 00 00 00 00 fc ff df 48 89 fb 48 8d 7f 44 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 38 48
All code
========
0: 00 00 add %al,(%rax)
2: 85 f6 test %esi,%esi
4: 74 70 je 0x76
6: 55 push %rbp
7: 89 d5 mov %edx,%ebp
9: 53 push %rbx
a: 48 83 ec 08 sub $0x8,%rsp
e: 85 d2 test %edx,%edx
10: 74 5d je 0x6f
12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
19: fc ff df
1c: 48 89 fb mov %rdi,%rbx
1f: 48 8d 7f 44 lea 0x44(%rdi),%rdi
23: 48 89 fa mov %rdi,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
2a:* 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction
2e: 48 89 f8 mov %rdi,%rax
31: 83 e0 07 and $0x7,%eax
34: 83 c0 03 add $0x3,%eax
37: 38 d0 cmp %dl,%al
39: 7c 04 jl 0x3f
3b: 84 d2 test %dl,%dl
3d: 75 38 jne 0x77
3f: 48 rex.W
Code starting with the faulting instruction
===========================================
0: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx
4: 48 89 f8 mov %rdi,%rax
7: 83 e0 07 and $0x7,%eax
a: 83 c0 03 add $0x3,%eax
d: 38 d0 cmp %dl,%al
f: 7c 04 jl 0x15
11: 84 d2 test %dl,%dl
13: 75 38 jne 0x4d
15: 48 rex.W
[ 35.832486][ T936] RSP: 0018:ffffc90001adfc60 EFLAGS: 00010203
[ 35.838421][ T936] RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000001
[ 35.846268][ T936] RDX: 0000000000000008 RSI: 0000000000091050 RDI: 0000000000000044
[ 35.854115][ T936] RBP: 0000000000001770 R08: 0000000000000001 R09: ffffc90001adfc27
[ 35.861959][ T936] R10: fffff5200035bf84 R11: 0000000000000001 R12: 0000000000000000
[ 35.869803][ T936] R13: ffff888121ebdb28 R14: ffff888121ebd800 R15: 0000000000000000
[ 35.877661][ T936] FS: 00007f2ded69d580(0000) GS:ffff8881d9700000(0000) knlGS:0000000000000000
[ 35.886461][ T936] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 35.892919][ T936] CR2: 000055b30712fd30 CR3: 000000023ef9c002 CR4: 00000000001706e0
[ 35.900766][ T936] Call Trace:
[ 35.903926][ T936] <TASK>
[ 35.906739][ T936] powerclamp_set_cur_state (kbuild/src/consumer/drivers/thermal/intel/intel_powerclamp.c:589) intel_powerclamp
[ 35.913633][ T936] cur_state_store (kbuild/src/consumer/drivers/thermal/thermal_sysfs.c:637)
[ 35.918277][ T936] ? temp_show (kbuild/src/consumer/drivers/thermal/thermal_sysfs.c:616)
[ 35.922393][ T936] ? __mutex_lock_slowpath (kbuild/src/consumer/kernel/locking/mutex.c:282)
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