From nobody Wed May 22 17:35:13 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 4Vkz3555Pmz5M5kR for ; Wed, 22 May 2024 17:35:13 +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 4Vkz352GFPz4ksT for ; Wed, 22 May 2024 17:35:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716399313; a=rsa-sha256; cv=none; b=DzWxHYQoHu+J+7oWrElhTxlPptm/rolntxuw2vUhupr+BbJ4mieiFNQxBAZhVx1YFxVB2m EODWb77LOnPMWX2IZQ7oT9yzLDEN3Xumfiq1ru8XE6ySb2AkotzAWsD2KvvYpG/90t02vo XgQrBnUsKH9WGCqV43gkEgrOqYpPfbeJY+UVsWe7TDvwlvpKbE6yqi2E0Ie1/K/G/bZTKX z5eQaw9LeZnM3pcpc65cCj3bwzo/ytgzhOWcTWfS/iG7kjeCX2iPM9lsMpx8jucyFBgbKT RYS7chBE39uqkEmt1lydXLiPZahFGv1FUF4IQ1+ooev3hCqB6xTG55mt1pTgFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716399313; 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=5x4FXzi/B1JloD/T4Kr+YHhyiKMU2U2X2x3zU/dL7T8=; b=taojaVbvUekwIJsjozQpamtDH6g8Upxi9cOMqd7w4W2wUzB4BULNCo+vCRIpjOFeB9V2Ub DRkO7JZd+XyhRvPtscakZiWl77cL5tA21VsrnfIESHID7SFrjSL2Pok4luDt7PMfA6HZ+r S58mdgy0p5QTsUL5V/GN3lwoXUX5loIw3GwW+nqMM2PlYFQqa/AVs1ow1+08RyCOC1TU/2 uB5xcUaAXW8lhGa2RScpahgPAb/k2kFbcRa9VHnZx0iw2hh+G5f4lMS7Q4B5WsG93MQAN3 oAykxCfsIRegrOfx/F4bUh9WeOwJhhKnzkTFwv+MVOzso30RhMPZNK+qI+fH0Q== 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 4Vkz351ssmzFWy for ; Wed, 22 May 2024 17:35:13 +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 44MHZDsw073588 for ; Wed, 22 May 2024 17:35:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44MHZDGa073583 for bugs@FreeBSD.org; Wed, 22 May 2024 17:35:13 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: bugs@FreeBSD.org Subject: [Bug 279226] sort(1) can deadlock with poorly timed signal Date: Wed, 22 May 2024 17:35:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: kevans@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: 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: 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=3D279226 Bug ID: 279226 Summary: sort(1) can deadlock with poorly timed signal Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: kevans@freebsd.org sort(1) has a semapahore to protect the tmp file list, and it catches numer= ous signals to trigger tmp cleanup before bailing out. If we receive a signal while tmp_files_sem is held, we can easily deadlock sort(1) as the signal handler tries to take it again. --=20 You are receiving this mail because: You are the assignee for the bug.=