Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAB07C38142 for ; Sat, 28 Jan 2023 19:49:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234401AbjA1Tt5 (ORCPT ); Sat, 28 Jan 2023 14:49:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbjA1Tty (ORCPT ); Sat, 28 Jan 2023 14:49:54 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9339320D03; Sat, 28 Jan 2023 11:49:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674935393; x=1706471393; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Ks8NPG/0wNzB8QAK/WMNQrtn0BmzV/O50xmmaQ8aYiE=; b=oJj3J4GEEjlLkHQpDq/SRuSeGUMOGl0aQjLVfrnWOD7P0d9iEV51km0n PkCGGPtm5uWwZeEUqyYwdHcz889u+eQVsopmlmVSmh8trHj9oXQl/mxRB ShLw1pwIJu3kXgTzd1vMo36Pxdlfx4rzVXEYC40o8V8aMPcdGPcRTBHHt acAf5f5UlVXTZMwrlj94cseypJGa83BKY4iNEdHFeAogLP9TqJV5LZQpA TYKpX6Em9ksHoYVXcK28ehZlUnA/B/rVTOQGgrikwYpTubVahOl88ZcPN dySD2HybNgujxxM6Pj1+Dlsc+HrJyQdXAm1oO+vD7NdyZn4Pt6Zkhu3EW Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10604"; a="413548360" X-IronPort-AV: E=Sophos;i="5.97,254,1669104000"; d="scan'208";a="413548360" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2023 11:49:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10604"; a="732231775" X-IronPort-AV: E=Sophos;i="5.97,254,1669104000"; d="scan'208";a="732231775" Received: from lkp-server01.sh.intel.com (HELO ffa7f14d1d0f) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 28 Jan 2023 11:49:50 -0800 Received: from kbuild by ffa7f14d1d0f with local (Exim 4.96) (envelope-from ) id 1pLrCv-000135-17; Sat, 28 Jan 2023 19:49:49 +0000 Date: Sun, 29 Jan 2023 03:49:18 +0800 From: kernel test robot To: Gregory Price , 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 Subject: Re: [PATCH v7 1/1] ptrace,syscall_user_dispatch: checkpoint/restore support for SUD Message-ID: <202301290302.CSHz4zLe-lkp@intel.com> References: <20230126190645.18341-2-gregory.price@memverge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230126190645.18341-2-gregory.price@memverge.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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