From nobody Tue Jan 02 00:37:25 2024 X-Original-To: dev-commits-src-branches@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 4T3v7p2mG6z55yZD; Tue, 2 Jan 2024 00:37:26 +0000 (UTC) (envelope-from git@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 4T3v7p1Sq3z3HxD; Tue, 2 Jan 2024 00:37:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704155846; 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=AOEm/f2WVfeaMdyrz6Pel7/9QhLWqMTngCS2vZcH68o=; b=KwcTF6rlzX7BR6+U9quYoizds9Z5KoHiAqnmQDqgqJVOGFXT4AFrshMzndxRJolYtIxoVC j42Vo4CUimy/1pwpWnUuO458nK6vLK3QByxH11A1VBSAa6L3e9pjskPK+zvoJvWH5GcLn4 RS+nJPAFebLzbdWIrWwk4lyfLB6Qm52OBh7an02/kKK+ti7wgknGIXOrTGNXJr6b7iKnf1 vG3T/vcL84PJi9EV1Ml/LTEiZ7y64G1RLA1H/0KGa15erM60P1UKxgmcDQZkeg6fvu23dy EhVlcHyHHI1maGaLgORa7KBrnEy1wLJG5EGsgZUVVCFx0G5AH989CZz4KuRfyQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704155846; a=rsa-sha256; cv=none; b=eNT25kEM8L2a7sqjtYjlV1J5VQJ1SQUxklBgV1Nx5ndjRnC6pEG2JxTxCX6zK/Ma9r413s oOf7aPuQlzu5x07nKHp2Y8cigrZMImayaWm3OePiYN8drwZjHeDTzfGn7+drK13dQz0ypU ctPyNiU5SSNSyZEscjcR5dh7fPVmKl/ufJ3Mx1z19pkVlt8MGlcFcE+cMqHQ0xWz7WEXPk 3AZP49xhmxZMgn9GGA6WxQETjHefRvT7vjwToaTuElTRxwJhoc7nF1y0GY0KRl0HZq9CYy hi0oOjF7lDQGKZdR+GNupd4XreGGib95S8cqdBOwwWA7ql8a0dJNl3huKMMTrw== 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=1704155846; 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=AOEm/f2WVfeaMdyrz6Pel7/9QhLWqMTngCS2vZcH68o=; b=azQW1TKl6+3KqLIJRFHEmkwZfU1/G+bHSbTDk78TDHwRBF6uQL+3+SOrkiTIic+XXiotWR yKoukEGPBgbZQ5jDld0auQVMo+c8HA96osjHOYYnTHLgbE2ToL6LDzGMDT6/Xi/6Bz/uWf vR7GA/2IJ82jQg0yvex2YU4CXH4kOIp9NU3T9KPqdLpsbuk+IPPQ6CNGT9XYlwj3SsxQsE 9iujYzJTErxEKj1vKn2AnUsSEk7KGXJtMMVfCmNnyltEBkYdQNDPZZ+Oshxaw532+LfNiq hfqdTpsfp/S5wmXxHjI5vZLocacyeANHdp10sRqWp9BMIcase7gNB0bRKq3A1A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4T3v7p0XTpzfsj; Tue, 2 Jan 2024 00:37:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4020bPEZ085544; Tue, 2 Jan 2024 00:37:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4020bPH0085541; Tue, 2 Jan 2024 00:37:25 GMT (envelope-from git) Date: Tue, 2 Jan 2024 00:37:25 GMT Message-Id: <202401020037.4020bPH0085541@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 14943fbc483a - stable/14 - thread: Ignore errors when copying out during thr_exit() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 14943fbc483a502a3e183d88f69954642ee91eba Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=14943fbc483a502a3e183d88f69954642ee91eba commit 14943fbc483a502a3e183d88f69954642ee91eba Author: Mark Johnston AuthorDate: 2023-12-26 01:42:04 +0000 Commit: Mark Johnston CommitDate: 2024-01-02 00:29:53 +0000 thread: Ignore errors when copying out during thr_exit() It does not seem reasonable to return to userspace after calling umtx_thread_exit(). This is in preparation for annotating copyin() and related functions with __result_use_check. Reviewed by: olce, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43143 (cherry picked from commit f450277f7a608f26624384e046c1987490c51296) --- sys/kern/kern_thr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 544479fc9f13..e2f1b6baca4b 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -315,8 +315,8 @@ sys_thr_exit(struct thread *td, struct thr_exit_args *uap) /* Signal userland that it can free the stack. */ if ((void *)uap->state != NULL) { - suword_lwpid(uap->state, 1); - kern_umtx_wake(td, uap->state, INT_MAX, 0); + (void)suword_lwpid(uap->state, 1); + (void)kern_umtx_wake(td, uap->state, INT_MAX, 0); } return (kern_thr_exit(td));