From nobody Fri Sep 08 10:13:30 2023 X-Original-To: dev-commits-src-all@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 4RhsQ30Hm4z4sfW6; Fri, 8 Sep 2023 10:13:31 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RhsQ26lh1z4Pj6; Fri, 8 Sep 2023 10:13:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694168010; 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=Oz3DfJEOtLiCx8nFTFPUqPPuTgOZHfBLEtzg3noGD6Q=; b=hE5+gqjgHK+66giksCqvJTMBUPNPM1RrtYCHo2na5KLkeeWiRCxEj7a+vjHXfViGTOEOio BJ4rZyHm/dLyQhQN9t1awv4RgN1xsrgQHIH6N4PTLzjoveC/373BG208sZhqAg7vfVWRKh o+JnD9hR9SWdxeeD2cx2ho26zD+I7tvZhcUpMo6GtuQmRx5bG+GeO5vl65ZQr4pFeVenxe FRMrARBR0yueGvvmutdpa0uEVKg0iBOcuAFHz3gES6ewUwcwdAY1tMyI9vWtaE0cFILaKt AMahTz51KWR0jhCwvn3binVbvE3SFH71/K5Q8D8rpbcskP/Ry++yXrpFQzUzjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694168010; a=rsa-sha256; cv=none; b=nvDoEUxasulha5r5X4r/apx9khLB6id0mOW+MgPWvrm5bu8cLO5C3o+0ax3DxbBGqG5oD8 +2C9AX6QXTOguddRetVK5LbhogPpYmdrfd7N3eDcCOBiq8hEWaojo5Mpa+Ov67FN+F2Wzg inLDhyDqGpfOZDjGw32YrCW+G0JaZ95QPpk5eQLRRU/HBYN7q296uV2gLZdew9FFJyiNxa lklniBWzVhOv6Ekx5cfbhOKlFcSaYakWk3X3lPq3REGBv8Qj89uz4KegvzR6xv5rQ2gI6W cGH0/XDSkJkwNgJy+L/aPAFAAzWmz98+SVdK26x7sVx+UOQ7BEVf7Z1J1Ru4ng== 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=1694168010; 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=Oz3DfJEOtLiCx8nFTFPUqPPuTgOZHfBLEtzg3noGD6Q=; b=WpIasMCdNBRsVc29T60PYAx8Zjd/ogFyzdcWYUrsrZ94L49akB3sJ50NbK7PkkOmLjji3i BD37Fdfiq89MbIyWc1+hhyLXYj7EJHC8LCvJzhv3TlpMI5KjO4xt5DMaYM1IjO+PUqatXL y7ceRyTWcUvROccM7rkqMwqEJGM82pGcx0Lmvn81LGnf0fNnXXYJfl2QC+kprqiQlsDGT7 ugpHnTwbAE6m/rDGZek76KzyvrKpgHdgPqZ50wu+rjfieRo8Is8m2hGS3l+IsW8Lr0RJNT YG0ZPX30IubkPFZ93E46Bqcy2smqDMsJDlBDAFYvxbCDqOIS9Pg6oPWRJXA33g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4RhsQ25rhFzdyG; Fri, 8 Sep 2023 10:13:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 388ADUXL041207; Fri, 8 Sep 2023 10:13:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 388ADU1F041204; Fri, 8 Sep 2023 10:13:30 GMT (envelope-from git) Date: Fri, 8 Sep 2023 10:13:30 GMT Message-Id: <202309081013.388ADU1F041204@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 17ed300f0833 - stable/13 - wmistat: don't restrict reading to the pid that opened the fd. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 17ed300f0833c8e6dd6bce95748f5dbe33050a3c Auto-Submitted: auto-generated The branch stable/13 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=17ed300f0833c8e6dd6bce95748f5dbe33050a3c commit 17ed300f0833c8e6dd6bce95748f5dbe33050a3c Author: Dag-Erling Smørgrav AuthorDate: 2023-08-29 17:23:16 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-09-08 10:09:22 +0000 wmistat: don't restrict reading to the pid that opened the fd. PR: 273405 MFC after: 1 week Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D41621 (cherry picked from commit 28977cb9bc15a7f1fb7d28e14cd03f8dafd4e155) --- sys/dev/acpi_support/acpi_wmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/acpi_support/acpi_wmi.c b/sys/dev/acpi_support/acpi_wmi.c index 59872d632c22..2bdde3f21e5c 100644 --- a/sys/dev/acpi_support/acpi_wmi.c +++ b/sys/dev/acpi_support/acpi_wmi.c @@ -977,8 +977,7 @@ acpi_wmi_wmistat_read(struct cdev *dev, struct uio *buf, int flag) sc = dev->si_drv1; ACPI_SERIAL_BEGIN(acpi_wmi); - if (sc->wmistat_open_pid != buf->uio_td->td_proc->p_pid || - sc->wmistat_bufptr == -1) { + if (sc->wmistat_bufptr == -1) { ret = EBADF; } else {