From nobody Mon Oct 09 03:41:13 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 4S3lF626B2z4wBqQ; Mon, 9 Oct 2023 03:41:14 +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 4S3lF61BzFz3gYJ; Mon, 9 Oct 2023 03:41:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696822874; 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=34deJtY+oCXXaHYa2ANnQre/44uc/FRcFYVpCPyojUo=; b=BqlLwdZbpi697Y7+XD/yWXaFZ+EJA3dEFRa8Ze+qXBcR9o4wFy4QuDlX48P36WYAFepdAs cXppGsMmp6hpZyQxiVTwD4Fq11lCaUmjT8T1dcduZiTwOfBzZdgqIQr8yrT4qBTCVsaYlx EZKxib/IHwQ964/7lEUmYKg3HR+H75B/oVt7Ugibfkrs7tCP13LCnxm/6BgDuyhOy11FKT oqhYLa8Vvhq76kwBfHspJgM5eLgg3gGNOnAvVUDYLFq101ZilhUXgvuv3qM2SIIamhn49U aSH0j+808AcFXvpWWyMoY3FZE/MWADkPxJhEi/7+aPWcO6ZHbJFhTy+L4xGIDA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696822874; a=rsa-sha256; cv=none; b=ApBmIaAdH2WuU/Zir+qAUpUPTmXUmXsKQ2dvCcldPIJMAPmW/PsZ2gjifPvbXvh5i6n+HN avWp2lQj9Ooh1RoI+kbW19UJjyvwJByZ2UngxQ2lRblyBiHdwb91SL3cd1ZycTGvHj5PEJ vJBLKfyL2R6fORh365NMAdRP8wwIYB8ilWREeBdODGUADboshD8zu53j1Nd+zxVnTMGhBm 8Db1moltmXcNI1qu/q/9j2F0Z72apRXH70lPNTRkU3BOs8PN9Bjv2PcIULTUZNpentRxvU osGdBbr2f/LIhBUPOWtAZ0DX1pCuy3xCFBI8z8HYGbVQPxZVejPm/R8gJewWTg== 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=1696822874; 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=34deJtY+oCXXaHYa2ANnQre/44uc/FRcFYVpCPyojUo=; b=gDX+/TJS7FlrLQhMQvVrI6qKwljfvNcVZyRK2QC/iMZXS+Y3o9i3u1OljZIn1RUXPNkSxU Ysljx+feCI47wY5UqX+a7ODpn9sXTrr+6ksDvTM0NoNAmXZQ3Ob2AC2VkgGFIBe1X+ysh+ WBwPawZeakSHHZVjUmoDjIDHcKXx5jnQoN1rbylQdu4OHXqyO0hSrTrWxYwo3Mi+JdAMJW fqELIbp06sxLwEFkybcJ7H/ZlYwlXk35m7BC0Ecc8PBWiiJAFlpTTEKH0E6RSdLc1ckPLQ mEJo2yefOmFZkQBlKzsim8ftTmJ9+1bFEPtRsKeplN5WzpO89jadQ8ki2zjHDg== 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 4S3lF60JjMzg43; Mon, 9 Oct 2023 03:41:14 +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 3993fDQp017919; Mon, 9 Oct 2023 03:41:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3993fDqQ017916; Mon, 9 Oct 2023 03:41:13 GMT (envelope-from git) Date: Mon, 9 Oct 2023 03:41:13 GMT Message-Id: <202310090341.3993fDqQ017916@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 9a077205ca6c - stable/14 - linuxolator: fix nosys() to not send SIGSYS 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 9a077205ca6cc1fa13ad50a797aed638abb9e7cb Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9a077205ca6cc1fa13ad50a797aed638abb9e7cb commit 9a077205ca6cc1fa13ad50a797aed638abb9e7cb Author: Konstantin Belousov AuthorDate: 2023-09-25 16:39:48 +0000 Commit: Konstantin Belousov CommitDate: 2023-10-09 03:24:31 +0000 linuxolator: fix nosys() to not send SIGSYS (cherry picked from commit 7acc4240ce00af540093b47ad00be0508310b515) --- sys/amd64/linux/linux_sysvec.c | 2 +- sys/amd64/linux32/linux32_sysvec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c index 2907323d903c..98e2a01b98db 100644 --- a/sys/amd64/linux/linux_sysvec.c +++ b/sys/amd64/linux/linux_sysvec.c @@ -159,7 +159,7 @@ linux_fetch_syscall_args(struct thread *td) if (sa->code >= p->p_sysent->sv_size) /* nosys */ - sa->callp = &p->p_sysent->sv_table[p->p_sysent->sv_size - 1]; + sa->callp = &nosys_sysent; else sa->callp = &p->p_sysent->sv_table[sa->code]; diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c index 31436ee7162a..7104cc50735e 100644 --- a/sys/amd64/linux32/linux32_sysvec.c +++ b/sys/amd64/linux32/linux32_sysvec.c @@ -531,7 +531,7 @@ linux32_fetch_syscall_args(struct thread *td) if (sa->code >= p->p_sysent->sv_size) /* nosys */ - sa->callp = &p->p_sysent->sv_table[p->p_sysent->sv_size - 1]; + sa->callp = &nosys_sysent; else sa->callp = &p->p_sysent->sv_table[sa->code];