diff options
Diffstat (limited to 'arch/s390')
| -rw-r--r-- | arch/s390/Kconfig | 1 | ||||
| -rw-r--r-- | arch/s390/Kconfig.debug | 14 | ||||
| -rw-r--r-- | arch/s390/kernel/dumpstack.c | 26 | ||||
| -rw-r--r-- | arch/s390/lib/Makefile | 1 | ||||
| -rw-r--r-- | arch/s390/lib/usercopy.c | 8 | 
5 files changed, 2 insertions, 48 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index bda6ba6f3cf..ce640aff61a 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -91,6 +91,7 @@ config S390  	select ARCH_INLINE_WRITE_UNLOCK_BH  	select ARCH_INLINE_WRITE_UNLOCK_IRQ  	select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE +	select ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS  	select ARCH_SAVE_PAGE_KEYS if HIBERNATION  	select ARCH_WANT_IPC_PARSE_VERSION  	select BUILDTIME_EXTABLE_SORT diff --git a/arch/s390/Kconfig.debug b/arch/s390/Kconfig.debug index fc32a2df497..c56878e1245 100644 --- a/arch/s390/Kconfig.debug +++ b/arch/s390/Kconfig.debug @@ -17,20 +17,6 @@ config STRICT_DEVMEM  	  If you are unsure, say Y. -config DEBUG_STRICT_USER_COPY_CHECKS -	def_bool n -	prompt "Strict user copy size checks" -	---help--- -	  Enabling this option turns a certain set of sanity checks for user -	  copy operations into compile time warnings. - -	  The copy_from_user() etc checks are there to help test if there -	  are sufficient security checks on the length argument of -	  the copy operation, by having gcc prove that the argument is -	  within bounds. - -	  If unsure, or if you run an older (pre 4.4) gcc, say N. -  config S390_PTDUMP  	bool "Export kernel pagetable layout to userspace via debugfs"  	depends on DEBUG_KERNEL diff --git a/arch/s390/kernel/dumpstack.c b/arch/s390/kernel/dumpstack.c index 03dce39d01e..29829747725 100644 --- a/arch/s390/kernel/dumpstack.c +++ b/arch/s390/kernel/dumpstack.c @@ -129,23 +129,6 @@ static void show_last_breaking_event(struct pt_regs *regs)  #endif  } -/* - * The architecture-independent dump_stack generator - */ -void dump_stack(void) -{ -	printk("CPU: %d %s %s %.*s\n", -	       task_thread_info(current)->cpu, print_tainted(), -	       init_utsname()->release, -	       (int)strcspn(init_utsname()->version, " "), -	       init_utsname()->version); -	printk("Process %s (pid: %d, task: %p, ksp: %p)\n", -	       current->comm, current->pid, current, -	       (void *) current->thread.ksp); -	show_stack(NULL, NULL); -} -EXPORT_SYMBOL(dump_stack); -  static inline int mask_bits(struct pt_regs *regs, unsigned long bits)  {  	return (regs->psw.mask & bits) / ((~bits + 1) & bits); @@ -183,14 +166,7 @@ void show_registers(struct pt_regs *regs)  void show_regs(struct pt_regs *regs)  { -	printk("CPU: %d %s %s %.*s\n", -	       task_thread_info(current)->cpu, print_tainted(), -	       init_utsname()->release, -	       (int)strcspn(init_utsname()->version, " "), -	       init_utsname()->version); -	printk("Process %s (pid: %d, task: %p, ksp: %p)\n", -	       current->comm, current->pid, current, -	       (void *) current->thread.ksp); +	show_regs_print_info(KERN_DEFAULT);  	show_registers(regs);  	/* Show stack backtrace if pt_regs is from kernel mode */  	if (!user_mode(regs)) diff --git a/arch/s390/lib/Makefile b/arch/s390/lib/Makefile index 6ab0d0b5cec..20b0e97a7df 100644 --- a/arch/s390/lib/Makefile +++ b/arch/s390/lib/Makefile @@ -3,7 +3,6 @@  #  lib-y += delay.o string.o uaccess_std.o uaccess_pt.o -obj-y += usercopy.o  obj-$(CONFIG_32BIT) += div64.o qrnnd.o ucmpdi2.o mem32.o  obj-$(CONFIG_64BIT) += mem64.o  lib-$(CONFIG_64BIT) += uaccess_mvcos.o diff --git a/arch/s390/lib/usercopy.c b/arch/s390/lib/usercopy.c deleted file mode 100644 index 14b363fec8a..00000000000 --- a/arch/s390/lib/usercopy.c +++ /dev/null @@ -1,8 +0,0 @@ -#include <linux/module.h> -#include <linux/bug.h> - -void copy_from_user_overflow(void) -{ -	WARN(1, "Buffer overflow detected!\n"); -} -EXPORT_SYMBOL(copy_from_user_overflow);  |