Skip to contentSkip to conversation

Patch "parisc: Fix SIGSYS signals in compat case" has been added to the 4.5-stable tree

PATCH [email protected] 1 participant 1 message Apr 12, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

parisc: Fix SIGSYS signals in compat case

to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
parisc-fix-sigsys-signals-in-compat-case.patch
and it can be found in the queue-4.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 4f4acc9472e54ce702f1d85fc9e6d57767dec91f Mon Sep 17 00:00:00 2001

From: Helge Deller <[email protected]>
Date: Wed, 30 Mar 2016 14:11:50 +0200
Subject: parisc: Fix SIGSYS signals in compat case

From: Helge Deller <[email protected]>

commit 4f4acc9472e54ce702f1d85fc9e6d57767dec91f upstream.

---
 arch/parisc/include/asm/compat.h |    7 +++++++
 arch/parisc/kernel/signal32.c    |    5 +++++
 2 files changed, 12 insertions(+)
arch/parisc/include/asm/compat.h +7 -0
@@ -183,6 +183,13 @@ typedef struct compat_siginfo {
 			int _band;      /* POLL_IN, POLL_OUT, POLL_MSG */
 			int _fd;
 		} _sigpoll;
+
+		/* SIGSYS */
+		struct {
+			compat_uptr_t _call_addr; /* calling user insn */
+			int _syscall;	/* triggering system call number */
+			compat_uint_t _arch;	/* AUDIT_ARCH_* of syscall */
+		} _sigsys;
 	} _sifields;
 } compat_siginfo_t;
 
arch/parisc/kernel/signal32.c +5 -0
@@ -371,6 +371,11 @@ copy_siginfo_to_user32 (compat_siginfo_t
 			val = (compat_int_t)from->si_int;
 			err |= __put_user(val, &to->si_int);
 			break;
+		case __SI_SYS >> 16:
+			err |= __put_user(ptr_to_compat(from->si_call_addr), &to->si_call_addr);
+			err |= __put_user(from->si_syscall, &to->si_syscall);
+			err |= __put_user(from->si_arch, &to->si_arch);
+			break;
 		}
 	}
 	return err;

Patches currently in stable-queue which might be from [email protected] are

queue-4.5/parisc-fix-kernel-crash-with-reversed-copy_from_user.patch queue-4.5/parisc-unbreak-handling-exceptions-from-kernel-modules.patch queue-4.5/parisc-avoid-function-pointers-for-kernel-exception-routines.patch queue-4.5/parisc-fix-and-enable-seccomp-filter-support.patch queue-4.5/parisc-fix-sigsys-signals-in-compat-case.patch