From nobody Sun Dec 8 01:43:22 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y5SSX0cg6z5fpwg for ; Sun, 08 Dec 2024 01:43:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y5SSW4X7Sz4hpX for ; Sun, 8 Dec 2024 01:43:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733622203; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QtcdvTL7jKydqAbBkB4pA9w1oNboREOlUZe4ocscHs4=; b=p5H/mUlkZ176GNr35erertrKL2gQ5vNzS7j/vjAklA15/EU2qo+09IoTRRL1N+txe9q0iJ 9Kqt0GOk1ZCIODLkB5sSoBHqfXe3jiXqu9mM0M/F4nvW28PxmXbK+gF+6lQ2LXav2xG0kF xbcZt9Z39jIyHR0sMlyjJmj3i+SlKtkf609sZ65zEka5VB8TO0RXp1pPktPE2B/wxL7KFR Ow95JLundUMz+LFXcEMEEZN3jKYJlvTDkCmr0vtpETA2RzkHI1PiZvtF0EWWtZ/jSQbh1J I3HfSUh/JQQccHHnqywf5WTQdTuq0ydoz98CFyt4hUB7TL/rntGDHQma4vRf6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733622203; a=rsa-sha256; cv=none; b=DPNDDulqDLGlKsyDckeN+MxbOYU+C2vqcpE8KUCz5qtxGHKxOOzMUZdizEw3j77aEp+OdI SgxfdHma0kmFlqnzpOujBo5+2lcccwila3OJ1cGsswd1FXWQ5b1E742DeC0zYep/1DgsCQ Kc6h9EvUK68Cd3cKBP+NViE1hwEUd2EtdHhrbXgI6oTY9TVrYNqiirlf4JHfH27AwGGilq owHDhabdpyG5Sk0UNsZGc+MJHojDd+k7wh4cRBMUkOqoRrToifwuDyqFrg1yEonrxWobKv LeQhRzmXvhAGGRyo4FuvWCQaNxziVxATdRh3bf1dQaJO0bmO058xjvMAjZcwlA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y5SSV5rC7zYGF for ; Sun, 8 Dec 2024 01:43:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4B81hMDJ032843 for ; Sun, 8 Dec 2024 01:43:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B81hMgQ032842 for bugs@FreeBSD.org; Sun, 8 Dec 2024 01:43:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283187] dev/random doesn't seem to utilize hardware feature(s) on AMD Zen family Date: Sun, 08 Dec 2024 01:43:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: diizzy@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283187 Bug ID: 283187 Summary: dev/random doesn't seem to utilize hardware feature(s) on AMD Zen family Product: Base System Version: 14.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: diizzy@FreeBSD.org CC: cem@freebsd.org, delphij@FreeBSD.org, emaste@freebsd.org, glebius@FreeBSD.org, gordon@FreeBSD.org, markm@FreeBSD.org Hi, Maybe I'm reading the code incorrectly and misunderstand how kern.random.random_sources is supposed to work but from what I can tell it doesn't seem like the kernel is using RDSEED (and RDRAND) which is availabl= e on AMD Zen CPUs? # sysctl kern.random.random_sources kern.random.random_sources: References: https://www.amd.com/content/dam/amd/en/documents/developer/amd-secure-rando= m-number-generator-library-2.0-whitepaper.pdf https://www.uops.info/html-instr/RDSEED_R64.html dmesg output: CPU: AMD Ryzen 9 7900 12-Core Processor (3693.12-MHz K8-class = CPU) Origin=3D"AuthenticAMD" Id=3D0xa60f12 Family=3D0x19 Model=3D0x61 Step= ping=3D2 =20 Features=3D0x178bfbff =20 Features2=3D0x7ef8320b AMD Features=3D0x2e500800 AMD Features2=3D0x75c237ff Structured Extended Features=3D0xf1bf97a9 Structured Extended Features2=3D0x405fde Structured Extended Features3=3D0x10000010 XSAVE Features=3D0xf AMD Extended Feature Extensions ID EBX=3D0x791ef257 SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=3D32768 TSC: P-state invariant, performance statistics --=20 You are receiving this mail because: You are the assignee for the bug.=