From nobody Fri Jan 05 02:42:01 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 4T5nmB2xsmz5600p for ; Fri, 5 Jan 2024 02:42:02 +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 4T5nmB1wFNz42Gb for ; Fri, 5 Jan 2024 02:42:02 +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=1704422522; 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=fdEXtYaDMq3NQuLjI7nVqyqjRfmD6plxOT4hdHfRRUI=; b=GXZaDX/GunoMiPZwaO9tJGxcq2Fdze05aca2NtHMb1x14+OBDrN/bsNIpHPOmqa7RcgzUw LuXWBdFXGELwhb6Y5tcabKd2gHlBu0Ehh82XbFMeewsGF6YaSCUR76UQMysR039zdZGUjz w4EgiA7ms/xZYfjcEvy/iGobi95KHF3W0zC9lD/ZpccNPmKyaihd28eM7mrHqC5AfxeODc avUb0NQLa++ySsOibnTftQ6jVBzCPAkPsHzqswx5EYo4ueiexEqvCNPIKXj/ooBKc2heYX kcB5H9ZZyv/Fi9UM/w2X2sxITYo1m+CjZBNcxEAZWiLIRaxUq+/EiCNrnJ400g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704422522; a=rsa-sha256; cv=none; b=vcZAqsuoa9Ml50kS/XlbpSjcWQwwKXMH5hrX8PWd+FExr3Mg55VAEN0ZhgKAWhK2qYtSmN 68m/sJOJhn0u2NOs0oHbE2sJ4qJqtqZYnRELtC7+HiFyJ6Q72m184tQWFrbcFWvUWX8kpv nUIRdroxoHA6DLVtJ5WEMNw05Umni5sXgdyh1VsI15axviFprZT/YmO+bHAKP3DFHeb36m amYSrLDXYfkDNKJbxJK0+8NwucgxfB016pud7ERUGlhJPbWgtsAcbKh6+lIgBcVP62hxOR 30BJH9EK1F59NX6UcgziOZhVXTYEPL8hrzu//VzFJ5yvaqvJRx1Yaoyi+Zyznw== 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 4T5nmB11VGzg12 for ; Fri, 5 Jan 2024 02:42:02 +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 4052g2br033862 for ; Fri, 5 Jan 2024 02:42:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4052g2hd033861 for bugs@FreeBSD.org; Fri, 5 Jan 2024 02:42:02 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 276119] mail: typing ^C twice during compose causes SIGBUS Date: Fri, 05 Jan 2024 02:42:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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=3D276119 --- Comment #1 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6c951b37170f1fb2ae8b4827070743e61= b6eaed2 commit 6c951b37170f1fb2ae8b4827070743e61b6eaed2 Author: Lexi Winter AuthorDate: 2024-01-04 22:34:58 +0000 Commit: Mark Johnston CommitDate: 2024-01-05 02:40:53 +0000 mail: add volatile in grabh() setjmp() requires that any stack variables modified between the setjmp call and the longjmp() must be volatile. This means that 'saveint' in grabh() must be volatile, since it's modified after the setjmp(). Otherwise, the signal handler is not properly restored, resulting in a crash (SIGBUS) if ^C is typed twice while composing. PR: 276119 Reported by: Christopher Davidson MFC after: 2 weeks Pull Request: https://github.com/freebsd/freebsd-src/pull/993 usr.bin/mail/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=