Skip to content

Darwin: sysctl kern.uuid returns the same value on two different devices #1058

@d1ss0nanz

Description

@d1ss0nanz

Describe the bug
I have two MacBooks, a 2017 MBP 13 and a 2020 MBP 16.

On both devices InfoStat.HostID holds the same UUID string because the output of sysctl kern.uuid is the same on both systems.

A quick Google search the colliding HostID reveals that the problem is much larger: https://www.google.com/search?q=C86236B2-4976-3542-80CA-74A6B8B4BA03

To Reproduce
[~]$ sysctl kern.uuid kern.uuid: C86236B2-4976-3542-80CA-74A6B8B4BA03 [~]$ ioreg -rd1 -c IOPlatformExpertDevice | grep -E '(UUID)' "IOPlatformUUID" = "E646F33F-0C8D-xxxx-yyyy-8BB62B8C33CD"

[~]$ sysctl kern.uuid kern.uuid: C86236B2-4976-3542-80CA-74A6B8B4BA03 [~]$ ioreg -rd1 -c IOPlatformExpertDevice | grep -E '(UUID)' "IOPlatformUUID" = "F6C92D4C-07EB-aaaa-bbbb-9144BB09C35B"

Expected behavior
There should be different HostIDs returned on different hosts.

Environment:
Machine A:
[~]$ sw_vers ProductName: macOS ProductVersion: 11.2.3 BuildVersion: 20D91 [~]$ uname -a Darwin Daniels-MacBook-Pro.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

Machine B:
[~]$ sw_vers ProductName: macOS ProductVersion: 11.2.3 BuildVersion: 20D91 [~]$ uname -a Darwin Daniels-MacBook-Pro-13.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions