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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA8C3C001B0 for ; Wed, 19 Jul 2023 05:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Kt8EqUZhgfVk7TQdCL9mCwqS5sB84loxTE8jPoF59Wc=; b=V/q0NSE3G6FXeR SgW23nS1jcdQsC+rkIDvt41al0uTPd0ycDDPtIPcgafedxiwu2+HM/QYWUjOmJQG81Ww+sjvG36HV KRnwjU7MlndsUBBTszroarsXf5jX2244FVmK+JtcP/YgzZipgVyz4wtg5czAgm+8Ks69Ipgtu40KG NP6JV/hq4pKk+RArAYb8qSe4LStxVVHg56Ui5NYdM+VHCUTdfnq6fKhDGVDny9XALMSPOmefG/6Mq 6TThuN16ExEMwtnyGBe+0ZmJUPWZp5Br+oal4R8dKJz6uj9nqGJ305uhp5cW1+UjrsXA+SP/rL0GZ 80FJdlo3fH0GFfVYkMeA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qLzxS-005O9t-13; Wed, 19 Jul 2023 05:42:42 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLzxQ-005O9Q-1I for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Jul 2023 05:42:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=9UkvhFLH1mZm5g44optqAPaHq5MgN0UK/21iVLPLBnI=; b=CN/CiSbx9JpFomxKH50xuEIBp5 hJlYq9nVC/fcogVip4DShSAXLeGnD4qMwH33BlG0H9yYhM3K3EqxH6WjcTtUPCfJDSX2y8jPLybHa WF3hL4fsVVN6fVoeg9mCfFNn3BYKGEb1hKQCeIWBeyVcpfzqjS+rqPu9IUouENIOw3328Val9vpkv mujwQP5xzlx5tcF17DNVbkhOD//ISqjqZ+BCzrC7JPG+J0Fj9/pDRZsw9TZyo+jeM8gYiTqv0pi3q lKqk6b/QF1se5v586EzLEeSvy4OEhCBCJdf0mLWgwYo+3nvk2A5X0lG/aIUXXkEN1befFYGdqhSD8 Luwcijkg==; Received: from mga05.intel.com ([192.55.52.43]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLYu5-009URl-1t for linux-arm-kernel@lists.infradead.org; Tue, 18 Jul 2023 00:49:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689641365; x=1721177365; h=date:from:to:cc:subject:message-id:mime-version; bh=QwAyL1M3WRBKOMa3Zf24uotXPPr/Q1uHTZN+/i2wvh0=; b=hAEDSqBjlNWTQ4WXTEpAvEBRrkeWCBoSfRwyL8dPaFZb+SThA4MiStHi sBv1YawTziOnIUxMYXrvucMWF0kmjuSwWZy0xVcyZ5tJeyIQanNOA1t9B l4JHO60uUWG4R+ZzA0gxTFuyFLPDRRy71pQS+JoZYyFrNvGEcB7M7p4sE XTSwilScjQzENPtkn39HWgvOeTK1xaeAbfxuTP8rZrWKYfJwDRy3NoGhX Zqd2jnWhYO+zfU7jSfmdCQLo1hjvgZpw3IyQ6gLkJcrEkSTUNHTQZrYpj w/aM4JnFNRI+M/A2rbO7rRg3oHm7cplkgSUC6AGX5hizCVeRcrHYnJeqj A==; X-IronPort-AV: E=McAfee;i="6600,9927,10774"; a="452452811" X-IronPort-AV: E=Sophos;i="6.01,211,1684825200"; d="scan'208";a="452452811" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2023 17:48:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10774"; a="673717201" X-IronPort-AV: E=Sophos;i="6.01,211,1684825200"; d="scan'208";a="673717201" Received: from lkp-server01.sh.intel.com (HELO c544d7fc5005) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 17 Jul 2023 17:48:14 -0700 Received: from kbuild by c544d7fc5005 with local (Exim 4.96) (envelope-from ) id 1qLYsv-000A2S-24; Tue, 18 Jul 2023 00:48:13 +0000 Date: Tue, 18 Jul 2023 08:47:42 +0800 From: kernel test robot To: "Russell King (Oracle)" Cc: oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [arm:ktext-current 1/19] kernel/scs.c:46:47: sparse: sparse: incompatible types in comparison expression (different type sizes): Message-ID: <202307180826.AwqM3ku6-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230718_014926_476415_938B19C3 X-CRM114-Status: GOOD ( 11.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org tree: git://git.armlinux.org.uk/~rmk/linux-arm.git ktext-current head: 49e3458967802a6981190b5a1fa9fd66dbf58f8c commit: 631e7c45f5d4cf043cd236a921c341e3dd9f1909 [1/19] arm64: place kernel in its own L0 page table entry config: arm64-randconfig-r083-20230717 (https://download.01.org/0day-ci/archive/20230718/202307180826.AwqM3ku6-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230718/202307180826.AwqM3ku6-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202307180826.AwqM3ku6-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> kernel/scs.c:46:47: sparse: sparse: incompatible types in comparison expression (different type sizes): >> kernel/scs.c:46:47: sparse: unsigned int * >> kernel/scs.c:46:47: sparse: unsigned long * -- >> lib/test_debug_virtual.c:27:22: sparse: sparse: incompatible types in comparison expression (different type sizes): >> lib/test_debug_virtual.c:27:22: sparse: unsigned int * >> lib/test_debug_virtual.c:27:22: sparse: unsigned long * >> lib/test_debug_virtual.c:27:15: sparse: sparse: cast from unknown type -- >> arch/arm64/kernel/module.c:79:9: sparse: sparse: incompatible types in comparison expression (different type sizes): >> arch/arm64/kernel/module.c:79:9: sparse: unsigned int * >> arch/arm64/kernel/module.c:79:9: sparse: unsigned long * >> arch/arm64/kernel/module.c:79:9: sparse: sparse: incompatible types in comparison expression (different type sizes): >> arch/arm64/kernel/module.c:79:9: sparse: unsigned int * >> arch/arm64/kernel/module.c:79:9: sparse: unsigned long * -- >> arch/arm64/net/bpf_jit_comp.c:1622:30: sparse: sparse: incompatible types in comparison expression (different type sizes): >> arch/arm64/net/bpf_jit_comp.c:1622:30: sparse: unsigned int * >> arch/arm64/net/bpf_jit_comp.c:1622:30: sparse: unsigned long * -- arch/arm64/kernel/probes/kprobes.c:102:21: sparse: sparse: cast to restricted __le32 arch/arm64/kernel/probes/kprobes.c:102:21: sparse: sparse: cast to restricted __le32 arch/arm64/kernel/probes/kprobes.c:102:21: sparse: sparse: cast to restricted __le32 arch/arm64/kernel/probes/kprobes.c:102:21: sparse: sparse: cast to restricted __le32 arch/arm64/kernel/probes/kprobes.c:102:21: sparse: sparse: cast to restricted __le32 arch/arm64/kernel/probes/kprobes.c:102:21: sparse: sparse: cast to restricted __le32 >> arch/arm64/kernel/probes/kprobes.c:134:51: sparse: sparse: incompatible types in comparison expression (different type sizes): >> arch/arm64/kernel/probes/kprobes.c:134:51: sparse: unsigned int * >> arch/arm64/kernel/probes/kprobes.c:134:51: sparse: unsigned long * -- >> kernel/module/main.c:1607:46: sparse: sparse: incompatible types in comparison expression (different type sizes): >> kernel/module/main.c:1607:46: sparse: unsigned int * >> kernel/module/main.c:1607:46: sparse: unsigned long * -- kernel/bpf/core.c:232:49: sparse: sparse: arithmetics on pointers to functions >> kernel/bpf/core.c:965:16: sparse: sparse: incompatible types in comparison expression (different type sizes): >> kernel/bpf/core.c:965:16: sparse: unsigned int * >> kernel/bpf/core.c:965:16: sparse: unsigned long * kernel/bpf/core.c:965:30: sparse: sparse: incompatible types in comparison expression (different type sizes): kernel/bpf/core.c:965:30: sparse: unsigned int * kernel/bpf/core.c:965:30: sparse: unsigned long * 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:320:1: sparse: sparse: Using plain integer as NULL pointer include/trace/events/xdp.h:347:1: sparse: sparse: Using plain integer as NULL pointer include/trace/events/xdp.h:381:1: sparse: sparse: Using plain integer as NULL pointer kernel/bpf/core.c: note: in included file (through include/linux/rbtree_latch.h, include/linux/bpf.h, include/linux/filter.h): include/linux/rbtree.h:74:9: sparse: sparse: incompatible types in comparison expression (different address spaces): include/linux/rbtree.h:74:9: sparse: struct rb_node [noderef] __rcu * include/linux/rbtree.h:74:9: sparse: struct rb_node * include/linux/rbtree.h:74:9: sparse: sparse: incompatible types in comparison expression (different address spaces): include/linux/rbtree.h:74:9: sparse: struct rb_node [noderef] __rcu * include/linux/rbtree.h:74:9: sparse: struct rb_node * vim +46 kernel/scs.c a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 30 a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 31 static void *__scs_alloc(int node) a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 32 { a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 33 int i; a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 34 void *s; a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 35 a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 36 for (i = 0; i < NR_CACHED_SCS; i++) { a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 37 s = this_cpu_xchg(scs_cache[i], NULL); a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 38 if (s) { f6e39794f4b6da Andrey Konovalov 2022-03-24 39 s = kasan_unpoison_vmalloc(s, SCS_SIZE, f6e39794f4b6da Andrey Konovalov 2022-03-24 40 KASAN_VMALLOC_PROT_NORMAL); a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 41 memset(s, 0, SCS_SIZE); f6e39794f4b6da Andrey Konovalov 2022-03-24 42 goto out; a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 43 } a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 44 } a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 45 f6e39794f4b6da Andrey Konovalov 2022-03-24 @46 s = __vmalloc_node_range(SCS_SIZE, 1, VMALLOC_START, VMALLOC_END, a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 47 GFP_SCS, PAGE_KERNEL, 0, node, a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 48 __builtin_return_address(0)); f6e39794f4b6da Andrey Konovalov 2022-03-24 49 f6e39794f4b6da Andrey Konovalov 2022-03-24 50 out: f6e39794f4b6da Andrey Konovalov 2022-03-24 51 return kasan_reset_tag(s); a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 52 } a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 53 :::::: The code at line 46 was first introduced by commit :::::: f6e39794f4b6da7ca9b77f2f9ad11fd6f0ac83e5 kasan, vmalloc: only tag normal vmalloc allocations :::::: TO: Andrey Konovalov :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel