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 8DF62C54EE9 for ; Thu, 8 Sep 2022 14:04:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 248356B0075; Thu, 8 Sep 2022 10:04:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1F7E46B0078; Thu, 8 Sep 2022 10:04:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0C0326B007B; Thu, 8 Sep 2022 10:04:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id F1F6C6B0075 for ; Thu, 8 Sep 2022 10:04:38 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id CEF17140431 for ; Thu, 8 Sep 2022 14:04:38 +0000 (UTC) X-FDA: 79889088636.18.8A63C48 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf09.hostedemail.com (Postfix) with ESMTP id 21F98140091 for ; Thu, 8 Sep 2022 14:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662645876; x=1694181876; h=date:from:to:cc:subject:message-id:mime-version; bh=6MgeTEq+YE6cHIr8kAK1cC6g4kdmNprt0W1DvVJI4mE=; b=hZ9Rop6XILfPom95JE7B+Wszawj+JpeHpR3bwgVHSio9NOtIB5IxPWC0 FUpnHimEkCr/iH0QWC0ytBhSCA/5rGpAjZ/qAxAza1nZra+hj0mrj1tQs QiEILOLf4E0tr4+LeN7ZD33f7ANmmydK9jMnpcpXmMaURQpIEE9Geb2Xh ST8pXE+MK9jwBrD7MTqpmBShRnRcMQg9RqWwJvKtrij+BNaE02Rcl/xH5 53FQ8fA+71lzfFRctADbfvaGeGlqHA0JW1PxutshWzH/QpH2h/J89Vgmn xAKZ1tS62S1/jN7CatbC686LTiSxmXvtir64NIZfkJ41OEpnlDsVlMcbk A==; X-IronPort-AV: E=McAfee;i="6500,9779,10464"; a="297177411" X-IronPort-AV: E=Sophos;i="5.93,300,1654585200"; d="scan'208";a="297177411" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2022 07:04:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,300,1654585200"; d="scan'208";a="592177235" Received: from lkp-server02.sh.intel.com (HELO 95dfd251caa2) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 08 Sep 2022 07:04:12 -0700 Received: from kbuild by 95dfd251caa2 with local (Exim 4.96) (envelope-from ) id 1oWI8a-0007pv-0a; Thu, 08 Sep 2022 14:04:12 +0000 Date: Thu, 8 Sep 2022 22:03:21 +0800 From: kernel test robot To: Andrey Konovalov Cc: kbuild-all@lists.01.org, Linux Memory Management List , Andrew Morton , Marco Elver Subject: [linux-next:master 5995/6188] mm/kasan/kasan_test_module.c:90:26: sparse: sparse: incompatible types in comparison expression (different address spaces): Message-ID: <202209082120.MTrpG6Be-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662645877; 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: references:dkim-signature; bh=6D27vS5TwqDy4468GctGBIU9cnJdE7+fEN9I3MNC0dQ=; b=TYWTALSE8Nn+lOXzmYRIgIkL5l28y0Yn4gshKsIAWUw8vLElR8e1IWDA1OuabvQnc44/hd Tx4bOjan7KzcRWR3cr8fy8z+daqSwGXaM3MKXqZFa90AUJ6fIOUwxgK+XueiLhw1rMtxZv 0vJjHZiE984bRUAzeb4YfxGPdv2mo/U= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=hZ9Rop6X; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662645877; a=rsa-sha256; cv=none; b=xyS0hKkuo7v/9p0ouEb2n4coPdgmlLxH+Tu/gguj4X1aAvL1HmOWGap/gkHErLlBtEd0Di ytAGk8adhE2LZWxLU83Mqgz4MEUpLgyfgXzOyfIiFlAav3X2CwBBKg1GP1i46CoxmuG1NQ ggLq+V9Jr2tol0S7X3T92W90R/GPpWw= X-Stat-Signature: 3mbginxfmod1q4cmp8gwboqmy1orns5w X-Rspamd-Queue-Id: 21F98140091 Authentication-Results: imf09.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=hZ9Rop6X; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Rspamd-Server: rspam02 X-HE-Tag: 1662645875-238810 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 Andrey, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 47c191411b68a771261be3dc0bd6f68394cef358 commit: 5de20e0f195f50622c10ea2fd0fc6c43b49988cc [5995/6188] kasan: move tests to mm/kasan/ config: s390-randconfig-s041-20220907 (https://download.01.org/0day-ci/archive/20220908/202209082120.MTrpG6Be-lkp@intel.com/config) compiler: s390-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=5de20e0f195f50622c10ea2fd0fc6c43b49988cc git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 5de20e0f195f50622c10ea2fd0fc6c43b49988cc # 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=s390 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> mm/kasan/kasan_test_module.c:90:26: sparse: sparse: incompatible types in comparison expression (different address spaces): >> mm/kasan/kasan_test_module.c:90:26: sparse: struct kasan_rcu_info [noderef] __rcu * >> mm/kasan/kasan_test_module.c:90:26: sparse: struct kasan_rcu_info * vim +90 mm/kasan/kasan_test_module.c 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 78 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 79 static noinline void __init kasan_rcu_uaf(void) 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 80 { 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 81 struct kasan_rcu_info *ptr; 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 82 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 83 pr_info("use-after-free in kasan_rcu_reclaim\n"); 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 84 ptr = kmalloc(sizeof(struct kasan_rcu_info), GFP_KERNEL); 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 85 if (!ptr) { 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 86 pr_err("Allocation failed\n"); 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 87 return; 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 88 } 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 89 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 @90 global_rcu_ptr = rcu_dereference_protected(ptr, NULL); 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 91 call_rcu(&global_rcu_ptr->rcu, kasan_rcu_reclaim); 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 92 } 73228c7ecc5e40 lib/test_kasan_module.c Patricia Alfonso 2020-10-13 93 :::::: The code at line 90 was first introduced by commit :::::: 73228c7ecc5e40c0851c4703c5ec6ed38123e989 KASAN: port KASAN Tests to KUnit :::::: TO: Patricia Alfonso :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://01.org/lkp