Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1067312pxp; Sat, 12 Mar 2022 00:35:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4srwKTAt9+iK4yfP6qYCA0CN5NABsU3DZiFc8jYJFVGHTWtv8n++epPTaVmp6jGjSM+cI X-Received: by 2002:a17:907:6d1d:b0:6cf:3fa:4d80 with SMTP id sa29-20020a1709076d1d00b006cf03fa4d80mr11187945ejc.544.1647074148238; Sat, 12 Mar 2022 00:35:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647074148; cv=none; d=google.com; s=arc-20160816; b=EmasKKFIyGe+cJqMJh4HeSj3ypBpOqkwEAY3qVPHihzztm8IsjmGLKZRSGuSe2QzmS jQseayQg0OmPujib7zI/6bdEd1YrVgeZszWOQAQ62EBx5SkDd87gwgtZDI/fHXAyc+cb PhyYjr/b1JZMo8fYOZfOLhujVI0Rx7oxuXzLSvvltIg6/LZXhYqSjkZ6H/ifPcNeMJE/ O/9rxUNyPTSKn/2MueY+pSjQvWatntyPVxqU+/1C45CYKaMZrf3dTm1r1KzT2oGom279 9RIbALkFbCrqqzuvrD1LtvKwPvl+9m2fNi4nolq+hX8GGE1ZDEDWPextOR+58JXKjTdJ ja8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=hgrre7/ZbOT/1bivfg68zZUXbjCv3gpmALz74IsVJp4=; b=ebnG7Iml4gHPf4/bkHZP/71nv+V7R+oP7jL2ssPgbW+zbdL4iXzOXIziXLGShid2ZP +YB72dmq4W0v2GqiGE7qHsFYFuxBl8l+qi66kN58sph/+4AizYb9S+k1ARDoS8+LKdQo BVe5GaN6O8rrQy+xsS/PJXUfhB7jT6uz/sZoEcc4ZO+YYKlyMIyfWrWQkdLUyNcTlN2Z LpVTx12+4lU7MyytgAqmt41KUh+zPVwiMrOpfhgglvZH9uOgaFO69s1WqgtYgVWO3MVN BNX36teQ6AYRIF6PGKiVq+K/Vlh12ZtYRNpA5KFrT93e7qStZOfetdg4rgQ0WCR1u+QD n3Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=R3t0O7y8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ck5-20020a0564021c0500b0041614eca4e0si5944979edb.16.2022.03.12.00.34.59; Sat, 12 Mar 2022 00:35:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=R3t0O7y8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230394AbiCLEwv (ORCPT + 99 others); Fri, 11 Mar 2022 23:52:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbiCLEwu (ORCPT ); Fri, 11 Mar 2022 23:52:50 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EAA9E9D; Fri, 11 Mar 2022 20:51:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647060703; x=1678596703; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZfF/lzNX9XMkZ21coHM0wPTpmygS6/b4qFfbU1ZtBVs=; b=R3t0O7y8fpYnAMSvpPCrpn577lD9ibGrZWs0NJdSnvRqaihqDE5o0uO5 LXxC9TmVMUP/OhNgVWmkWRfLxi0EyONTlXnMtQ4LUTheNzRtRObIHfBcb SiRId0t6qxovmxA8daTDHL/j9ZVcg24vG4RFDN6TEKWYah4MPKdbvyaqi mLxgAR7DUQ4R7MBC/8vq+cD/XjRK5j1K46mn0K1NTt3U7ksGop4yRM73v 9EvJ2ZYsFJ/VX/lZoiUhndBRpQ88ztfufOgO2JutljVg81Mz9XEaUMSU2 gjuSeeTq+qM3Vt+j58ggOugioSKT2TJnOzUalqIIF1gGyVp0yHTHUXxxy Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10283"; a="280502984" X-IronPort-AV: E=Sophos;i="5.90,175,1643702400"; d="scan'208";a="280502984" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2022 20:51:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,175,1643702400"; d="scan'208";a="497025121" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 11 Mar 2022 20:51:19 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nStio-0007WW-PR; Sat, 12 Mar 2022 04:51:18 +0000 Date: Sat, 12 Mar 2022 12:50:47 +0800 From: kernel test robot To: Casey Schaufler , casey.schaufler@intel.com, jmorris@namei.org, linux-security-module@vger.kernel.org, selinux@vger.kernel.org Cc: kbuild-all@lists.01.org, casey@schaufler-ca.com, linux-audit@redhat.com, keescook@chromium.org, john.johansen@canonical.com, penguin-kernel@i-love.sakura.ne.jp, paul@paul-moore.com, stephen.smalley.work@gmail.com, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org Subject: Re: [PATCH v33 13/29] LSM: Use lsmblob in security_cred_getsecid Message-ID: <202203121225.Ab2lmSD3-lkp@intel.com> References: <20220310234632.16194-14-casey@schaufler-ca.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220310234632.16194-14-casey@schaufler-ca.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Casey, I love your patch! Perhaps something to improve: [auto build test WARNING on pcmoore-audit/next] [also build test WARNING on linus/master v5.17-rc7] [cannot apply to pcmoore-selinux/next jmorris-security/next-testing next-20220310] [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/Casey-Schaufler/integrity-disassociate-ima_filter_rule-from-security_audit_rule/20220311-084644 base: https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit.git next config: microblaze-randconfig-s031-20220310 (https://download.01.org/0day-ci/archive/20220312/202203121225.Ab2lmSD3-lkp@intel.com/config) compiler: microblaze-linux-gcc (GCC) 11.2.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-dirty # https://github.com/0day-ci/linux/commit/77c3979bacdff1630a3c6211db065f2c79412621 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Casey-Schaufler/integrity-disassociate-ima_filter_rule-from-security_audit_rule/20220311-084644 git checkout 77c3979bacdff1630a3c6211db065f2c79412621 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=microblaze 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 >>) >> kernel/audit.c:128:25: sparse: sparse: symbol 'audit_sig_lsm' was not declared. Should it be static? kernel/audit.c:2197:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ kernel/audit.c:2197:9: sparse: expected struct spinlock [usertype] *lock kernel/audit.c:2197:9: sparse: got struct spinlock [noderef] __rcu * kernel/audit.c:2200:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ kernel/audit.c:2200:40: sparse: expected struct spinlock [usertype] *lock kernel/audit.c:2200:40: sparse: got struct spinlock [noderef] __rcu * vim +/audit_sig_lsm +128 kernel/audit.c 124 125 /* The identity of the user shutting down the audit system. */ 126 static kuid_t audit_sig_uid = INVALID_UID; 127 static pid_t audit_sig_pid = -1; > 128 struct lsmblob audit_sig_lsm; 129 --- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org