Message ID | 20230109153348.5625-3-gregory.price@memverge.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Checkpoint Support for Syscall User Dispatch | expand |
Hi Gregory, Thank you for the patch! Yet something to improve: [auto build test ERROR on shuah-kselftest/next] [also build test ERROR on shuah-kselftest/fixes ebiederm-user-namespace/for-next linus/master v6.2-rc4 next-20230117] [cannot apply to tip/core/entry] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Gregory-Price/ptrace-syscall_user_dispatch-Implement-Syscall-User-Dispatch-Suspension/20230109-233954 base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next patch link: https://lore.kernel.org/r/20230109153348.5625-3-gregory.price%40memverge.com patch subject: [PATCH 2/3] fs/proc/array: Add Syscall User Dispatch to proc status config: arm-pxa168_defconfig compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/intel-lab-lkp/linux/commit/f6bd5bdbe4e444c678e756d5b8b50e07ea4ccec5 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Gregory-Price/ptrace-syscall_user_dispatch-Implement-Syscall-User-Dispatch-Suspension/20230109-233954 git checkout f6bd5bdbe4e444c678e756d5b8b50e07ea4ccec5 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@intel.com> All errors (new ones prefixed by >>): >> fs/proc/array.c:435:29: error: no member named 'selector' in 'struct syscall_user_dispatch' (p->syscall_dispatch.selector != NULL)); ~~~~~~~~~~~~~~~~~~~ ^ 1 error generated. vim +435 fs/proc/array.c 430 431 static inline void task_syscall_user_dispatch(struct seq_file *m, 432 struct task_struct *p) 433 { 434 seq_put_decimal_ull(m, "\nSyscall_user_dispatch:\t", > 435 (p->syscall_dispatch.selector != NULL)); 436 } 437
diff --git a/fs/proc/array.c b/fs/proc/array.c index 49283b8103c7..c85cdb4c137c 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -428,6 +428,13 @@ static inline void task_thp_status(struct seq_file *m, struct mm_struct *mm) seq_printf(m, "THP_enabled:\t%d\n", thp_enabled); } +static inline void task_syscall_user_dispatch(struct seq_file *m, + struct task_struct *p) +{ + seq_put_decimal_ull(m, "\nSyscall_user_dispatch:\t", + (p->syscall_dispatch.selector != NULL)); +} + int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) { @@ -451,6 +458,7 @@ int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, task_cpus_allowed(m, task); cpuset_task_status_allowed(m, task); task_context_switch_counts(m, task); + task_syscall_user_dispatch(m, task); return 0; }
If a dispatch selector has been configured for Syscall User Dispatch, report Syscall User Dispath as configured in proc/status. This provides an indicator to userland checkpoint/restart software that it must manage special signal conditions (similar to SECCOMP) Signed-off-by: Gregory Price <gregory.price@memverge.com> --- fs/proc/array.c | 8 ++++++++ 1 file changed, 8 insertions(+)