From nobody Tue Jan 9 13:55:07 2024 X-Original-To: standards@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 4T8XVz1SClz57Xcc for ; Tue, 9 Jan 2024 13:55:07 +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 4T8XVy6hdVz54FN for ; Tue, 9 Jan 2024 13:55:06 +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=1704808506; 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=Njz3cuXesuzchCWeew4tbwVe8P9J7DqUonaDpn8lPlg=; b=bLY8X9KZoKhg+avu3NCB9568sTmWGwQPkwl1XRXEF0B9Ynj35oMVb4nqOTw5XnKR6gPW4V vLNAg2mk6jywfZVcDFJiK2lGyMRTMwjpRKxCIQX+vYICwdCqyXy2wmYiwCtOtR4LgJRAjf 2jTpFcuJXPEsZO+uXWthNPmVzKGmSEwVDVEOo5HKzmqP8YfNlLX5Y0cvq7rNv1sfe7iOxx QackiTmFuijHasz0IYHZm+fDbfdB9dwp3ZXTQeSU/Z+mpykoUvb14ziGIiIY/hwlH9zV+x v/j6JotVyOgzmgdQdBfN4rPmsIuarD3DhZ9SUIAE6KaUcqatgKp0hNaOGaJkUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704808506; a=rsa-sha256; cv=none; b=awmNfqnrPX7jaJNTuh9tDrsqBtIjCgcUu/iiN1ke6ec51MlzY41DpSss+04D37k9IO5M/P rFrJZQfyxI6r7N9sZW0Es506dDbfSnTxp8b3B35rz/0id3FmFLwZAAs8u+4/ZCigbteV5s I1QV1xJl9gncNa0E8Vuo8ZLwNIta8m8MKT7nAHj6OztDieDNL/WMCsz9x7Wf9dUs5nCyRs io34rQw0elblLRbqs7A32u+Tf+KEG8y7pXwGHZq3f3btHbB5bL/HAypUHCaJT1X7cNevKF XbA2l9WFCt3z32lPvb6JhEzEc4Va4Sobp2H62BLajh8Aj7oqGJpTr9t6M5EI2g== 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 4T8XVy5nf2ztMT for ; Tue, 9 Jan 2024 13:55:06 +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 409Dt6sF003860 for ; Tue, 9 Jan 2024 13:55:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 409Dt6MK003859 for standards@FreeBSD.org; Tue, 9 Jan 2024 13:55:06 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: standards@FreeBSD.org Subject: [Bug 276220] tty_disc canonical input processing: suprising behavior of the EOF cchar Date: Tue, 09 Jan 2024 13:55:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hym2209268914@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276220 Bug ID: 276220 Summary: tty_disc canonical input processing: suprising behavior of the EOF cchar Product: Base System Version: 14.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: standards Assignee: standards@FreeBSD.org Reporter: hym2209268914@gmail.com The naive programmer, having some experience with the tty, and having read = the POSIX 2017 may assume that upon input of the EOF cchar just throws it self = away and flushes the dumb line editor's contents to the read queue. That's not what happens in FreeBSD. If a canonical input processing program, like cat(1), chooses to repeatedly read() with nbyte set to 5 bytes, when t= he user presses 'h' 'e' 'l' 'l' 'o' '^D' successively, the read queue will be 6 bytes as reported by FIONREAD. The first read() will complete as expected, returning 5 and decreasing read queue to 1 byte. but when it finishes echoi= ng the chars and read() again, the ttydisc would throw away the 1 byte in the input queue and immediately return 0! The program would then terminate, muc= h to the surprise of the naive programmer. That is, when program read() the input queue when the sole character there = is an EOF, the kernel would incorrectly return 0 rather than throw it away and wait for input. The EOF or canonical mode should not affect the processing = of the input queue, only the dumb line editor.=20 Normally read() returning 0 in canonical input processing should only happen when user have just pressed EOF/EOL/EOL2 and pressed EOF again. If I stop the program via debugger, hit 'hello^D', switch to -icanon via st= ty -f, then continue the program, this weirdness will not happen. The latest Linux kernel does not have this problem.=20 NetBSD kernel also has this problem. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Jan 9 13:55:40 2024 X-Original-To: standards@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 4T8XWc36dJz57XqX for ; Tue, 9 Jan 2024 13:55:40 +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 4T8XWc1FVQz54G6 for ; Tue, 9 Jan 2024 13:55:40 +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=1704808540; 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=qY/BPpIh5n/U1e6tcvjWXwY15FdRI2LkvOUMdBPIHo4=; b=SbFUocLkwpW94qGOYJxifdEuZy92f0gCBNBWq2jN0pcueptecsvb92rNO6NXSYLoCS5c6u Ui0VycyPCOjUCXh5LqlmnGuUDvXiKY7KpcYvs1wUjO1hXmcM8t+PT1zWKGkLYsRunm3svZ V4fiGx81Upr4ESspWxI+vmUgQUeSaOEGzHPMll8lzUznWcozUDZPNbJ/TanqR8cfe3vr3i FcSQ5Nd5iDqihKjvSL3g4LjNaidkcSo3enJNSIdcCvS7mRwAThDjBShBbyYf/OJcjRbVQM gJ95dNj6KhDTlFD4kVKWZTTucjvr0phAjYvtHSqQgF4YUgw/oz+xU7fAagValA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704808540; a=rsa-sha256; cv=none; b=djyQdIxBCGhPMbv5k8tPxbkvwXpy94eVWX+id579r8p+JTmpDgV/1Tmh7PzzDIt28oM9SG 4Y/ODvQ2PBb/lMpmoJdLT5o4kOvAmICEf1zEoOD57P6oe7YKhtKwMTMmBIORVk2nme0xz4 gDTq4rxdGUsK0Y7ZiwS8ho3YZvUAshtY6aiKfy3AySGBeGQqvdee9YCgCofUwKQx2OBgfh v3laIjKLQ/u3enivWzOWY5h93gyIB/MU6dq5Xms29bwCbBc3hWIQ0zkEUmTXprLR9TL7mo bAzJb77SnzrWIHHg+lV81JYWqLmIESHBAtfU/vsGSHHeEqwkRSN5vGTMKBKmGw== 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 4T8XWc0JS1zt2s for ; Tue, 9 Jan 2024 13:55:40 +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 409Dtd0W004081 for ; Tue, 9 Jan 2024 13:55:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 409DtdRH004080 for standards@FreeBSD.org; Tue, 9 Jan 2024 13:55:39 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: standards@FreeBSD.org Subject: [Bug 276220] tty_disc canonical input processing: suprising behavior of the EOF cchar Date: Tue, 09 Jan 2024 13:55:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hym2209268914@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_severity 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: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276220 hym2209268914@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Affects Some People |Affects Only Me --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Jan 9 14:00:36 2024 X-Original-To: standards@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 4T8XdJ1yRXz57YYd for ; Tue, 9 Jan 2024 14:00:36 +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 4T8XdH6xmWz54dZ for ; Tue, 9 Jan 2024 14:00:35 +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=1704808836; 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=FH6jZegO4ytvdamGIQKlO+NG3u0ff8D2MFu+OqsuaN8=; b=lXoazRQuWtPlFZCOtW8yR6qHC7awxm4PXh9aLuIqiphIiN+PccZTR/Vm+/bOQ97j18sJ6F FV8ksj0hU354eCRdK60Qsi06B0xrOGKDHUK2pzJXTyxtsFhxKFz1mE3n/Rihqv3hJ6yRZp kt//HZJR7S+ORHQAjjqfO+eEocnn2MM0RdsvTgxJaBBLTA8mev0zfwDyjRQpABDnqo+slw rnQKJpjSmAcCL78TxDXh8WOl90XAu8TOYzucz9772v/AqMxz0y/UAry5HZ9M7G/rdjhs9W zUFDEymy/PWw6SBcc9IiRzPayI6a8ln/UWqlAPZdkEgbGFCgI1ExLiB+DnEFUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704808836; a=rsa-sha256; cv=none; b=cZdYudAM+Z2/a/lzfvDJNe08ypQ6r2NGRPPFseiPWCE3I5SsfngVo3ObxdsyMNBO+1pBMX uRD+eOlCaoWSs3Z2YnZFD6DLJQwK3vU9oiPJ/OzI4RaP4+P+XK10RB93Gof/Tph/nFHwdx bmrrl2wUP5+vW9nDg3zYy6jUJatPoeAdPdtJJ7pxT/4WUctrT/v0OQIgzG2glGLY3zZvtb 8grBwcQxSYXM5b3nq8SqZ5okpPLv5vVil6FoeGOXQk4kzAQ6CmhyyNLPUi/fi4aZy73JCX C8M3HYukE964S0XT0LJNuo1nufP+fR+L3KTjzhIF6Pp2bWT7wdP5zIHV1CYC9g== 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 4T8XdH60tNztXJ for ; Tue, 9 Jan 2024 14:00:35 +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 409E0Zbe007673 for ; Tue, 9 Jan 2024 14:00:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 409E0Zhb007672 for standards@FreeBSD.org; Tue, 9 Jan 2024 14:00:35 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: standards@FreeBSD.org Subject: [Bug 276220] tty_disc canonical input processing: suprising behavior of the EOF cchar Date: Tue, 09 Jan 2024 14:00:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hym2209268914@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@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: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276220 --- Comment #1 from hym2209268914@gmail.com --- a minimal example, try to press 'hello^D' and observe it terminating surprisingly. ``` #include int main() { char buffer[5]; ssize_t nread; while ((nread =3D read(STDIN_FILENO, buffer, 5)) > 0) { write(STDOUT_FILENO, buffer, nread); } return 0; } ``` --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Jan 9 17:58:09 2024 X-Original-To: standards@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 4T8dvP4sZMz564dn for ; Tue, 9 Jan 2024 17:58:09 +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 4T8dvP3Jx3z4PbJ for ; Tue, 9 Jan 2024 17:58:09 +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=1704823089; 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=sl0XMh26Nju0WNtbR63INHEzP6beMbXVVstlaxXX+AY=; b=FA+KgvQB8/yonayaDWMzfi6OrgdmRGA+n3kTY8+Gk+ye1TNmg7rY1psa3jimJpl3k3f6k0 T1KJirC387mioaSxce+ms2a7zw9snXjHSONJeVVfgDLPzVw9u1Jz5eO1Du9oZv1KAgo1TL kMlW3dL5iulW7BN9PuyC416lxGZj3/9gAya7YjKbiBhb/bTD2pzREqlRNUgKEZ6PZlyydS am9dbQ4fmKoApxFTVsPcvce5/XzlTO/BkH7wBl+NYXcIdtTcgJZC/0NU8DWR4SPeIs6tNc daSY/L26eGhz3NifQBLKyqRIVatgrxt72ShXRCsIFXwUS5w6agWqZVX87Y86kg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704823089; a=rsa-sha256; cv=none; b=cfcBUmeQxoYvz3i6MaoEkpAqsi7OW11fq99CqMIB7QPSGabnxG2IFNjFkFiI0Z9tBUvVbl e8Fgl4VYJCNd+zghIwR0nHigN6hsoui8uleEt43usaI1N1LU6jNMykqOfNLlLwQJJfxP8e hdsk7F8lhYgd0foZjrG1vFoOlTgJPxMKsPGp67oPjXH9fjDN0R5yAzjVdqHZMZdq2yxcOv dGvyjCPR5T5f7SQdjbeBGw0z+EPJ1XCLPRCyEkwxu1S/nfFWFaPyqWFpo9Dzk/yLMNbJ7D bjmFX1UE8yw1TS3Tn5CQQoUBju5nmq6aUEgubd+PhORPMiGJNZiJhKuknOlt/g== 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 4T8dvP2JNJz11GB for ; Tue, 9 Jan 2024 17:58:09 +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 409Hw9u4086598 for ; Tue, 9 Jan 2024 17:58:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 409Hw9ol086597 for standards@FreeBSD.org; Tue, 9 Jan 2024 17:58:09 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: standards@FreeBSD.org Subject: [Bug 276220] tty_disc canonical input processing: suprising behavior of the EOF cchar Date: Tue, 09 Jan 2024 17:58:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kevans@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: bug_status assigned_to cc attachments.created 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: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276220 Kyle Evans changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress Assignee|standards@FreeBSD.org |kevans@freebsd.org CC| |kevans@freebsd.org --- Comment #2 from Kyle Evans --- Created attachment 247547 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247547&action= =3Dedit git(1) diff against base I agree with your interpretation of the spec; I think we want something like the attached patch... it searches one past the buffer size for an EOF. If = we find it there, then we will trim it; if we don't, then the next read() will return the remaining portion of the line and optionally trim the EOF (if found). The tty_inq.c portion of the patch just fixes a bogus assertion; if you read later in the function, you'll note that `clen` (thus, `rlen`) is assumed to include `flen`, so we shouldn't bomb out if we're trimming the excess past = the remainder of the buffer. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Jan 10 03:33:19 2024 X-Original-To: standards@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 4T8tg44FzGz55WLk for ; Wed, 10 Jan 2024 03:33:20 +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 4T8tg40xgpz41Xs for ; Wed, 10 Jan 2024 03:33:20 +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=1704857600; 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=83zdzd5XtShT0NDNe+Q68l/WQJ0uTU7x7bo7YoXgVww=; b=tjBxGS9zhKs09XWXFzNpsKSRwngZFhvxnTMK3oVLSGImHVDMPuCpRnqgzsRSwAEo3caBx+ 8vLa0zi/U5/Qo8lVAZL39cd3Q3hVzufnHX5seigudAaRHpYJ7yyO62gzq1rdp2iHxk/09f XcRpGuHV9zMMoO6eBTQw35J9R45fZYZmvfPHFaqWm7/O3MuArt+VSVungxKKP/mdkt2/mh ixiYKllKwRcRggLfn3H1wgWyZ8bZfn/1C7KvDEy69Xn200fBQwov9HGDfmdAit9lTvdYhx vUUr3b0saBr0wEMaa4SYCedBHF87N0DHZQY3Sgm/vZSSwYnv/N8i+mYjGkgxBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704857600; a=rsa-sha256; cv=none; b=rTAkk+c045HO+eE7DXMelNNox+DZSAdYGLO2Q9OVxsFFCq8nweXgIWrjNMlRnUjelGaEIM l078vGESKyZaULeKNdyOKZrUw76kgkyKfVBI5z1WWcVASMJrhNyojj+xou3jdFmRm7IWfa nUorxMI2LHw++kJMN8FfIgX71IhsBkyWPGEox/MBOiivmlIW5wzDmGUd6Qf5QcpqQxdAcL eIii8FhinBSdAlVRCBglSLTzQN7BWzd0QYf6rDLhleo3vsizOBjzahDg1YLvJiWuQj+NMu TwJHoy5zr2P/U6eguXhlvp+yNNOBaycy+lmLncDesYTVnnjkexuozt5ApV6Fsw== 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 4T8tg36VW5zJyG for ; Wed, 10 Jan 2024 03:33:19 +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 40A3XJUO081727 for ; Wed, 10 Jan 2024 03:33:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40A3XJtN081726 for standards@FreeBSD.org; Wed, 10 Jan 2024 03:33:19 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: standards@FreeBSD.org Subject: [Bug 268028] Remove unneeded sys/types.h include Date: Wed, 10 Jan 2024 03:33:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kib@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to resolution bug_status 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: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268028 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|standards@FreeBSD.org |kib@FreeBSD.org Resolution|--- |FIXED Status|In Progress |Closed --- Comment #12 from Mark Linimon --- ^Triage: assign to committer that resolved. Apparently this was MFCed to 13. MFCs to 12 are now OBE. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Jan 10 07:16:28 2024 X-Original-To: standards@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 4T8zcb5X3gz56DyR for ; Wed, 10 Jan 2024 07:16:31 +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 4T8zcb2whvz4mJ5 for ; Wed, 10 Jan 2024 07:16:31 +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=1704870991; 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=fLPCk3rSz3tuKqxeXeedJeX0Mm1xzEnJfsl+oX6FuyI=; b=ctgq19r9xriNnBzE8WXFaYnEXq6S8Xzi3KTelPJSWDZhtiuJN/GFqqEV3Klx0XUuPsE9T1 9k8uObLoKjhxpWfkKsfgXBvfJNWr1waClWzQwrFCo/jkEXpH+29q5cimQDuGnrcy32Syzv uB4pwiO17WbPMSgmJ/XIL3XOsF0PiA3qXefEbK2attnHZDBmjFjilTdgJUcGoRX3zW9bJ0 Iq2vmOAGA5/qfjNSP3VlUdhfWsMz320yRGye/cQijq5/KauhvZL3MCS9Z6IQ7UXNpSHs9f hNOu20cEXzz2Alu6vc6MNJvEuG3/BuE5oc5Tr+/AdT8sDHvVTXKIOoEwfnozZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704870991; a=rsa-sha256; cv=none; b=gwkbBX37JOFcEUHjQzacGsIw3FdumZCw4Vo9/M28ijb23jhjrzUH8VZRyMved19ZpE5xFd DMpS1hbnKOtYJ2FHFB0NlQU6omPREPlkk9MXWdY+saWNzdK0Lt6PdXF8FegMcqHUNVC/5U 14HbtW40kIpIPzAtblqD0fv2wxWkxNRX150X0a//RegIOQa9fqi2wvid8L5jowR6+cjlPZ JGuk98CXggtuV6G82lRuzToph/+f2j5jVsx6rG4khexDSQsq/f8ya3JdfEN88fQdVPPGzF GmbVl36YvO7bZhGH25CJ9iyPi+dX3xb0yjU8UrpW4F2Avg7dvEQh24hXFcUChw== 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 4T8zcY0RSFzQPC for ; Wed, 10 Jan 2024 07:16:29 +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 40A7GTCR001913 for ; Wed, 10 Jan 2024 07:16:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40A7GTdL001912 for standards@FreeBSD.org; Wed, 10 Jan 2024 07:16:29 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: standards@FreeBSD.org Subject: [Bug 189353] POSIX sem_unlink does not actually unlink the semaphore in the process context Date: Wed, 10 Jan 2024 07:16:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: antoine@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to resolution bug_status 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: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D189353 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|standards@FreeBSD.org |antoine@FreeBSD.org Resolution|--- |FIXED Status|In Progress |Closed --- Comment #13 from Mark Linimon --- ^Triage: it seems the workaround was committed back in 2018. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Jan 14 21:00:30 2024 X-Original-To: standards@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 4TCnjW3nRqz57615 for ; Sun, 14 Jan 2024 21:00:31 +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 4TCnjW1sMWz41Ng for ; Sun, 14 Jan 2024 21:00:31 +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=1705266031; 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=MnXO3TVtzoNsJuXEFcrAQVFfCzQ5Way2HaDv402ZYxE=; b=QfpU6ecLe6EAjWSlxPt49ijLKvdJPj3/1psW7W8OYziX9rp8k/2lnoV5ohuDvZn7rvd4Iq otW62Rv1PNur8JLLhaagHzKW8ztFYj1Nv4sR83NPopH4SYs8qMGcio0tdIKpuQrPgKmm2n Qt+YoSxjanLNlRMSlysxCVSRsjfqiZGcQ6nS6OJ9iNFvhwdztqnuPQS9ybwmu3/MFMSESF YzKsU06aTfaTCv2J9zMeh7GYzCcwhKyiwc/1A9/AXJOIGF+cOR8ozhe2g9KW7tb5cZFBOn wkbJpzcVH96a8welBgbFqL/CJvKIjrJeP2YZcz+ELgIZvCUweWqYmvViXmp7ow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705266031; a=rsa-sha256; cv=none; b=Mgb226puJYFtMiDOYrJ5TTERx+U8I1tDEcp5LBQAli7Xay1QOIgt2I8mVH1Gax8z9sr8Pt eYt9WNek/hLTJR8LbyPhIjU5j5OHoPBL9vrqWdM5sIsUYCVIZeQLJqtowjqi4XxxUpa9nv Qgt6HIWqY2uata1pdYYHwyaVOAjWChgMw3Q5i1UWr/O9BUxQhJrStW0Mmk94Bk2qd6GplP t7xZXrg+9WnGfTzqJ0F+8BhIM3zH80zQeq5nP0j1kMVreKTVvkPDKAQ2R2hs4bVIRzmnbl 15Xy3UtlvedkFnD4VLkAddIypc4XtIY0Ta970VnxjLFEbexvAXXZpEAxaeOyeA== 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 4TCnjW0xZqzTBh for ; Sun, 14 Jan 2024 21:00:31 +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 40EL0URO080155 for ; Sun, 14 Jan 2024 21:00:30 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40EL0UIw080141 for standards@FreeBSD.org; Sun, 14 Jan 2024 21:00:30 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202401142100.40EL0UIw080141@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: standards@FreeBSD.org Subject: Problem reports for standards@FreeBSD.org that need special attention Date: Sun, 14 Jan 2024 21:00:30 +0000 List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="17052660301.F77C075Fc.76732" Content-Transfer-Encoding: 7bit --17052660301.F77C075Fc.76732 Date: Sun, 14 Jan 2024 21:00:30 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 46441 | sh(1): Does not support PS1, PS2, PS4 parameter e 1 problems total for which you should take action. --17052660301.F77C075Fc.76732 Date: Sun, 14 Jan 2024 21:00:30 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
Open        |     46441 | sh(1): Does not support PS1, PS2, PS4 parameter e

1 problems total for which you should take action.
--17052660301.F77C075Fc.76732--