From nobody Wed Aug 03 13:56:33 2022 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 4LyYLT5Kr4z4Xhxh; Wed, 3 Aug 2022 13:56:33 +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 4LyYLT4mrNz3f6X; Wed, 3 Aug 2022 13:56:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659534993; 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=VWrAXZ6scrgme0Y0hyTPD4Dj/cjFxiLnEENUtTR9ZpU=; b=doFiVlVq0JyV3HZ7QLOQZ80xrRbK8ajcsXnd0RLxBy0pDr/8k+7m1AwxNMdvn3qmqYLDoC JrM4p33oSm6EeotakFU/z7nRVBjnzBrmVlsi7y0ZtZMo+FUqI0Ww4MJnjJD28yyofBYypB VaSx1xeY+tAJh43qIDWFxMGlYVnyT1T9tTWqoXCFC0bCaXVTPHwyDbfmE4mUbNNMtnYU/G rHrmS2WxKUYeR3FX8zcZTfV+WGdPPjGHXJwld6zd/827XFfSlvrBQTZHZku71QR5GipqRf T1Qmw3vh+dSgb9vL8EBV1WYtJa4FhEN5xqRb+oToHRxRtcv5T4K9nVHVFhWVUg== 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 4LyYLT3nMtztGn; Wed, 3 Aug 2022 13:56:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 273DuXAh000127; Wed, 3 Aug 2022 13:56:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 273DuXDx000126; Wed, 3 Aug 2022 13:56:33 GMT (envelope-from git) Date: Wed, 3 Aug 2022 13:56:33 GMT Message-Id: <202208031356.273DuXDx000126@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: f2fd7d8bfc69 - main - ast_sig(): add missed TDAI() 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f2fd7d8bfc6962d351bef5958bd73e9b46587c2b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659534993; 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=VWrAXZ6scrgme0Y0hyTPD4Dj/cjFxiLnEENUtTR9ZpU=; b=GPKlygl3IRAUM7JPmsgE+2HDAfZu/9qe6Caphel1FqW2a8cKeJhhJCrzH7Pltco2VqdeDf afqMURpocoqB11JOKlAMkQBHMANVr4c8sQKm/HwbT3oXbQp+zps8GccwwRbUPDL4kEdsT7 vgBuNBR0Kv+gGtp3//vDBNflmLDCQFh2wwiyPN9vw84p1aT8JL3kMHkhtkhJponIIO+YYW k9+bIwR11TIyzCMQ/YqzEsvSi2RB/WGD4wGsjEg4uYiNwt7jIND3Of7YJyKcAj5sqLzNFm M5+70sR/Txll+etvheRwdlvtwzEc3lvTo84xmft2er7r5Bl7r7Ito/BQj1ttcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659534993; a=rsa-sha256; cv=none; b=XryhY6JsxHwsypnpE7hBfOnOo+rf6B96vDjEPP3KMvUWN/nUQuI3kAdvtP06aZaOtnsceB 8QlBsjAahNViOFqDl/cVbsUXMuz97vIX7fDHHN7x83AsyASrkjzbL8JF0Vy8i8TzG73YJd csygUuEZFyRcRIN5jz8NIkheNs1O3yTSRcypM9V4LAjjLxnyzuQjWfaDO5OYvfR3K0s9Y8 oo6f/u3X+01eJmUZiXibHz3yvVEwyljYslYziwelx9JpVGxdtUaAY0AjioxbN3mpjDqu9I ndvUz78Um+jqrfObI+JsS1W+he0J0S4UvwanpoAUoYIu9odBSCQMsDO8MD87bQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f2fd7d8bfc6962d351bef5958bd73e9b46587c2b commit f2fd7d8bfc6962d351bef5958bd73e9b46587c2b Author: Konstantin Belousov AuthorDate: 2022-08-03 13:42:49 +0000 Commit: Konstantin Belousov CommitDate: 2022-08-03 13:56:23 +0000 ast_sig(): add missed TDAI() Mask checked was completely wrong Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D36033 --- sys/kern/kern_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index cad8cc3edf98..c62b53ecc844 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -317,7 +317,7 @@ ast_sig(struct thread *td, int tda) * p_siglist might cause process-directed signal to be handled * later. */ - if ((tda & TDA_SIG) != 0 || p->p_pendingcnt > 0 || + if ((tda & TDAI(TDA_SIG)) != 0 || p->p_pendingcnt > 0 || !SIGISEMPTY(p->p_siglist)) { sigfastblock_fetch(td); PROC_LOCK(p);