lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202502171113.9faaae-lkp@intel.com>
Date: Mon, 17 Feb 2025 13:03:49 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Cryolitia PukNgae via B4 Relay <devnull+Cryolitia.gmail.com@...nel.org>
CC: <oe-lkp@...ts.linux.dev>, <lkp@...el.com>, <linux-kernel@...r.kernel.org>,
	<linux-hwmon@...r.kernel.org>, Jean Delvare <jdelvare@...e.com>, "Guenter
 Roeck" <linux@...ck-us.net>, Cryolitia PukNgae <Cryolitia@...il.com>,
	"Jonathan Corbet" <corbet@....net>, <linux-doc@...r.kernel.org>, Celeste Liu
	<CoelacanthusHex@...il.com>, Yao Zi <ziyao@...root.org>, Derek John Clark
	<derekjohn.clark@...il.com>, Marcin StrÄ…gowski
	<marcin@...agowski.com>, someone5678 <someone5678.dev@...il.com>, "Justin
 Weiss" <justin@...tinweiss.com>, <oliver.sang@...el.com>
Subject: Re: [PATCH v5 1/2] hwmon: add GPD devices sensor driver



Hello,

kernel test robot noticed "Oops:general_protection_fault,probably_for_non-canonical_address#:#[##]PREEMPT_KASAN" on:

commit: 143d683070d6cedc02b6406f98f21bd5ffed8a70 ("[PATCH v5 1/2] hwmon: add GPD devices sensor driver")
url: https://github.com/intel-lab-lkp/linux/commits/Cryolitia-PukNgae-via-B4-Relay/hwmon-add-GPD-devices-sensor-driver/20250211-150418
patch link: https://lore.kernel.org/all/20250211-gpd_fan-v5-1-608f4255f0e1@gmail.com/
patch subject: [PATCH v5 1/2] hwmon: add GPD devices sensor driver

in testcase: boot

config: x86_64-randconfig-004-20250215
compiler: gcc-12
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

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


+--------------------------------------------------------------------------------------+-------+------------+
|                                                                                      | v6.13 | 143d683070 |
+--------------------------------------------------------------------------------------+-------+------------+
| boot_successes                                                                       | 12    | 0          |
| boot_failures                                                                        | 0     | 12         |
| Oops:general_protection_fault,probably_for_non-canonical_address#:#[##]PREEMPT_KASAN | 0     | 12         |
| KASAN:null-ptr-deref_in_range[#-#]                                                   | 0     | 12         |
| RIP:gpd_fan_init                                                                     | 0     | 12         |
| Kernel_panic-not_syncing:Fatal_exception                                             | 0     | 12         |
+--------------------------------------------------------------------------------------+-------+------------+


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@...el.com>
| Closes: https://lore.kernel.org/oe-lkp/202502171113.9faaae-lkp@intel.com


[   24.206559][    T1] pps_ldisc: PPS line discipline registered
[   24.221748][    T1] Driver for 1-wire Dallas network protocol.
[   24.228882][    T1] usbcore: registered new interface driver DS9490R
[   24.241341][    T1] applesmc: supported laptop not found!
[   24.245457][    T1] applesmc: driver init failed (ret=-19)!
[   24.253994][    T1] Oops: general protection fault, probably for non-canonical address 0xdffffc000000002a: 0000 [#1] PREEMPT KASAN
[   24.255395][    T1] KASAN: null-ptr-deref in range [0x0000000000000150-0x0000000000000157]
[   24.255395][    T1] CPU: 0 UID: 0 PID: 1 Comm: swapper Tainted: G                T  6.13.0-00001-g143d683070d6 #1
[   24.255395][    T1] Tainted: [T]=RANDSTRUCT
[   24.255395][    T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 24.255395][ T1] RIP: 0010:gpd_fan_init (kbuild/src/consumer/drivers/hwmon/gpd-fan.c:568) 
[ 24.255395][ T1] Code: c5 08 eb b2 48 c7 c7 40 16 90 87 e8 49 ea b6 f9 48 8d b8 50 01 00 00 49 89 c5 b8 ff ff 37 00 48 c1 e0 2a 48 89 fa 48 c1 ea 03 <80> 3c 02 00 74 05 e8 a7 5d e9 f5 4d 8b bd 50 01 00 00 b8 ed ff ff
All code
========
   0:	c5 08 eb             	(bad)
   3:	b2 48                	mov    $0x48,%dl
   5:	c7 c7 40 16 90 87    	mov    $0x87901640,%edi
   b:	e8 49 ea b6 f9       	call   0xfffffffff9b6ea59
  10:	48 8d b8 50 01 00 00 	lea    0x150(%rax),%rdi
  17:	49 89 c5             	mov    %rax,%r13
  1a:	b8 ff ff 37 00       	mov    $0x37ffff,%eax
  1f:	48 c1 e0 2a          	shl    $0x2a,%rax
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
  2a:*	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)		<-- trapping instruction
  2e:	74 05                	je     0x35
  30:	e8 a7 5d e9 f5       	call   0xfffffffff5e95ddc
  35:	4d 8b bd 50 01 00 00 	mov    0x150(%r13),%r15
  3c:	b8                   	.byte 0xb8
  3d:	ed                   	in     (%dx),%eax
  3e:	ff                   	(bad)
  3f:	ff                   	.byte 0xff

Code starting with the faulting instruction
===========================================
   0:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   4:	74 05                	je     0xb
   6:	e8 a7 5d e9 f5       	call   0xfffffffff5e95db2
   b:	4d 8b bd 50 01 00 00 	mov    0x150(%r13),%r15
  12:	b8                   	.byte 0xb8
  13:	ed                   	in     (%dx),%eax
  14:	ff                   	(bad)
  15:	ff                   	.byte 0xff
[   24.255395][    T1] RSP: 0018:ffffc9000001fcd8 EFLAGS: 00010202
[   24.255395][    T1] RAX: dffffc0000000000 RBX: 1ffff92000003f9c RCX: ffffffff8c800034
[   24.255395][    T1] RDX: 000000000000002a RSI: 0000000000000001 RDI: 0000000000000150
[   24.255395][    T1] RBP: ffffc9000001fd88 R08: 0000000e56910ec6 R09: 0000000e56910ec6
[   24.255395][    T1] R10: fffffbfff130e5ad R11: ffffffff8261d8e0 R12: ffffc9000001fd60
[   24.255395][    T1] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
[   24.255395][    T1] FS:  0000000000000000(0000) GS:ffffffff8890a000(0000) knlGS:0000000000000000
[   24.255395][    T1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   24.255395][    T1] CR2: 00007fd5127dc480 CR3: 00000000088d4000 CR4: 00000000000406b0
[   24.255395][    T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   24.255395][    T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   24.255395][    T1] Call Trace:
[   24.255395][    T1]  <TASK>
[ 24.255395][ T1] ? show_regs (kbuild/src/consumer/arch/x86/kernel/dumpstack.c:479) 
[ 24.255395][ T1] ? __die_body (kbuild/src/consumer/arch/x86/kernel/dumpstack.c:421) 
[ 24.255395][ T1] ? die_addr (kbuild/src/consumer/arch/x86/kernel/dumpstack.c:455) 
[ 24.255395][ T1] ? exc_general_protection (kbuild/src/consumer/arch/x86/kernel/traps.c:751 kbuild/src/consumer/arch/x86/kernel/traps.c:693) 


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



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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ