From nobody Tue Jan 16 02:56:57 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 4TDYZK2bMsz56SbH for ; Tue, 16 Jan 2024 02:56:57 +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 4TDYZJ72zPz4glJ for ; Tue, 16 Jan 2024 02:56:56 +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=1705373817; 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=GZjkLNJe3/+etBMls26rynZQbpg8EYi7261VtIwDfAg=; b=fjdupQUUY1tRNYhE6nbdWG5bsZqk+nF9IHxMGWdQr6I9JETI/Nmk6Wq7oAh6GWn7rqc1ro IgPWfEckJcqLcbsVjHVqwmg6oa9KNeiSi9P73RomxzOj9tHjtxbiZ8LisTzXyaxFNlDfWE 12u8QqAu8PZIH+a9kdBtS0rt2N4B4tQrDv6g/ngFUlV29rd+k7pLCj18xdud4QCFPxzcN6 hmYQc0VPxRgTE6fo78gMK2tUbGvr1wSTakKD99uWgMVy0s39bBH+t03vjAlRVYXNcYdMS9 fSkMSYpJSiAxOp44kaWPicyLIvPa2d8pOknIpPdlDVEe/Xc84MFuMIz+L1GNBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705373817; a=rsa-sha256; cv=none; b=WwWMLKI4bxUJJAlyE+HbeDUvSjm0iYXLKJrfEg8nuSFZrA8AVfX4Wgp9dx9zs2IpDoB6z3 U6wElN9A1NoKX3fI4lFXtnT9swkX59Vfbk8Ei87rLyUfe+jbKvXL7lkEu4DPN0wM4k7KvQ BJrDiUzrxfrZX31Viyf8Rz7H3ZlfMLbg0Xzh2mz9j6lq4PgR/jGUglaDb7woJjdhL05bCv c4WPxpn/CxjayA2s/fEfW7pk0uWMDqvqsag69AnMgwKbTC09dE4+3PSILDaLdWlZlKBtg1 x34dW6tJ+ofZ23STvjZBrJaV0IErnTi/zb0AyWaUyHT95kANip0e00G/9CkdhQ== 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 4TDYZJ68VwzN7b for ; Tue, 16 Jan 2024 02:56:56 +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 40G2uuLP023739 for ; Tue, 16 Jan 2024 02:56:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40G2uurQ023737 for bugs@FreeBSD.org; Tue, 16 Jan 2024 02:56:56 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, 16 Jan 2024 02:56:57 +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: 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 #1 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D30189156d325fbcc9d1997d791daedc9f= a3bed20 commit 30189156d325fbcc9d1997d791daedc9fa3bed20 Author: Kyle Evans AuthorDate: 2024-01-16 02:55:59 +0000 Commit: Kyle Evans CommitDate: 2024-01-16 02:55:59 +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 Differential Revision: https://reviews.freebsd.org/D43457 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.=