From nobody Fri Oct 28 21:33:52 2022 X-Original-To: dev-commits-src-main@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 4MzbQS4J1xz4fwsY; Fri, 28 Oct 2022 21:33:52 +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 4MzbQS3YNSz3HG1; Fri, 28 Oct 2022 21:33:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666992832; 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=SoQ/xpB3AmaysAif8cUaNsDZHoEEWPpLNloeYTYrOX8=; b=Gr0iVZ1UCS4QLXCv56zDb/32OunE4Q1ll6ySZaEYm4Hox/keRro9Il5fCH4kTgUyIO2PK1 EJkj7XjTyjjq445ZWzS1usxa1zpuSSMj4XO6sUFwKPQSSB2IG9sxj1VMEoWmx+y8SaZD/v 0cRSPo0qy9jYB/r5gtNGCYEEmqo4N6vQIi76jyWf4LyEgX/5uPK9Lrbhlj/Vu6q8Tlpvyy EQlMNAvJ2FwwuXFQYQwZQmUnZdTfs8H0qOZokgUWCDvzLYKM5q3zd7NBtNGHhWNnTXQYwi k59YMm70PJJeteSsTaZbA2SDeJk+c+MOrFtnzUaHd6tWrMVxRAhG7H7J6YB8yQ== 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 4MzbQS2dBpzscQ; Fri, 28 Oct 2022 21:33:52 +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 29SLXqLH064167; Fri, 28 Oct 2022 21:33:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29SLXqfq064166; Fri, 28 Oct 2022 21:33:52 GMT (envelope-from git) Date: Fri, 28 Oct 2022 21:33:52 GMT Message-Id: <202210282133.29SLXqfq064166@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 1da65dcb1c57 - main - linux: populate sv_syscallnames in each sysentvec List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1da65dcb1c57fae7be75ddf1bd300ddf19ced850 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666992832; 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=SoQ/xpB3AmaysAif8cUaNsDZHoEEWPpLNloeYTYrOX8=; b=c3eLiEIish5fTSuI5TexpXZqFoaVwZxdX6KV61cYp1e5YK1olsbYMWqmkkCO0cQd8cm2Be obbvxvB3z41yJTTax95TZF/aB8xvQJTzjc52mFg6giW9YOpwtr0DunnPpfdrNqhMnXTmxI dmGOElPOXwwG1VN1jJ5/ryEv05yAfgvqrLzEApPl5GRY0qxvnRknDyoKgV8g/LHjTUaQxp EMYx4pumZb/JRKzSJDMUmmWEBjlKirb8Yqv5Lx54K1sBN5/icJ4PqKidaZViXoK32qJJBN CYE7yB7UvHnyJ4q6Bwq+y+DlUYH23sJiO4QfMsQeGRPDWqDQKadCfakVstfq1Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666992832; a=rsa-sha256; cv=none; b=qOZOPnIoZyQhQrtfVjjh04JAB3aprEUSjOGyMrcNC05gkolZeSVvRjtOzgDAo/fQUc9pUt mI7KEMonzR0kXWCYG0sC5GQhIlm53xwYCrQkA4se76o1zFyTUTea2MHp5CdY/VE6RHIRda K5AoXHCECeIoPcZUvLjFUeMVRdOoFmfBVAb3jt3aMEAYqcu7EB3SNj2vaQV4W7cRqtPxdH 7wjS5k86oX49JzH5KHzFcWlAjSNG6wCXAOtXTM13Dj/rXPjp5aXWQFHsVvHj8ztMjYR2fD dX0Ufxj7BIsousCwlhtOZEkD2tO4AxDFmzsdJhRWP2Y1E4aGEEQ50Xue0E0UNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=1da65dcb1c57fae7be75ddf1bd300ddf19ced850 commit 1da65dcb1c57fae7be75ddf1bd300ddf19ced850 Author: Mitchell Horne AuthorDate: 2022-10-28 21:19:39 +0000 Commit: Mitchell Horne CommitDate: 2022-10-28 21:21:08 +0000 linux: populate sv_syscallnames in each sysentvec This allows the syscallname() function to give a usable result for Linux ABIs. Reported by: jrtc27 Reviewed by: jrtc27, markj, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37199 --- sys/amd64/linux/linux_sysvec.c | 3 ++- sys/amd64/linux32/linux32_sysvec.c | 3 ++- sys/arm64/linux/linux_sysvec.c | 3 ++- sys/i386/linux/linux_sysvec.c | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c index abb498370f79..2a9e4909340b 100644 --- a/sys/amd64/linux/linux_sysvec.c +++ b/sys/amd64/linux/linux_sysvec.c @@ -110,6 +110,7 @@ extern char _binary_linux_vdso_so_o_end; static vm_offset_t linux_vdso_base; extern struct sysent linux_sysent[LINUX_SYS_MAXSYSCALL]; +extern const char *linux_syscallnames[]; SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler); @@ -729,7 +730,7 @@ struct sysentvec elf_linux_sysvec = { SV_SIG_WAITNDQ | SV_TIMEKEEP, .sv_set_syscall_retval = linux_set_syscall_retval, .sv_fetch_syscall_args = linux_fetch_syscall_args, - .sv_syscallnames = NULL, + .sv_syscallnames = linux_syscallnames, .sv_shared_page_base = LINUX_SHAREDPAGE_LA48, .sv_shared_page_len = PAGE_SIZE, .sv_schedtail = linux_schedtail, diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c index bd10d659979c..15caa5a2c2cc 100644 --- a/sys/amd64/linux32/linux32_sysvec.c +++ b/sys/amd64/linux32/linux32_sysvec.c @@ -113,6 +113,7 @@ extern char _binary_linux32_vdso_so_o_end; static vm_offset_t linux_vdso_base; extern struct sysent linux32_sysent[LINUX32_SYS_MAXSYSCALL]; +extern const char *linux32_syscallnames[]; SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler); @@ -882,7 +883,7 @@ struct sysentvec elf_linux_sysvec = { SV_SIG_DISCIGN | SV_SIG_WAITNDQ | SV_TIMEKEEP, .sv_set_syscall_retval = linux32_set_syscall_retval, .sv_fetch_syscall_args = linux32_fetch_syscall_args, - .sv_syscallnames = NULL, + .sv_syscallnames = linux32_syscallnames, .sv_shared_page_base = LINUX32_SHAREDPAGE, .sv_shared_page_len = PAGE_SIZE, .sv_schedtail = linux_schedtail, diff --git a/sys/arm64/linux/linux_sysvec.c b/sys/arm64/linux/linux_sysvec.c index 362917c3de31..41ac2912be29 100644 --- a/sys/arm64/linux/linux_sysvec.c +++ b/sys/arm64/linux/linux_sysvec.c @@ -98,6 +98,7 @@ extern char _binary_linux_vdso_so_o_end; static vm_offset_t linux_vdso_base; extern struct sysent linux_sysent[LINUX_SYS_MAXSYSCALL]; +extern const char *linux_syscallnames[]; SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler); @@ -576,7 +577,7 @@ struct sysentvec elf_linux_sysvec = { SV_SIG_WAITNDQ | SV_TIMEKEEP, .sv_set_syscall_retval = linux_set_syscall_retval, .sv_fetch_syscall_args = linux_fetch_syscall_args, - .sv_syscallnames = NULL, + .sv_syscallnames = linux_syscallnames, .sv_shared_page_base = LINUX_SHAREDPAGE, .sv_shared_page_len = PAGE_SIZE, .sv_schedtail = linux_schedtail, diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index e964f475a393..f67b19725cdf 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -96,6 +96,7 @@ extern char _binary_linux_vdso_so_o_end; static vm_offset_t linux_vdso_base; extern struct sysent linux_sysent[LINUX_SYS_MAXSYSCALL]; +extern const char *linux_syscallnames[]; SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler); @@ -782,7 +783,7 @@ struct sysentvec linux_sysvec = { SV_SIG_DISCIGN | SV_SIG_WAITNDQ, .sv_set_syscall_retval = linux_set_syscall_retval, .sv_fetch_syscall_args = linux_fetch_syscall_args, - .sv_syscallnames = NULL, + .sv_syscallnames = linux_syscallnames, .sv_schedtail = linux_schedtail, .sv_thread_detach = linux_thread_detach, .sv_trap = NULL,