Memory page fault when benchmarking GPU with Hashcat on Framework 13th AMD Ryzen 7 7840U

Which Linux distro are you using?
NixOS 24.05

Which release version?
(if rolling release without a release version, skip this question)
24.05 (latest kernel from upstream however 6.10.9 #1-NixOS SMP PREEMPT_DYNAMIC Sun Sep 8 05:56:41 UTC 2024 x86_64 GNU/Linux)

(If rolling release, last date updated?)

Which kernel are you using?
Linux hostname 6.10.9 #1-NixOS SMP PREEMPT_DYNAMIC Sun Sep 8 05:56:41 UTC 2024 x86_64 GNU/Linux
Which BIOS version are you using?
3.05
Which Framework Laptop 13 model are you using? (AMD Ryzen™ 7040 Series, Intel® Core™ Ultra Series 1, 13th Gen Intel® Core™ , 12th Gen Intel® Core™, 11th Gen Intel® Core™)
AMD Ryzen 7040 series with 64GB RAM

I have an eGPU plugged in but I don’t have the drivers and I don’t think it was used during the benchmarking :

hashcat (6.2.6) starting in benchmark mode

Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.

/sys/bus/pci/devices/0000:c1:00.0/hwmon/hwmon8/pwm1: No such file or directory

OpenCL API (OpenCL 2.1 AMD-APP (3602.0)) - Platform #1 [Advanced Micro Devices, Inc.]
=====================================================================================
* Device #1: AMD Radeon Graphics, 29952/30039 MB (25533 MB allocatable), 6MCU

Benchmark relevant options:
===========================
* --optimized-kernel-enable

-------------------
* Hash-Mode 0 (MD5)
-------------------

Speed.#1.........:  6301.1 MH/s (63.17ms) @ Accel:512 Loops:512 Thr:256 Vec:1

----------------------
* Hash-Mode 100 (SHA1)
----------------------

Speed.#1.........:  2603.6 MH/s (76.62ms) @ Accel:128 Loops:1024 Thr:256 Vec:1

---------------------------
* Hash-Mode 1400 (SHA2-256)
---------------------------

Speed.#1.........:  1143.3 MH/s (87.28ms) @ Accel:64 Loops:1024 Thr:256 Vec:1

---------------------------
* Hash-Mode 1700 (SHA2-512)
---------------------------

Speed.#1.........:   257.8 MH/s (96.63ms) @ Accel:256 Loops:128 Thr:128 Vec:1

-------------------------------------------------------------
* Hash-Mode 22000 (WPA-PBKDF2-PMKID+EAPOL) [Iterations: 4095]
-------------------------------------------------------------

Speed.#1.........:   128.1 kH/s (88.52ms) @ Accel:32 Loops:1024 Thr:256 Vec:1

-----------------------
* Hash-Mode 1000 (NTLM)
-----------------------

Speed.#1.........: 11811.9 MH/s (67.39ms) @ Accel:1024 Loops:1024 Thr:128 Vec:1

---------------------
* Hash-Mode 3000 (LM)
---------------------

Speed.#1.........:  6647.9 MH/s (59.84ms) @ Accel:2048 Loops:1024 Thr:32 Vec:1

--------------------------------------------
* Hash-Mode 5500 (NetNTLMv1 / NetNTLMv1+ESS)
--------------------------------------------

Speed.#1.........:  6383.4 MH/s (62.21ms) @ Accel:4096 Loops:512 Thr:32 Vec:1

----------------------------
* Hash-Mode 5600 (NetNTLMv2)
----------------------------

Speed.#1.........:   338.1 MH/s (73.53ms) @ Accel:64 Loops:256 Thr:256 Vec:1

--------------------------------------------------------
* Hash-Mode 1500 (descrypt, DES (Unix), Traditional DES)
--------------------------------------------------------

Speed.#1.........:   107.8 MH/s (57.69ms) @ Accel:4 Loops:1024 Thr:256 Vec:1

------------------------------------------------------------------------------
* Hash-Mode 500 (md5crypt, MD5 (Unix), Cisco-IOS $1$ (MD5)) [Iterations: 1000]
------------------------------------------------------------------------------

Speed.#1.........:  1447.9 kH/s (52.12ms) @ Accel:1024 Loops:500 Thr:32 Vec:1

----------------------------------------------------------------
* Hash-Mode 3200 (bcrypt $2*$, Blowfish (Unix)) [Iterations: 32]
----------------------------------------------------------------

Speed.#1.........:     5852 H/s (55.39ms) @ Accel:4 Loops:32 Thr:16 Vec:1

--------------------------------------------------------------------
* Hash-Mode 1800 (sha512crypt $6$, SHA512 (Unix)) [Iterations: 5000]
--------------------------------------------------------------------

Speed.#1.........:    35546 H/s (90.30ms) @ Accel:512 Loops:512 Thr:64 Vec:1

--------------------------------------------------------
* Hash-Mode 7500 (Kerberos 5, etype 23, AS-REQ Pre-Auth)
--------------------------------------------------------

Speed.#1.........:   107.5 MH/s (58.17ms) @ Accel:256 Loops:128 Thr:32 Vec:1

-------------------------------------------------
* Hash-Mode 13100 (Kerberos 5, etype 23, TGS-REP)
-------------------------------------------------

Speed.#1.........:   133.2 MH/s (94.09ms) @ Accel:64 Loops:1024 Thr:32 Vec:1

---------------------------------------------------------------------------------
* Hash-Mode 15300 (DPAPI masterkey file v1 (context 1 and 2)) [Iterations: 23999]
---------------------------------------------------------------------------------

Memory access fault by GPU node-1 (Agent handle: 0x29f4d890) on address 0x7fb557001000. Reason: Page not present or supervisor privilege.
[1]    2422506 abort (core dumped)  hashcat -b

I’m running Plasma KDE 6 on Wayland.

Any clue as to what could have happened @Mario_Limonciello ?

Saw this in dmesg :

[779582.562067] amdgpu 0000:c1:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:9 pasid:32773)
[779582.562079] amdgpu 0000:c1:00.0: amdgpu:  in process .hashcat-wrappe pid 2422506 thread .hashcat-wrappe pid 2422506)
[779582.562083] amdgpu 0000:c1:00.0: amdgpu:   in page starting at address 0x00007fb557001000 from client 10
[779582.562086] amdgpu 0000:c1:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00901031
[779582.562089] amdgpu 0000:c1:00.0: amdgpu: 	Faulty UTCL2 client ID: TCP (0x8)
[779582.562091] amdgpu 0000:c1:00.0: amdgpu: 	MORE_FAULTS: 0x1
[779582.562093] amdgpu 0000:c1:00.0: amdgpu: 	WALKER_ERROR: 0x0
[779582.562095] amdgpu 0000:c1:00.0: amdgpu: 	PERMISSION_FAULTS: 0x3
[779582.562097] amdgpu 0000:c1:00.0: amdgpu: 	MAPPING_ERROR: 0x0
[779582.562099] amdgpu 0000:c1:00.0: amdgpu: 	RW: 0x0
[779582.562112] amdgpu 0000:c1:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:9 pasid:32773)
[779582.562116] amdgpu 0000:c1:00.0: amdgpu:  in process .hashcat-wrappe pid 2422506 thread .hashcat-wrappe pid 2422506)
[779582.562119] amdgpu 0000:c1:00.0: amdgpu:   in page starting at address 0x00007fb557001000 from client 10
[779582.562122] amdgpu 0000:c1:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00901030
[779582.562124] amdgpu 0000:c1:00.0: amdgpu: 	Faulty UTCL2 client ID: TCP (0x8)
[779582.562127] amdgpu 0000:c1:00.0: amdgpu: 	MORE_FAULTS: 0x0
[779582.562129] amdgpu 0000:c1:00.0: amdgpu: 	WALKER_ERROR: 0x0
[779582.562131] amdgpu 0000:c1:00.0: amdgpu: 	PERMISSION_FAULTS: 0x3
[779582.562133] amdgpu 0000:c1:00.0: amdgpu: 	MAPPING_ERROR: 0x0
[779582.562136] amdgpu 0000:c1:00.0: amdgpu: 	RW: 0x0
[779582.562141] amdgpu 0000:c1:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:9 pasid:32773)
[779582.562145] amdgpu 0000:c1:00.0: amdgpu:  in process .hashcat-wrappe pid 2422506 thread .hashcat-wrappe pid 2422506)
[779582.562148] amdgpu 0000:c1:00.0: amdgpu:   in page starting at address 0x00007fb557001000 from client 10
[779582.562151] amdgpu 0000:c1:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00000000
[779582.562153] amdgpu 0000:c1:00.0: amdgpu: 	Faulty UTCL2 client ID: CB/DB (0x0)
[779582.562155] amdgpu 0000:c1:00.0: amdgpu: 	MORE_FAULTS: 0x0
[779582.562158] amdgpu 0000:c1:00.0: amdgpu: 	WALKER_ERROR: 0x0
[779582.562160] amdgpu 0000:c1:00.0: amdgpu: 	PERMISSION_FAULTS: 0x0
[779582.562162] amdgpu 0000:c1:00.0: amdgpu: 	MAPPING_ERROR: 0x0
[779582.562164] amdgpu 0000:c1:00.0: amdgpu: 	RW: 0x0
[779582.562994] amdgpu: sq_intr: error, detail 0x00000000, type 2, sh 1, priv 1, wave_id 3, simd_id 0, wgp_id 0
[779582.563027] amdgpu: sq_intr: error, detail 0x00000000, type 2, sh 1, priv 1, wave_id 3, simd_id 0, wgp_id 0
[779582.563035] amdgpu: sq_intr: error, detail 0x00000000, type 2, sh 1, priv 1, wave_id 3, simd_id 0, wgp_id 0
[779582.563043] amdgpu: sq_intr: error, detail 0x00000000, type 2, sh 1, priv 1, wave_id 3, simd_id 0, wgp_id 0

Never saw the last lines before, the page fault happens from time to time but they’re not impactful much.

If anyone is able to reproduce on others kernels feel free to leave a comment here.

Presumably this is a bug in either hashcat or mesa. You should file bugs with those projects to dig into it.

1 Like