mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

The PID of the stub process can be obtained from current_mm_id(). There is no need to track it via userspace_pid[]. Stop doing that to simplify the code. Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20250711065021.2535362-4-tiwei.bie@linux.dev Signed-off-by: Johannes Berg <johannes.berg@intel.com>
24 lines
374 B
C
24 lines
374 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2005 Jeff Dike (jdike@karaya.com)
|
|
*/
|
|
|
|
#ifndef __MM_ID_H
|
|
#define __MM_ID_H
|
|
|
|
#define STUB_MAX_FDS 4
|
|
|
|
struct mm_id {
|
|
int pid;
|
|
unsigned long stack;
|
|
int syscall_data_len;
|
|
|
|
/* Only used with SECCOMP mode */
|
|
int sock;
|
|
int syscall_fd_num;
|
|
int syscall_fd_map[STUB_MAX_FDS];
|
|
};
|
|
|
|
void notify_mm_kill(int pid);
|
|
|
|
#endif
|