From: kernel test robot <lkp@intel.com>
To: Gregory Price <gourry.memverge@gmail.com>, linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, linux-doc@vger.kernel.org,
oleg@redhat.com, avagin@gmail.com, peterz@infradead.org,
luto@kernel.org, krisman@collabora.com, tglx@linutronix.de,
corbet@lwn.net, shuah@kernel.org,
Gregory Price <gregory.price@memverge.com>
Subject: Re: [PATCH v7 1/1] ptrace,syscall_user_dispatch: checkpoint/restore support for SUD
Date: Sun, 29 Jan 2023 03:49:18 +0800 [thread overview]
Message-ID: <202301290302.CSHz4zLe-lkp@intel.com> (raw)
In-Reply-To: <20230126190645.18341-2-gregory.price@memverge.com>
Hi Gregory,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on tip/core/entry v6.2-rc5 next-20230127]
[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-checkpoint-restore-support-for-SUD/20230128-145101
patch link: https://lore.kernel.org/r/20230126190645.18341-2-gregory.price%40memverge.com
patch subject: [PATCH v7 1/1] ptrace,syscall_user_dispatch: checkpoint/restore support for SUD
config: x86_64-rhel-8.3-kselftests (https://download.01.org/0day-ci/archive/20230129/202301290302.CSHz4zLe-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/bc68df21f98617e74a8c5368a901041f89bdb17f
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Gregory-Price/ptrace-syscall_user_dispatch-checkpoint-restore-support-for-SUD/20230128-145101
git checkout bc68df21f98617e74a8c5368a901041f89bdb17f
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=x86_64 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 >>):
kernel/entry/syscall_user_dispatch.c: In function 'syscall_user_dispatch_get_config':
>> kernel/entry/syscall_user_dispatch.c:114:45: error: storage size of 'config' isn't known
114 | struct syscall_user_dispatch_config config;
| ^~~~~~
>> kernel/entry/syscall_user_dispatch.c:116:28: error: invalid application of 'sizeof' to incomplete type 'struct syscall_user_dispatch_config'
116 | if (size != sizeof(struct syscall_user_dispatch_config))
| ^~~~~~
kernel/entry/syscall_user_dispatch.c:114:45: warning: unused variable 'config' [-Wunused-variable]
114 | struct syscall_user_dispatch_config config;
| ^~~~~~
kernel/entry/syscall_user_dispatch.c: In function 'syscall_user_dispatch_set_config':
kernel/entry/syscall_user_dispatch.c:137:45: error: storage size of 'config' isn't known
137 | struct syscall_user_dispatch_config config;
| ^~~~~~
kernel/entry/syscall_user_dispatch.c:139:28: error: invalid application of 'sizeof' to incomplete type 'struct syscall_user_dispatch_config'
139 | if (size != sizeof(struct syscall_user_dispatch_config))
| ^~~~~~
kernel/entry/syscall_user_dispatch.c:137:45: warning: unused variable 'config' [-Wunused-variable]
137 | struct syscall_user_dispatch_config config;
| ^~~~~~
kernel/entry/syscall_user_dispatch.c:147:1: error: control reaches end of non-void function [-Werror=return-type]
147 | }
| ^
cc1: some warnings being treated as errors
vim +114 kernel/entry/syscall_user_dispatch.c
109
110 int syscall_user_dispatch_get_config(struct task_struct *task, unsigned long size,
111 void __user *data)
112 {
113 struct syscall_user_dispatch *sd = &task->syscall_dispatch;
> 114 struct syscall_user_dispatch_config config;
115
> 116 if (size != sizeof(struct syscall_user_dispatch_config))
117 return -EINVAL;
118
119 if (test_syscall_work(SYSCALL_USER_DISPATCH))
120 config.mode = PR_SYS_DISPATCH_ON;
121 else
122 config.mode = PR_SYS_DISPATCH_OFF;
123
124 config.offset = sd->offset;
125 config.len = sd->len;
126 config.selector = sd->selector;
127
128 if (copy_to_user(data, &config, sizeof(config)))
129 return -EFAULT;
130
131 return 0;
132 }
133
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
prev parent reply other threads:[~2023-01-28 19:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-26 19:06 [PATCH v7 0/1] Checkpoint Support for Syscall User Dispatch Gregory Price
2023-01-26 19:06 ` [PATCH v7 1/1] ptrace,syscall_user_dispatch: checkpoint/restore support for SUD Gregory Price
2023-01-26 19:15 ` Oleg Nesterov
2023-01-28 12:03 ` kernel test robot
2023-01-28 16:11 ` kernel test robot
2023-01-28 19:49 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202301290302.CSHz4zLe-lkp@intel.com \
--to=lkp@intel.com \
--cc=avagin@gmail.com \
--cc=corbet@lwn.net \
--cc=gourry.memverge@gmail.com \
--cc=gregory.price@memverge.com \
--cc=krisman@collabora.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oleg@redhat.com \
--cc=peterz@infradead.org \
--cc=shuah@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).