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 98204CCA482 for ; Fri, 1 Jul 2022 17:38:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E0D2E6B0071; Fri, 1 Jul 2022 13:38:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D954D6B0073; Fri, 1 Jul 2022 13:38:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C11056B0074; Fri, 1 Jul 2022 13:38:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id ABB9C6B0071 for ; Fri, 1 Jul 2022 13:38:07 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 7913834434 for ; Fri, 1 Jul 2022 17:38:07 +0000 (UTC) X-FDA: 79639239414.15.EA37F39 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by imf22.hostedemail.com (Postfix) with ESMTP id F29E7C0043 for ; Fri, 1 Jul 2022 17:38:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656697086; x=1688233086; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2x1fmGCp5mV5jHwkeCy/MtDdRc5LTMqXTURYhBc4fSg=; b=iZDyAtXtIj08U0eeIx2Zxiq0vpsrDuSzyViBdrL9AiBiJw3q368oWX1t wPcrUbzOsEzL0k05mhGjp3dAqWPHIBodgifg4wKzELWcFE2PRHzKWBFPi C/VKb0CdK3yY0tb/jt/ocg9XEwzNzB2LVlxE7DwQeBhxlsabB6GNUo3uP oTXvTS6K6oycmkIZZ9p4MCUeAw2EPcgbCqB+V2CkG2J9cBBXRFkY1qXeK N3BtdWq+AiOb5l/rltUWkLYUI5rBiKRXqoJW9LZDImjNGE5HhkeydXL23 miWDsJAzWSOKFQ0ezUHKyHlD8potAP0fa8IAkQwOfTVQbfTfB82Q4o5PN Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10395"; a="344389300" X-IronPort-AV: E=Sophos;i="5.92,237,1650956400"; d="scan'208";a="344389300" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2022 10:38:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,237,1650956400"; d="scan'208";a="681475180" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 01 Jul 2022 10:37:57 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o7Kaa-000ECk-Vv; Fri, 01 Jul 2022 17:37:56 +0000 Date: Sat, 2 Jul 2022 01:37:08 +0800 From: kernel test robot To: David Gow , Brendan Higgins , Andy Shevchenko , Jonathan Corbet , Andrew Morton , Kees Cook , Shuah Khan , Greg KH , Luis Chamberlain , Masahiro Yamada Cc: kbuild-all@lists.01.org, Linux Memory Management List , David Gow , "Guilherme G . Piccoli" , Sebastian Reichel , John Ogness , Joe Fradley , Daniel Latypov , kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jani Nikula , Lucas De Marchi , Aaron Tomlin , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, Michal Marek , Nick Desaulniers , linux-kbuild@vger.kernel.org Subject: Re: [PATCH v4 4/4] selftest: Taint kernel when test module loaded Message-ID: <202207020132.SKDpQP9D-lkp@intel.com> References: <20220701084744.3002019-4-davidgow@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220701084744.3002019-4-davidgow@google.com> ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=iZDyAtXt; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf22.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656697087; a=rsa-sha256; cv=none; b=g1uPzq6TmUCxJqEf3/bEMZVGAqCmm67Fp/123LZqB6vxVyhw0cACh9eT8ng/45ymBR8493 OVjMiHSpHJvqdCgJ6UvCtqRMdSWVbHbMZKEJPcrI5E6Uqy9N4wXNnbmgsIHBJD4p8D43Qz Pl3D8IYbgTCcrJ2aLPDhlLNzYFs9vb8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656697087; 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=E84S1SmPXJZsGRUIpUE44bSmJpo65EHzOmfw3naIdTs=; b=Ofw+snO0OEyVE3CbJVU9+xJGxss46WjbtwTMjUwJDwtSC9Ky6qJ96SnpRidC8Uj2r4q7A6 5f94w4A1LO8NvjVz6ApVBq3b+bAPgQv3QHkqz03LhXx2f7nSsXc7tJs4YM+wVyiY9avRAf Rl7s1McqbBSdnX0lP6jztgluRcMmeB0= X-Stat-Signature: 9gdmkdfoc17w7o9ttbajniiqwbfx5ir8 X-Rspamd-Queue-Id: F29E7C0043 Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=iZDyAtXt; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf22.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1656697085-303439 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 David, I love your patch! Yet something to improve: [auto build test ERROR on masahiroy-kbuild/for-next] [also build test ERROR on shuah-kselftest/next linus/master v5.19-rc4 next-20220701] [cannot apply to mcgrof/modules-next] [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] url: https://github.com/intel-lab-lkp/linux/commits/David-Gow/panic-Taint-kernel-if-tests-are-run/20220701-164843 base: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git for-next config: alpha-randconfig-r006-20220629 (https://download.01.org/0day-ci/archive/20220702/202207020132.SKDpQP9D-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/42b6461d6cca4baeeeed474b1400e203057c2b9b git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review David-Gow/panic-Taint-kernel-if-tests-are-run/20220701-164843 git checkout 42b6461d6cca4baeeeed474b1400e203057c2b9b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from lib/test_printf.c:27: lib/test_printf.c: In function 'test_printf_init': >> lib/../tools/testing/selftests/kselftest_module.h:45:19: error: 'TAINT_KUNIT' undeclared (first use in this function) 45 | add_taint(TAINT_KUNIT, LOCKDEP_STILL_OK); \ | ^~~~~~~~~~~ lib/test_printf.c:801:1: note: in expansion of macro 'KSTM_MODULE_LOADERS' 801 | KSTM_MODULE_LOADERS(test_printf); | ^~~~~~~~~~~~~~~~~~~ lib/../tools/testing/selftests/kselftest_module.h:45:19: note: each undeclared identifier is reported only once for each function it appears in 45 | add_taint(TAINT_KUNIT, LOCKDEP_STILL_OK); \ | ^~~~~~~~~~~ lib/test_printf.c:801:1: note: in expansion of macro 'KSTM_MODULE_LOADERS' 801 | KSTM_MODULE_LOADERS(test_printf); | ^~~~~~~~~~~~~~~~~~~ vim +/TAINT_KUNIT +45 lib/../tools/testing/selftests/kselftest_module.h 40 41 #define KSTM_MODULE_LOADERS(__module) \ 42 static int __init __module##_init(void) \ 43 { \ 44 pr_info("loaded.\n"); \ > 45 add_taint(TAINT_KUNIT, LOCKDEP_STILL_OK); \ 46 selftest(); \ 47 return kstm_report(total_tests, failed_tests, skipped_tests); \ 48 } \ 49 static void __exit __module##_exit(void) \ 50 { \ 51 pr_info("unloaded.\n"); \ 52 } \ 53 module_init(__module##_init); \ 54 module_exit(__module##_exit) 55 -- 0-DAY CI Kernel Test Service https://01.org/lkp