From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gnuweeb.org (Postfix) with ESMTPS id 8D9A67E6B4 for ; Fri, 4 Mar 2022 04:40:43 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=PaTppuSz; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646368843; x=1677904843; h=date:from:to:cc:subject:message-id:mime-version; bh=aBR0XG0k+tv6/c82I4f74WJwaoS+TwzVjvDsorZXYQM=; b=PaTppuSzKFiqP/YlUmectlkt1es7xH9iaKvtAkYKzh9i+Mva8YRskom/ 2inzGdYxLBSa/qiy/fxfp3XbcNZPRsgJGXoiKB1TFJeCfR4iYVZECbhBG 8yrWlqtRIjaAq9vONlRr+gmMd7ZBaDtGa+Zuoug8J9J8827k5sTUvV2VR KC90uARq5ittDk6NbKQuDgnAvOVdyMkPw4NfhTlh2e33Ga4ABBXu5bJY8 583K/JhQSZiyogzevWjexgvt5xhvQcBRjfFQI/fBaafFaOZ9Ruz0ttcUA gK7VgszUIVNbeIZs2vF4ez9BhcduefSWZIDN5bHVYGGVPf0wyBylc9rJz g==; X-IronPort-AV: E=McAfee;i="6200,9189,10275"; a="317117979" X-IronPort-AV: E=Sophos;i="5.90,154,1643702400"; d="scan'208";a="317117979" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 20:40:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,154,1643702400"; d="scan'208";a="508867809" Received: from lkp-server01.sh.intel.com (HELO ccb16ba0ecc3) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 03 Mar 2022 20:40:40 -0800 Received: from kbuild by ccb16ba0ecc3 with local (Exim 4.92) (envelope-from ) id 1nPzk8-0001Gh-6A; Fri, 04 Mar 2022 04:40:40 +0000 Date: Fri, 4 Mar 2022 12:39:41 +0800 From: kernel test robot To: Alexei Starovoitov Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Connor O'Brien Subject: [ammarfaizi2-block:google/android/kernel/common/android-4.14-stable 640/9999] kernel/bpf/core.c:1500:31: sparse: sparse: incorrect type in return expression (different address spaces) Message-ID: <202203041208.lGSLS1gi-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.14-stable head: 4ab5bac1598e3ed91a6267f6cada336467312112 commit: 9e61c87b1f47b4dc3d48de83d85e9f17c320f91e [640/9999] UPSTREAM: bpf: multi program support for cgroup+bpf config: i386-randconfig-s001-20211101 (https://download.01.org/0day-ci/archive/20220304/202203041208.lGSLS1gi-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/ammarfaizi2/linux-block/commit/9e61c87b1f47b4dc3d48de83d85e9f17c320f91e git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.14-stable git checkout 9e61c87b1f47b4dc3d48de83d85e9f17c320f91e # save the config file to linux build tree mkdir build_dir make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/virtio/ kernel/bpf/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) kernel/bpf/core.c:1095:43: sparse: sparse: arithmetics on pointers to functions >> kernel/bpf/core.c:1500:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct bpf_prog_array [noderef] * @@ got void * @@ kernel/bpf/core.c:1500:31: sparse: expected struct bpf_prog_array [noderef] * kernel/bpf/core.c:1500:31: sparse: got void * >> kernel/bpf/core.c:1504:17: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct bpf_prog_array [noderef] * @@ got struct bpf_prog_array * @@ kernel/bpf/core.c:1504:17: sparse: expected struct bpf_prog_array [noderef] * kernel/bpf/core.c:1504:17: sparse: got struct bpf_prog_array * kernel/bpf/core.c:1512:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct callback_head *head @@ got struct callback_head [noderef] * @@ kernel/bpf/core.c:1512:9: sparse: expected struct callback_head *head kernel/bpf/core.c:1512:9: sparse: got struct callback_head [noderef] * kernel/bpf/core.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/bpf.h, ...): include/trace/events/bpf.h:56:1: sparse: sparse: Using plain integer as NULL pointer include/trace/events/bpf.h:92:1: sparse: sparse: Using plain integer as NULL pointer include/trace/events/bpf.h:117:1: sparse: sparse: Using plain integer as NULL pointer include/trace/events/bpf.h:188:1: sparse: sparse: Using plain integer as NULL pointer include/trace/events/bpf.h:228:1: sparse: sparse: Using plain integer as NULL pointer include/trace/events/bpf.h:282:1: sparse: sparse: Using plain integer as NULL pointer include/trace/events/bpf.h:312:1: sparse: sparse: Using plain integer as NULL pointer kernel/bpf/core.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/xdp.h, ...): include/trace/events/xdp.h:28:1: sparse: sparse: Using plain integer as NULL pointer include/trace/events/xdp.h:53:1: sparse: sparse: Using plain integer as NULL pointer include/trace/events/xdp.h:111:1: sparse: sparse: Using plain integer as NULL pointer include/trace/events/xdp.h:126:1: sparse: sparse: Using plain integer as NULL pointer vim +1500 kernel/bpf/core.c 1496 1497 struct bpf_prog_array __rcu *bpf_prog_array_alloc(u32 prog_cnt, gfp_t flags) 1498 { 1499 if (prog_cnt) > 1500 return kzalloc(sizeof(struct bpf_prog_array) + 1501 sizeof(struct bpf_prog *) * (prog_cnt + 1), 1502 flags); 1503 > 1504 return &empty_prog_array.hdr; 1505 } 1506 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org