mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-04 18:27:36 +00:00
When we switch to use seccomp, we need both the signal stack and other data (i.e. syscall information) to co-exist in the stub data. To facilitate this, start by defining separate memory areas for the stack and syscall data. This moves the signal stack onto a new page as the memory area is not sufficient to hold both signal stack and syscall information. Only change the signal stack setup for now, as the syscall code will be reworked later. Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net> Link: https://patch.msgid.link/20240703134536.1161108-3-benjamin@sipsolutions.net Signed-off-by: Johannes Berg <johannes.berg@intel.com>
27 lines
615 B
C
27 lines
615 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
|
|
* Copyright (C) 2015 Thomas Meyer (thomas@m3y3r.de)
|
|
* Copyright (C) 2005 Jeff Dike (jdike@karaya.com)
|
|
*/
|
|
|
|
#ifndef __STUB_DATA_H
|
|
#define __STUB_DATA_H
|
|
|
|
#include <linux/compiler_types.h>
|
|
#include <as-layout.h>
|
|
|
|
struct stub_data {
|
|
unsigned long offset;
|
|
int fd;
|
|
long parent_err, child_err;
|
|
|
|
/* 128 leaves enough room for additional fields in the struct */
|
|
unsigned char syscall_data[UM_KERN_PAGE_SIZE - 128] __aligned(16);
|
|
|
|
/* Stack for our signal handlers and for calling into . */
|
|
unsigned char sigstack[UM_KERN_PAGE_SIZE] __aligned(UM_KERN_PAGE_SIZE);
|
|
};
|
|
|
|
#endif
|