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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01D3FC433F5 for ; Fri, 10 Dec 2021 16:01:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232349AbhLJQEr (ORCPT ); Fri, 10 Dec 2021 11:04:47 -0500 Received: from mga14.intel.com ([192.55.52.115]:60505 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231806AbhLJQEr (ORCPT ); Fri, 10 Dec 2021 11:04:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639152072; x=1670688072; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=mxeTsrDPykC2K/vr4XpaeRfd0FmXN2UzRO3k8C5FihA=; b=j4Ui7ss5I1suQryZZpULd/yi/BLufe3bPuGJTsrJxROPOax40jeBa+Xp yeLaJV82FgIeSG+DY8I7INxDurMNagFfSuAO3ToTY9EJQj+XN41HotIA6 uDg/LYMkI2ekU6bEJeLtEWL0zwsZsdZTxQhQt03IA/7Efl55virEyu6g4 /lNxPDIshPHHyEzVHpImumQ82sbVnbG9UVWsA7WDmfObDMbMicKzAi/aT 1ROfKtFCA0MRssqJQ6UK9sM5PEtZJ/ZC1aURQQT4k91YcAfSEczqfdbmr kcnskNTKdW3cSHvnewLX0LoFdDydcVwAwDINXVPQspO7qYZ8r8hBFOhjW Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10193"; a="238593583" X-IronPort-AV: E=Sophos;i="5.88,196,1635231600"; d="scan'208";a="238593583" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2021 08:01:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,196,1635231600"; d="scan'208";a="480765113" Received: from lkp-server02.sh.intel.com (HELO 9e1e9f9b3bcb) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 10 Dec 2021 08:01:08 -0800 Received: from kbuild by 9e1e9f9b3bcb with local (Exim 4.92) (envelope-from ) id 1mviKZ-0003KK-So; Fri, 10 Dec 2021 16:01:07 +0000 Date: Sat, 11 Dec 2021 00:00:06 +0800 From: kernel test robot To: Stefan Berger , linux-integrity@vger.kernel.org Cc: kbuild-all@lists.01.org, zohar@linux.ibm.com, serge@hallyn.com, christian.brauner@ubuntu.com, containers@lists.linux.dev, dmitry.kasatkin@gmail.com, ebiederm@xmission.com, krzysztof.struczynski@huawei.com, roberto.sassu@huawei.com, mpeters@redhat.com Subject: Re: [PATCH v5 01/16] ima: Add IMA namespace support Message-ID: <202112102358.AmVci5Ag-lkp@intel.com> References: <20211208221818.1519628-2-stefanb@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211208221818.1519628-2-stefanb@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org Hi Stefan, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on zohar-integrity/next-integrity] [also build test WARNING on linux/master linus/master v5.16-rc4 next-20211208] [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/0day-ci/linux/commits/Stefan-Berger/ima-Namespace-IMA-with-audit-support-in-IMA-ns/20211209-062017 base: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-integrity config: i386-randconfig-s031-20211207 (https://download.01.org/0day-ci/archive/20211210/202112102358.AmVci5Ag-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/0day-ci/linux/commit/0e5d16c2da02e9c61692836edf0b6f7f227e1867 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Stefan-Berger/ima-Namespace-IMA-with-audit-support-in-IMA-ns/20211209-062017 git checkout 0e5d16c2da02e9c61692836edf0b6f7f227e1867 # 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 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/md/dm-ioctl.c: note: in included file: >> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA' -- fs/open.c: note: in included file: >> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA' fs/open.c:1011:21: sparse: sparse: restricted fmode_t degrades to integer -- fs/file_table.c: note: in included file: >> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA' -- fs/namei.c: note: in included file: >> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA' fs/namei.c:680:17: sparse: sparse: context imbalance in 'terminate_walk' - unexpected unlock fs/namei.c: note: in included file (through include/linux/rbtree.h, include/linux/mm_types.h, include/linux/mmzone.h, ...): include/linux/rcupdate.h:718:9: sparse: sparse: context imbalance in 'try_to_unlazy' - unexpected unlock include/linux/rcupdate.h:718:9: sparse: sparse: context imbalance in 'try_to_unlazy_next' - unexpected unlock fs/namei.c:2318:19: sparse: sparse: context imbalance in 'path_init' - different lock contexts for basic block -- fs/attr.c: note: in included file: >> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA' -- security/security.c: note: in included file: >> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA' security/security.c:358:25: sparse: sparse: cast removes address space '__rcu' of expression -- security/keys/key.c: note: in included file: >> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA' security/keys/key.c:123:17: sparse: sparse: context imbalance in 'key_user_put' - unexpected unlock vim +/CONFIG_IMA +263 include/linux/ima.h 260 261 static inline int create_ima_ns(struct user_namespace *user_ns) 262 { > 263 #if CONFIG_IMA 264 user_ns->ima_ns = get_ima_ns(&init_ima_ns); 265 #endif 266 return 0; 267 } 268 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org