From nobody Sun Aug 11 06:53:19 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 4WhSz42GHTz5Slpq for ; Sun, 11 Aug 2024 06:53:20 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WhSz402Zyz45Px for ; Sun, 11 Aug 2024 06:53:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723359200; a=rsa-sha256; cv=none; b=mOoP3ASrMdd+/ckop+013lQGw1CKxucz0hofb/8vWZi8JOUl3GfwNUkRyjfSL49vxjFmhJ wqUNt/cl3or7qizd4FZuegOnXbh7N2T3LQvrlQbla30a4hUiprhv9RqFGdQChE6sp2UzT9 DA4LwqmB2mSqyh5JiiI5PryGlgOFQUEWNrzNJ6/WzR0Bxpwy68QTpxut1kOlUuUrzL2rvL jV1Zl98kGnVexDOhbS4Xc9+SZKwx9Newiglt2Tv8KWhryQAwoYGN8ygiYcTlfDVH7Fj6fN OQunqPtf4uaADIBmXrMdGhiO20B9gs+0kj4ZiW2xplGMrQ/ORjY1KYuH2krlaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723359200; 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=9tqEW2tGEWz4u05sdN3NNLWbQpUjf0LUNK/tJK5fziQ=; b=pb2cQIXxbCGq57lDcSG2+WnjjN9WU+VPuW/QfdFK0gfEwpuBcEcBO+f6x2A4A5btRmd+Yh 9dKjqvho4OHt9NxDbGDRel1p7QXSRrHiPT9VmiI6X6XPrGC9N4iEENiDiqQ/PpL1ewA+xj GLVlOY3DSGYL0iSqPty0xu9wcgRxNHXB8VVlqsE8K8HoZlGWuXkuf7J7k6PjfthDIRiUEx SLkcXq4dKE+mOwJeW/jlrv+IPjcY7+TYXslpmQt9mJmRhJ3HZMLaxwIsT6RPdKi8wGzPrB A0oqG0nYuO5WqwWQwp+00ejV/iVkLxcmIpDLtUarlmE6PSihwvvND2EdQGpEyw== 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 4WhSz36jntzYZk for ; Sun, 11 Aug 2024 06:53:19 +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 47B6rJVq012564 for ; Sun, 11 Aug 2024 06:53:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47B6rJ6J012563 for bugs@FreeBSD.org; Sun, 11 Aug 2024 06:53:19 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 280742] ioctl on /dev/efi returns ENODEV Date: Sun, 11 Aug 2024 06:53:19 +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: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dhs@frame.work 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=3D280742 Bug ID: 280742 Summary: ioctl on /dev/efi returns ENODEV Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dhs@frame.work CC: lwhsu@FreeBSD.org I'm trying to get the ESRT system table from /dev/efi but sometimes it retu= rns ENODEV. The only case where that's returned is here: https://github.com/freebsd/freebsd-src/blob/7a8d05ba19b7762596c0ff22e668e4d= 50bac81cf/sys/dev/efidev/efirt.c#L386 lwhsu added a print to that block and found that buf->fw_resource_version sometimes contains garbage. In the UEFI spec it's specified that it must al= ways be 1. So we assume there is some memory corruption happening somewhere. --=20 You are receiving this mail because: You are the assignee for the bug.=