From nobody Tue Jan 30 17:12:27 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 4TPWtz1lhTz59Bvf for ; Tue, 30 Jan 2024 17:12:27 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TPWtz04QJz4H3W for ; Tue, 30 Jan 2024 17:12:27 +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=1706634747; 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=/G3yFieodINhrDxZfHO8FK2WbX/EWjW46+dk1Xhd3Wo=; b=uOjhl4POW7svQNRX99G5RMABRNKCvJah9VDGs+IB5TAGB2Y6FeofpEDMjsR0wkUbsdWrFX 8qPDoNqjKM65cNTOfsXQ9O8AClXucC2njZl45eAlmpfcMZmlMQ7uGSYfycFo56Ri1WoK1k Gk2itY0fYniC+I1YyNtYfMovoIFdfP63rPYQR+Xn88oFT+xFqI9LKdP8cfhEV8/hD7/we9 mgIGfYNARy9tvJlEPzHxjyfkLOHTs4gwNvozZni+4V5ra0z5W6nh50eoGciMFOyu0/RRhu mbn0I70sKoMVjU6ReaD4Oi1WpCxYhmv6RN+J391L+gXb8/g+XMG3b+CKwg8nCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706634747; a=rsa-sha256; cv=none; b=PLEZHo/yxdR10daHnf0YvfXdcYqFS+q5EB0hNkMKVyyGFiFasyc+jjIZah0vDxm8/jht80 PzqmpimwMv+Ff82bmUBfE1NncvI4uNJ9zjYLi3IU3qhc6Eji/Wl2RhUAdWQCRXADLVdexV QZTe7pXniUz6geEaddW4Qgp36SRiR9WBi6FjhVeakC5y8MOr1qnhxY/e2ioXReL3dcSVVP 0z40tc9S9houJCFjFlvUqPQu0dklzUtMX0zet4Fyn62yK7RD0KnUBiRxANNbnwxxto6N5h kOzfiQmkLQHJUx81MVsSd8IQrrHHJYx2L26iRv7lsADzVotnuPQVzkW7GSq/vA== 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 4TPWty6HmDzkvR for ; Tue, 30 Jan 2024 17:12:26 +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 40UHCQRP001551 for ; Tue, 30 Jan 2024 17:12:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40UHCQcC001550 for bugs@FreeBSD.org; Tue, 30 Jan 2024 17:12:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 239604] FIONREAD ioctl returns the wrong result on a master pty after the slave has been closed Date: Tue, 30 Jan 2024 17:12:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: mfc-stable14? mfc-stable13? mfc-stable12- 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=3D239604 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D984128ce2d5eb7d3374dd4b245d443ec2= f5d96b2 commit 984128ce2d5eb7d3374dd4b245d443ec2f5d96b2 Author: Kyle Evans AuthorDate: 2024-01-16 02:55:59 +0000 Commit: Kyle Evans CommitDate: 2024-01-30 17:11:10 +0000 kern: pts: do not special case closed slave side This would previously return 1 if the slave side of the pts was closed to force an application to read() from it and observe the EOF, but it's not clear why and this is inconsistent both with how we handle devices with similar mechanics (like pipes) and also with other kernels, such as OpenBSD/NetBSD and Linux. PR: 239604 Reviewed by: kib (cherry picked from commit 30189156d325fbcc9d1997d791daedc9fa3bed20) sys/kern/tty_pts.c | 7 +---- tests/sys/kern/Makefile | 3 ++ tests/sys/kern/tty_pts.c (new) | 64 ++++++++++++++++++++++++++++++++++++++= ++++ 3 files changed, 68 insertions(+), 6 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=