From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0416514A612; Thu, 16 May 2024 20:47:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715892433; cv=none; b=npoQgqVOKkErV4diriUUJ7DnMRXiBD2dUHUa6n8ihxsyBpG2If4OfZvMCZoIxenmMNJ5BUIa5P7WTFqG42WQm8G0eY29qTs9Y7LQS+E5YeFy6rjGLdpDLkYDEbpAQlQCKjd2hgFN28s21Yvm7VVm7KenfSQ6Ns//zfNwk0GTMM0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715892433; c=relaxed/simple; bh=280i5dWRybdaAkMbFSD7O5UetUHSt+pWDkAiPdCi6JU=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=dU0+Fop+5nfZ0bBNL//tp3U9euTL8C80mt6rM5tPNjgbfGMaakoYQwQiap/1Hl5DgXYTwb+DiZCNOV8QKQoqBTl6D1XBiyYDm/197w6WWG0+okOA6XqLBtWHLcA6mhkDzgWWwnDpaaI6dFiNne9kbn6XuW2ZI1std/0UPNtEgnI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cSJjCIEv; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cSJjCIEv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715892431; x=1747428431; h=date:from:to:cc:subject:message-id:mime-version; bh=280i5dWRybdaAkMbFSD7O5UetUHSt+pWDkAiPdCi6JU=; b=cSJjCIEvozDu8cqnlp2BYylbTNReAScc/yur/+1ieD96DD5dH6dUAfaL QvmXPBAF6HxqY0vtlQDDl9H6QDGs81KlZQoHgFqYs9PiEk9cZ2ScIE0cH Y0OboppulMqC+oA02LnRaYVXyUnoiV1TUcG/uqXxsCzi7bhkIBK/Tr+Ne lo5nuhOICwYwfJgPfSd7a4Gr78FRMr+xWnhnM3I561f3e3Dx/poKLqGNt 5O9SQNbj5ovuW3fFWwfKLTu429opD+mzl7RQMLYN7t8s9g0KsSj6wA6Xg Dgfw3ANgyFoNXz0eOWJBgBx4s8f+ct8BGh+CRvOJv5khT9jxtIu7taUdq A==; X-CSE-ConnectionGUID: vjb7JzxoQzydBoh1qeXbVA== X-CSE-MsgGUID: VMDl905mSC6ZYCf0AOdijg== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="15868862" X-IronPort-AV: E=Sophos;i="6.08,165,1712646000"; d="scan'208";a="15868862" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2024 13:47:10 -0700 X-CSE-ConnectionGUID: 8KfTznPGRqCZo2Ic1t6tlA== X-CSE-MsgGUID: scsp8ofuQYGM9PJEIU2Ang== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,165,1712646000"; d="scan'208";a="32102372" Received: from lkp-server01.sh.intel.com (HELO f8b243fe6e68) ([10.239.97.150]) by orviesa008.jf.intel.com with ESMTP; 16 May 2024 13:47:08 -0700 Received: from kbuild by f8b243fe6e68 with local (Exim 4.96) (envelope-from ) id 1s7i0H-000Elt-2s; Thu, 16 May 2024 20:47:05 +0000 Date: Fri, 17 May 2024 04:47:01 +0800 From: kernel test robot To: Al Viro Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-fsdevel@vger.kernel.org Subject: [viro-vfs:untested.persistency 57/58] security/integrity/ima/ima_fs.c:430:20: error: use of undeclared identifier 'ima_policy' Message-ID: <202405170447.fAkCQdzn-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git untested.persistency head: b3c987f7369f15318ee1284d9203737f09294b7e commit: c6429afc4eb7e8fd9044f85e21c53285f1b96a8b [57/58] ima_fs: don't bother with removal of files in directory we'll be removing config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240517/202405170447.fAkCQdzn-lkp@intel.com/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240517/202405170447.fAkCQdzn-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/202405170447.fAkCQdzn-lkp@intel.com/ All errors (new ones prefixed by >>): >> security/integrity/ima/ima_fs.c:430:20: error: use of undeclared identifier 'ima_policy' 430 | securityfs_remove(ima_policy); | ^ security/integrity/ima/ima_fs.c:431:2: error: use of undeclared identifier 'ima_policy' 431 | ima_policy = NULL; | ^ 2 errors generated. vim +/ima_policy +430 security/integrity/ima/ima_fs.c f4bd857bc8ed99 Mimi Zohar 2009-02-04 397 4af4662fa4a9dc Mimi Zohar 2009-02-04 398 /* 4af4662fa4a9dc Mimi Zohar 2009-02-04 399 * ima_release_policy - start using the new measure policy rules. 4af4662fa4a9dc Mimi Zohar 2009-02-04 400 * 4af4662fa4a9dc Mimi Zohar 2009-02-04 401 * Initially, ima_measure points to the default policy rules, now f4bd857bc8ed99 Mimi Zohar 2009-02-04 402 * point to the new policy rules, and remove the securityfs policy file, f4bd857bc8ed99 Mimi Zohar 2009-02-04 403 * assuming a valid policy. 4af4662fa4a9dc Mimi Zohar 2009-02-04 404 */ 4af4662fa4a9dc Mimi Zohar 2009-02-04 405 static int ima_release_policy(struct inode *inode, struct file *file) 4af4662fa4a9dc Mimi Zohar 2009-02-04 406 { 0716abbb58e3c4 Dmitry Kasatkin 2014-10-03 407 const char *cause = valid_policy ? "completed" : "failed"; 0716abbb58e3c4 Dmitry Kasatkin 2014-10-03 408 80eae209d63ac6 Petko Manolov 2015-12-02 409 if ((file->f_flags & O_ACCMODE) == O_RDONLY) 9a11a18902bc3b Eric Richter 2016-10-13 410 return seq_release(inode, file); 80eae209d63ac6 Petko Manolov 2015-12-02 411 0112721df4edbd Sasha Levin 2015-12-22 412 if (valid_policy && ima_check_policy() < 0) { 0112721df4edbd Sasha Levin 2015-12-22 413 cause = "failed"; 0112721df4edbd Sasha Levin 2015-12-22 414 valid_policy = 0; 0112721df4edbd Sasha Levin 2015-12-22 415 } 0112721df4edbd Sasha Levin 2015-12-22 416 de636769c8c735 Petr Vorel 2018-04-24 417 pr_info("policy update %s\n", cause); 0716abbb58e3c4 Dmitry Kasatkin 2014-10-03 418 integrity_audit_msg(AUDIT_INTEGRITY_STATUS, NULL, NULL, 0716abbb58e3c4 Dmitry Kasatkin 2014-10-03 419 "policy_update", cause, !valid_policy, 0); 0716abbb58e3c4 Dmitry Kasatkin 2014-10-03 420 4af4662fa4a9dc Mimi Zohar 2009-02-04 421 if (!valid_policy) { 4af4662fa4a9dc Mimi Zohar 2009-02-04 422 ima_delete_rules(); f4bd857bc8ed99 Mimi Zohar 2009-02-04 423 valid_policy = 1; 0716abbb58e3c4 Dmitry Kasatkin 2014-10-03 424 clear_bit(IMA_FS_BUSY, &ima_fs_flags); 4af4662fa4a9dc Mimi Zohar 2009-02-04 425 return 0; 4af4662fa4a9dc Mimi Zohar 2009-02-04 426 } 80eae209d63ac6 Petko Manolov 2015-12-02 427 4af4662fa4a9dc Mimi Zohar 2009-02-04 428 ima_update_policy(); 2068626d1345f2 Mimi Zohar 2017-06-27 429 #if !defined(CONFIG_IMA_WRITE_POLICY) && !defined(CONFIG_IMA_READ_POLICY) 4af4662fa4a9dc Mimi Zohar 2009-02-04 @430 securityfs_remove(ima_policy); 4af4662fa4a9dc Mimi Zohar 2009-02-04 431 ima_policy = NULL; 2068626d1345f2 Mimi Zohar 2017-06-27 432 #elif defined(CONFIG_IMA_WRITE_POLICY) 38d859f991f3a0 Petko Manolov 2015-12-02 433 clear_bit(IMA_FS_BUSY, &ima_fs_flags); ffb122de9a60bd Petr Vorel 2018-04-20 434 #elif defined(CONFIG_IMA_READ_POLICY) ffb122de9a60bd Petr Vorel 2018-04-20 435 inode->i_mode &= ~S_IWUSR; 38d859f991f3a0 Petko Manolov 2015-12-02 436 #endif 4af4662fa4a9dc Mimi Zohar 2009-02-04 437 return 0; 4af4662fa4a9dc Mimi Zohar 2009-02-04 438 } 4af4662fa4a9dc Mimi Zohar 2009-02-04 439 :::::: The code at line 430 was first introduced by commit :::::: 4af4662fa4a9dc62289c580337ae2506339c4729 integrity: IMA policy :::::: TO: Mimi Zohar :::::: CC: James Morris -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki