From nobody Tue Dec 26 02:04:26 2023 X-Original-To: dev-commits-src-all@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 4SzdPQ5yjdz55Kt1; Tue, 26 Dec 2023 02:04: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 4SzdPQ3776z4KVY; Tue, 26 Dec 2023 02:04:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703556266; 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=SOlMSJlpu3GrpHZ3xj09diIzp5V+A+97nVNEvM/KrtY=; b=ESP+9Rgr9/LwB26wnC23/+gSxRusnaSOE2RxvwY1g3sVnNs9Y5IRmjSX99tcz9JdHRg1SB NkkHqJtJMIDxHzGRGLpAgzYoKQWAs84AAm0MMR3u6U9uyMmqDUxOudyMQJvpjr2ra1MHOi JI917u1X38xJHkPfyQ7DCiLOXYf3le4Ivy9HvZ/XVuHzoy5B3wF8/FiIkvGYVSRdPnAdN+ 6qs+0u+xsd+iXixWajxO89leklujxDxnsIvXqMols/HCBk5H7P20Yqn64rQFkmxQOcnWkR mbylULkSH9/kfo60SzwlBtNVSieV59EqdXA28l+u1F3CXti7fDpq56SUpqq7Xw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703556266; a=rsa-sha256; cv=none; b=j9mbs9SkemrSfyCNHJxeyzKYtU9kg7vTaDxy5HXpqZuuGJViGXK4GOYB46zzTSnAkLIRuH UTpZglWuhOW/MH0jEugHbo+hBrkQrRW7sgJlCzpmMnv2UT7VhmjAXvO622WHBHZfDXYUJN 2An3g2vTmpktMhnhMecm76ZOiubrpW+J59PGLNX9UC3LdJIF1nKBhPeBTm7yJJ74X1QPW1 zLYNXF8o+yDRM6k9UMamZD8KE7D8+fHKTHU354k/YnjiN0gkrei4itLw2IArkX6TAVTFFQ 4rXB7ECtfzh78X2MnfnxjzcOQnSDDvQ3sB6AJed2Ul/uxZcMDAr62edqbXRKmw== 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=1703556266; 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=SOlMSJlpu3GrpHZ3xj09diIzp5V+A+97nVNEvM/KrtY=; b=sfuTn3wNdMwnqCWK7+6s5Hm3LaVF6qXkPFsOFofdRKJo18Hc8ZuB+oyytR7EFDNHUNkS4w dI82zS93wmV+9PYRS27f7Hn9G80wKMyXH+mxKzjkfFpNr7SqbGVy+ju9Zw9FtVJXRx6koU JwNDf223GIpamtDC4q0UtBNC5d8H7KcPDODoR4msoYr9iuO/Bu5QUxGBmMeE+Xs3it8K0g nJxFsXYprIp14aDhqx93dl+K068f5B0IKjiUZVqaPJoZZyLnPtFulzJ6g18DcAdo0w8leb gnUKbYre/vCh6tjYKVSeOV+MMXtu/erS7S4sFKv+ZmM5g0s6hHMUrLKenOFGSA== 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 4SzdPQ2DndzblD; Tue, 26 Dec 2023 02:04: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 3BQ24Q1t003305; Tue, 26 Dec 2023 02:04:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BQ24QWf003302; Tue, 26 Dec 2023 02:04:26 GMT (envelope-from git) Date: Tue, 26 Dec 2023 02:04:26 GMT Message-Id: <202312260204.3BQ24QWf003302@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: f450277f7a60 - main - thread: Ignore errors when copying out during thr_exit() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: f450277f7a608f26624384e046c1987490c51296 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f450277f7a608f26624384e046c1987490c51296 commit f450277f7a608f26624384e046c1987490c51296 Author: Mark Johnston AuthorDate: 2023-12-26 01:42:04 +0000 Commit: Mark Johnston CommitDate: 2023-12-26 02:04:00 +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 --- 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));