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] [thread-next>] [day] [month] [year] [list]
Message-ID: <eb041c610719c8275d321c4c420c0b006d31d9f4.camel@web.de>
Date: Wed, 26 Mar 2025 00:21:53 +0100
From: Bert Karwatzki <spasswolf@....de>
To: Balbir Singh <balbirs@...dia.com>, Christian König
	 <christian.koenig@....com>
Cc: Ingo Molnar <mingo@...nel.org>, Kees Cook <kees@...nel.org>, Bjorn
 Helgaas	 <bhelgaas@...gle.com>, Linus Torvalds
 <torvalds@...ux-foundation.org>, Peter Zijlstra <peterz@...radead.org>,
 Andy Lutomirski <luto@...nel.org>, Alex Deucher	
 <alexander.deucher@....com>, linux-kernel@...r.kernel.org, 
	amd-gfx@...ts.freedesktop.org, spasswolf@....de
Subject: Re: commit 7ffb791423c7 breaks steam game

Am Mittwoch, dem 26.03.2025 um 09:45 +1100 schrieb Balbir Singh:
>
>
> The second region seems to be additional, I suspect that is HMM mapping from kgd2kfd_init_zone_device()
>
> Balbir Singh
>
Good guess! I inserted a printk into kgd2kfd_init_zone_device():

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
b/drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
index d05d199b5e44..201220e2ac42 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
@@ -1049,6 +1049,8 @@ int kgd2kfd_init_zone_device(struct amdgpu_device *adev)
                pgmap->range.end = res->end;
                pgmap->type = MEMORY_DEVICE_PRIVATE;
        }
+       dev_info(adev->dev, "%s: range.start = 0x%llx ranges.end = 0x%llx\n",
+                       __func__, pgmap->range.start, pgmap->range.end);

        pgmap->nr_range = 1;
        pgmap->ops = &svm_migrate_pgmap_ops;


and get this in the case without nokaslr:

[    T367] amdgpu 0000:03:00.0: kfd_migrate: kgd2kfd_init_zone_device:
range.start = 0xafe00000000 ranges.end = 0xaffffffffff

and this in the case with nokaslr:

[    T365] amdgpu 0000:03:00.0: kfd_migrate: kgd2kfd_init_zone_device:
range.start = 0x3ffe00000000 ranges.end = 0x3fffffffffff

Bert Karwatzki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ