From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C0E7C6FA86 for ; Sun, 11 Sep 2022 19:28:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 19A6580015; Sun, 11 Sep 2022 15:28:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1227880008; Sun, 11 Sep 2022 15:28:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EDE0C80015; Sun, 11 Sep 2022 15:28:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id D912C80008 for ; Sun, 11 Sep 2022 15:28:17 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 83DFB160511 for ; Sun, 11 Sep 2022 19:28:17 +0000 (UTC) X-FDA: 79900790634.08.AE65061 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf25.hostedemail.com (Postfix) with ESMTP id 740D6A00B8 for ; Sun, 11 Sep 2022 19:28:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662924496; x=1694460496; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=s4EuC07vAwIDjbOA589p6Ip1/+sYbFGuGKpwv4CLn/I=; b=cDwBo7JpmSfNv+HqFrQpTxZaOo/C1svz1ud/9G4CcmmPF9Zd236NSnEQ Lvt1uRLh03F1dRpE5UADL47ceYBm57VjEvEVtjdfEqKpYDpKTwUztN8nc Ob0xTrJsIZ4fMOSBhgmXZ3Y7kcFcsZT28JdbVBQgnAusZBDnfz4XlCEqu 9Nf5oTdwLM1QzzQuKtWPGJQ/i5POocF6EBWzbhMkz8Pzfz9cPUqmHkLWT eN28loF8yvRDYx3lzrdJ9Q9L/70+DwM8sT0IailhtIkkzbRFS5Tej3Eog VRVXd2MQDNMFoMdAQWC1/jH8pe3NDYX6TJDvbWM4L+r+h9VI9gvp4e1a/ A==; X-IronPort-AV: E=McAfee;i="6500,9779,10467"; a="277482088" X-IronPort-AV: E=Sophos;i="5.93,307,1654585200"; d="scan'208";a="277482088" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2022 12:28:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,307,1654585200"; d="scan'208";a="860940810" Received: from lkp-server02.sh.intel.com (HELO 4011df4f4fd3) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 11 Sep 2022 12:28:10 -0700 Received: from kbuild by 4011df4f4fd3 with local (Exim 4.96) (envelope-from ) id 1oXSce-0001ix-1o; Sun, 11 Sep 2022 19:28:04 +0000 Date: Mon, 12 Sep 2022 03:27:57 +0800 From: kernel test robot To: Pavel Tikhomirov , Eric Biederman , Alexander Viro , Christian Brauner , Andrei Vagin , linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, Pavel Tikhomirov , Kees Cook , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Andrew Morton , Linux Memory Management List , linux-ia64@vger.kernel.org, linux-fsdevel@vger.kernel.org, kernel@openvz.org Subject: Re: [PATCH v3 1/2] Add CABA tree to task_struct Message-ID: <202209120356.YizhqUik-lkp@intel.com> References: <20220908140313.313020-2-ptikhomirov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220908140313.313020-2-ptikhomirov@virtuozzo.com> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662924497; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=QzoDX9o9n+6x0d2igKUUchM6giTu4WEsihmwoao6FzQ=; b=EJvdGmolaVxveKq332h4geORBxOnC4iLsJMsxjbkjT3vler38FYfl1JHrK7yeutwHoaNw6 tvMZ7ipFo+9t1gdtuAaui9kaFYDEMJAVcuqdczzC/q/xkKTuEabDfqjrn7qZzxQ2Z6p0eq 5pSSxI5/RPREhE5Kgp2M2ZcbltjfG5c= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=cDwBo7Jp; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662924497; a=rsa-sha256; cv=none; b=WkbJzTOOmyXUkSTpg1KtK9J3s2PDlocVveX5Z4SoXqFA25Ni0f8ij+KT/PoS6xoZ0Hismh 75VsF1sjxQ0C43lBplDhl54E9S6t4fJIWGb4UawPwawMLqGcY0/PIF6HpZ3C1B77vv2YjC 6/LcMcJSVdMa72uqpix74NUL6PRZwkU= X-Rspam-User: X-Stat-Signature: 1a7o1aauorr63tqjsgb5gdjf8h9ekxth X-Rspamd-Queue-Id: 740D6A00B8 Authentication-Results: imf25.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=cDwBo7Jp; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam12 X-HE-Tag: 1662924496-592710 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Pavel, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on shuah-kselftest/next] [also build test WARNING on kees/for-next/execve tip/sched/core linus/master v6.0-rc4 next-20220909] [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/Pavel-Tikhomirov/Introduce-CABA-helper-process-tree/20220908-220639 base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next config: ia64-randconfig-s041-20220911 (https://download.01.org/0day-ci/archive/20220912/202209120356.YizhqUik-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/17a897a33137d4f49f99c8be8d619f6f711fccdb git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Pavel-Tikhomirov/Introduce-CABA-helper-process-tree/20220908-220639 git checkout 17a897a33137d4f49f99c8be8d619f6f711fccdb # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=ia64 SHELL=/bin/bash arch/ia64/kernel/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) arch/ia64/kernel/mca.c:504:1: sparse: sparse: symbol 'search_mca_table' was not declared. Should it be static? arch/ia64/kernel/mca.c:607:1: sparse: sparse: symbol 'ia64_mca_register_cpev' was not declared. Should it be static? arch/ia64/kernel/mca.c:831:5: sparse: sparse: symbol 'ia64_mca_ucmc_extension' was not declared. Should it be static? arch/ia64/kernel/mca.c:1793:36: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct [noderef] __rcu *real_parent @@ got struct task_struct *group_leader @@ arch/ia64/kernel/mca.c:1793:36: sparse: expected struct task_struct [noderef] __rcu *real_parent arch/ia64/kernel/mca.c:1793:36: sparse: got struct task_struct *group_leader >> arch/ia64/kernel/mca.c:1796:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct [noderef] __rcu *caba @@ got struct task_struct *p @@ arch/ia64/kernel/mca.c:1796:17: sparse: expected struct task_struct [noderef] __rcu *caba arch/ia64/kernel/mca.c:1796:17: sparse: got struct task_struct *p arch/ia64/kernel/mca.c:2106:43: sparse: sparse: Using plain integer as NULL pointer vim +1796 arch/ia64/kernel/mca.c 1770 1771 /* Minimal format of the MCA/INIT stacks. The pseudo processes that run on 1772 * these stacks can never sleep, they cannot return from the kernel to user 1773 * space, they do not appear in a normal ps listing. So there is no need to 1774 * format most of the fields. 1775 */ 1776 1777 static void 1778 format_mca_init_stack(void *mca_data, unsigned long offset, 1779 const char *type, int cpu) 1780 { 1781 struct task_struct *p = (struct task_struct *)((char *)mca_data + offset); 1782 struct thread_info *ti; 1783 memset(p, 0, KERNEL_STACK_SIZE); 1784 ti = task_thread_info(p); 1785 ti->flags = _TIF_MCA_INIT; 1786 ti->preempt_count = 1; 1787 ti->task = p; 1788 ti->cpu = cpu; 1789 p->stack = ti; 1790 p->__state = TASK_UNINTERRUPTIBLE; 1791 cpumask_set_cpu(cpu, &p->cpus_mask); 1792 INIT_LIST_HEAD(&p->tasks); 1793 p->parent = p->real_parent = p->group_leader = p; 1794 INIT_LIST_HEAD(&p->children); 1795 INIT_LIST_HEAD(&p->sibling); > 1796 p->caba = p; 1797 INIT_LIST_HEAD(&p->cabds); 1798 INIT_LIST_HEAD(&p->cabd); 1799 strncpy(p->comm, type, sizeof(p->comm)-1); 1800 } 1801 -- 0-DAY CI Kernel Test Service https://01.org/lkp