lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200618141426.16884-1-nixiaoming@huawei.com>
Date:   Thu, 18 Jun 2020 22:14:26 +0800
From:   Xiaoming Ni <nixiaoming@...wei.com>
To:     <acme@...nel.org>, <alexander.shishkin@...ux.intel.com>,
        <arnd@...db.de>, <borntraeger@...ibm.com>,
        <catalin.marinas@....com>, <christian@...uner.io>,
        <cyphar@...har.com>, <dhowells@...hat.com>,
        <ebiederm@...ssion.com>, <fenghua.yu@...el.com>,
        <geert@...ux-m68k.org>, <gor@...ux.ibm.com>,
        <heiko.carstens@...ibm.com>, <ink@...assic.park.msu.ru>,
        <jolsa@...hat.com>, <linux@...linux.org.uk>, <lkp@...el.com>,
        <mark.rutland@....com>, <mattst88@...il.com>, <minchan@...nel.org>,
        <mingo@...hat.com>, <monstr@...str.eu>, <namhyung@...nel.org>,
        <nixiaoming@...wei.com>, <peterz@...radead.org>, <rth@...ddle.net>,
        <sargun@...gun.me>, <sfr@...b.auug.org.au>, <tony.luck@...el.com>,
        <will@...nel.org>, <akpm@...ux-foundation.org>
CC:     <alex.huangjianhui@...wei.com>, <zhongjubin@...wei.com>,
        <linux-kernel@...r.kernel.org>, <linux-s390@...r.kernel.org>,
        <clang-built-linux@...glegroups.com>, <kbuild-all@...ts.01.org>,
        <linux-mm@...ck.org>
Subject: [PATCH v2] s390: fix build error for sys_call_table_emu

Build error on s390:
	arch/s390/kernel/entry.o: in function `sys_call_table_emu':
	>> (.rodata+0x1288): undefined reference to `__s390_'

In commit ("All arch: remove system call sys_sysctl")
 148  common	fdatasync		sys_fdatasync			sys_fdatasync
-149  common	_sysctl			sys_sysctl			compat_sys_sysctl
+149  common	_sysctl			sys_ni_syscall
 150  common	mlock			sys_mlock			sys_mlock

After the patch is integrated, there is a format error in the generated
arch/s390/include/generated/asm/syscall_table.h:
	SYSCALL(sys_fdatasync, sys_fdatasync)
	SYSCALL(sys_ni_syscall,) /* cause build error */
	SYSCALL(sys_mlock,sys_mlock)

According to the guidance of Heiko Carstens, use "-" to fill the empty system call
 Similarly, modify tools/perf/arch/s390/entry/syscalls/syscall.tbl.

Fixes: ("All arch: remove system call sys_sysctl")
Fixes: https://lore.kernel.org/linuxppc-dev/20200616030734.87257-1-nixiaoming@huawei.com/
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Xiaoming Ni <nixiaoming@...wei.com>

changes in v2:
	use "-" to fill the empty system call

v1: https://lore.kernel.org/lkml/20200618110320.104013-1-nixiaoming@huawei.com/
---
 arch/s390/kernel/syscalls/syscall.tbl           | 2 +-
 tools/perf/arch/s390/entry/syscalls/syscall.tbl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/s390/kernel/syscalls/syscall.tbl b/arch/s390/kernel/syscalls/syscall.tbl
index f17aaf6fe5de..04c34c2ed916 100644
--- a/arch/s390/kernel/syscalls/syscall.tbl
+++ b/arch/s390/kernel/syscalls/syscall.tbl
@@ -138,7 +138,7 @@
 146  common	writev			sys_writev			compat_sys_writev
 147  common	getsid			sys_getsid			sys_getsid
 148  common	fdatasync		sys_fdatasync			sys_fdatasync
-149  common	_sysctl			sys_ni_syscall
+149  common	_sysctl			-				-
 150  common	mlock			sys_mlock			sys_mlock
 151  common	munlock			sys_munlock			sys_munlock
 152  common	mlockall		sys_mlockall			sys_mlockall
diff --git a/tools/perf/arch/s390/entry/syscalls/syscall.tbl b/tools/perf/arch/s390/entry/syscalls/syscall.tbl
index 0193f9b98753..29144b79a49d 100644
--- a/tools/perf/arch/s390/entry/syscalls/syscall.tbl
+++ b/tools/perf/arch/s390/entry/syscalls/syscall.tbl
@@ -138,7 +138,7 @@
 146  common	writev			sys_writev			compat_sys_writev
 147  common	getsid			sys_getsid			sys_getsid
 148  common	fdatasync		sys_fdatasync			sys_fdatasync
-149  common	_sysctl			sys_ni_syscall
+149  common	_sysctl			-				-
 150  common	mlock			sys_mlock			compat_sys_mlock
 151  common	munlock			sys_munlock			compat_sys_munlock
 152  common	mlockall		sys_mlockall			sys_mlockall
-- 
2.27.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ