Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4460549rwn; Sun, 11 Sep 2022 12:37:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR4f+K5UbaeP/N51eYZqI1RkA6QYVpBI0bhbvM3MHWG1w2jnwl3cXoTkXYPBDwGBGxPs9EDT X-Received: by 2002:a17:903:186:b0:178:2ca7:fae5 with SMTP id z6-20020a170903018600b001782ca7fae5mr2814872plg.173.1662925076085; Sun, 11 Sep 2022 12:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662925076; cv=none; d=google.com; s=arc-20160816; b=sl4gG7Eaak1O8isW2QBnV1mWIpTUzaT90bG0ouhmgzq6je+lEL5IlyCe356YFyKJpA 0U2FWS3SXZsEasuzts0KG1027L5xShZ6xJeCH9CUUJr2lDyPN9AQt3WiCtlRepLJwfpc 7+HoSTIQKLtyuKx0nX7S1igzIhK7Q5u9eW9huNpP7HsEOLmZV4gDbsYlJl2axExl+BIW ysQ9O8bcwZjkn0jiO9JABcsR5BDG4KTwuvGe/AZoUCxUKWUMQTbMkyJCzvtfxxVf7/4n DhuqSBmTG4MGlLi5iQ6YDkxGhI+MP4m0Fmru5Ubi0uaD9zEeEJki2oRlTQwtLVHTjr4R 6JEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QzoDX9o9n+6x0d2igKUUchM6giTu4WEsihmwoao6FzQ=; b=aP6GdG9zS/7nO2TSSeFaci9kehyAODkOYUBSVaznkm5e53kE9wymqvNzhMvEEdBpEK 5sr36v1S1VoHklGJvi/VyfhiNfIBZGWm0dgr29Lf0+gJwYQQa++pebk9PUAtOLI2QTQQ mIc8ETd9eUVLcRKzCp/aGhd53vjglsf/wX/7cTKFmwQEt//J+0qRHNOfcy3tBOR7i+Ac 22k8N2sVG48UnIBPPcGkPuWI8aJhLgQO13RJ2/pEEXjaeFSY8Dr7o3LU+/t3CnPb5/dS T2uwZdTF4/Afyzw9Z783DZlUEluUf6DV3NCI85ZnTv8rWqZfucb+gwUgka9ZxocEZ5Ha 3QEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=APe6SVxU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rj3-20020a17090b3e8300b00202b66eaf44si4287449pjb.0.2022.09.11.12.37.44; Sun, 11 Sep 2022 12:37:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=APe6SVxU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229539AbiIKT2S (ORCPT + 99 others); Sun, 11 Sep 2022 15:28:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiIKT2Q (ORCPT ); Sun, 11 Sep 2022 15:28:16 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CA002409B; Sun, 11 Sep 2022 12:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662924495; x=1694460495; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=s4EuC07vAwIDjbOA589p6Ip1/+sYbFGuGKpwv4CLn/I=; b=APe6SVxUjmDJSeZm2gCzn13ETF2ODZ7UqnEczuZe+omSblpG9V2vLk6h HOj2TunIf900HL/GyOzw9p4wGgUO3lHux9u78thntqq6MZlqyJfMxVN8q kGokH3QdTUC3tCKr93zMoPdwzxuncoEykY3THUWONNrpgKyGNya//isph FJKp38Or6ac7JbVo+a5t39eJElfjY+XXF/f5ZH6CiKGGwRuIYfuDFq857 xgnulWFiTPKSTaAVCcBV+wRZUGCT3Sf09PK/3Kv4LwfWAYt2WpByi0GEa dtPpljy3/rx0D3k8N2RUqLKd5KKUZwae06/1Bly/YCaxF1eUH0FlhOaXh g==; X-IronPort-AV: E=McAfee;i="6500,9779,10467"; a="384042899" X-IronPort-AV: E=Sophos;i="5.93,307,1654585200"; d="scan'208";a="384042899" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.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> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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