From nobody Tue Jan 30 17:12:30 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 4TPWv26jdkz59C3k for ; Tue, 30 Jan 2024 17:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TPWv25f7hz4HLy for ; Tue, 30 Jan 2024 17:12:30 +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=1706634750; 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=9FMltQm3rnFWjKzPxsNGztQRZFED6YA8UKE2/cSTmgw=; b=KBrCP2tOr6Nb76dlrS49HJsvUiAVX3e8xwWJZXbuckCVhqtkB4IioJn/gc50/QlW//5tpr rb46o8CtKhqv5Gw3AodvTRDBtQkmMrApKdzZf+/A0tyCkdgoHM5ZHGsSG+qqy6FRfQGuo8 CoO6rRnd2F00AHZq+9xUMQWTkyw/dZu57pbpw3UvP0fvyVxry63sBJTbOQdlXOqJlEL4uu 4Q7S/OVjap4/qRjbu18/Ps+00W8EMvyTgxlit+LdbbN8CLqXa9/N8pow7e75CEg0LjcGLW tqNTpf0+WXQnWoHnb7gSsg7SyvC9ktfQ5YRpKaKUEnjR/S0qOPuUefZzCWHBlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706634750; a=rsa-sha256; cv=none; b=tcSPL6psndR1SMiwdrfaveN+WkLKLEhth4oyVrcYIK2G+T/a+o+Lqpqnay27d6nA7VFJtx DXWEIaRdhjpG1gNHhp4DmWTunay3kylHSfrQadF8qOX3MyJ+EFuoKuYoHho2UtJRBiKhCx LbL4oD0mZoxkEttZfzSE3OcOsq+Qg882mj+xFT7xdLK4vCEnyd5YYMYZW1Lclg5ltQiEOx sjtdCmvReozjh3mhrw5s9wr99RBTpHPRVFwUqBuNbDyRwCmpMr4EhqQx4wxiE1pwAPWhHv ywYFwHZLHrgnPlUyavWi8cycIgDCSEkrAIXCX+/7g3F7JghgRnXo0+bU/MXcNA== 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 4TPWv24jjmzkVZ for ; Tue, 30 Jan 2024 17:12: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 40UHCUdj001787 for ; Tue, 30 Jan 2024 17:12:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40UHCU4d001786 for bugs@FreeBSD.org; Tue, 30 Jan 2024 17:12:30 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:30 +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 #3 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Daebaa32c3108e99cc28d9aef7229ed4fe= 7da18ca commit aebaa32c3108e99cc28d9aef7229ed4fe7da18ca Author: Kyle Evans AuthorDate: 2024-01-16 02:55:59 +0000 Commit: Kyle Evans CommitDate: 2024-01-30 17:11:24 +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.=