From nobody Wed Aug 28 17:35:29 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 4WvBQB2cNGz5MRLZ for ; Wed, 28 Aug 2024 17:35:30 +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 4WvBQB1XZpz4fsv for ; Wed, 28 Aug 2024 17:35:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724866530; a=rsa-sha256; cv=none; b=JGbnPkZ160e2KLD0bbJBVrcWs0whmuDsvsoBRDbZAn7GaICwQH+hxMsIEbe37hWG5aqN/3 EbQf3US/n/4S6bz0SH6FTJ3dWLpqfJzWsRSIrL/xydqgSBMEvvmi3LaSj7xuxmfIJ2JPcb DqidBdUiqFqAjChkR4wsmufbFWrkEQUsA8N8rtesh6/tzD0LPgVgugxjsxdHKaqYFm1Bsp D6x/1r9Gn0M9lghKRGF/ESAbMk7UbWTZoWarU2xExbFfp8EuYooz2Pbu+RecAncd1mwpWQ 2+K9VqgPithb/1URAfWCnzZslXxtJ+2Wb9Djqv8KJaimJ+EWt3LfHJAHaprrmQ== 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=1724866530; 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: in-reply-to:in-reply-to:references:references; bh=ZR2Wl2m8GQcWP0zYDEPvw8Gcr55fJIx3KPeWbgDZf3M=; b=gS+2NPrs7oci0KrUkyc+r1l0iHnMZ6KagnzVi6d/lT19EajX3HVYUghJqqQp7Xc5P4pjXe Uhdygz5cbSy61gTZmm7VH/8xXWiIqN9eo7SUiS0AVtxbOgCFiePYktR3EkOgxooqrN2OxZ EEvL5Bvs0aQ6ntC+z8JmWZqgSNADjtLC3b++EtPBhCBc7SJPShXHgn6BtPndgHKPsL98mW G30ALr/BPpexKYIYHb0AbYhDf6jBaGQtlwCsFTvHJx4+X4TK8tjNcyUjby6TVP3Dfsfv+G 4Lii5U4Y0TrxWW3PeqnmmQ2WAqFco5MMvDx2D7dyguxnLsgWqfbkw6cPyVTgpQ== 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 4WvBQB18WWzjfF for ; Wed, 28 Aug 2024 17:35:30 +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 47SHZUGe069828 for ; Wed, 28 Aug 2024 17:35:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47SHZUPo069827 for bugs@FreeBSD.org; Wed, 28 Aug 2024 17:35:30 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 255594] efirt: add ESRT table support Date: Wed, 28 Aug 2024 17:35:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: emaste@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: Message-ID: In-Reply-To: References: 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=3D255594 --- Comment #6 from Ed Maste --- Is this resolved with: commit 24f398e7a153a05a7e94ae8dd623e2b6d28d94eb Author: Pavel Balaev Date: Thu Jul 1 19:29:36 2021 +0300 Add efitable(8), a userspace tool to fetch and parse EFI tables Only ESRT and PROP tables are handled at the moment. Submitted by: Pavel Balaev MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D30104 commit d12d651f8692cfcaf6fd0a6e8264c29547f644c9 Author: Pavel Balaev Date: Thu Jul 1 19:27:25 2021 +0300 EFI RT: resurrect EFIIOC_GET_TABLE Make it work, but change the interface to be safe for non-root users. In particular, right now interface only works for the tables which can be minimally parsed by kernel to determine the table size. Then, userspace= can query the table size, after that it provides a buffer of needed size and kernel copies out just table to userspace. Main advantage is that user no longer need to be able to read /dev/mem, the disadvantage is the need to have minimal parsers aware of the table types. Right now the parsers are implemented for ESRT and PROP tables. Future extension of the present interface might be a return of only the table physical address, in case kernel does not have suitable parser yet. Then, a privileged user could read the table from /dev/mem. This extension, which logically equivalent to the old (non-worked) EFIIOC_GET_TABLE variant, is not implemented until needed. Submitted by: Pavel Balaev MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D30104 --=20 You are receiving this mail because: You are the assignee for the bug.=