All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Fan Wu <wufan@linux.microsoft.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH v9 05/16] ipe: add userspace interface
Date: Sun, 5 Feb 2023 16:42:53 +0800	[thread overview]
Message-ID: <202302051649.TJllIo95-lkp@intel.com> (raw)
In-Reply-To: <1675119451-23180-6-git-send-email-wufan@linux.microsoft.com>

Hi Fan,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on device-mapper-dm/for-next]
[also build test WARNING on axboe-block/for-next lwn/docs-next linus/master v6.2-rc6 next-20230203]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Fan-Wu/security-add-ipe-lsm/20230131-070059
base:   https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
patch link:    https://lore.kernel.org/r/1675119451-23180-6-git-send-email-wufan%40linux.microsoft.com
patch subject: [RFC PATCH v9 05/16] ipe: add userspace interface
config: sparc64-randconfig-s033-20230205 (https://download.01.org/0day-ci/archive/20230205/202302051649.TJllIo95-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty
        # https://github.com/intel-lab-lkp/linux/commit/b469e8114a5e6f4e91f55acb934873bb4d898eb1
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Fan-Wu/security-add-ipe-lsm/20230131-070059
        git checkout b469e8114a5e6f4e91f55acb934873bb4d898eb1
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash security/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

sparse warnings: (new ones prefixed by >>)
>> security/ipe/policy_fs.c:281:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct ipe_policy **addr @@     got struct ipe_policy [noderef] __rcu **[assigned] addr @@
   security/ipe/policy_fs.c:281:33: sparse:     expected struct ipe_policy **addr
   security/ipe/policy_fs.c:281:33: sparse:     got struct ipe_policy [noderef] __rcu **[assigned] addr

vim +281 security/ipe/policy_fs.c

   245	
   246	/**
   247	 * update_policy - Write handler for "ipe/policies/$name/update".
   248	 * @f: Supplies a file structure representing the securityfs node.
   249	 * @data: Supplies a buffer passed to the write syscall.
   250	 * @len: Supplies the length of @data.
   251	 * @offset: unused.
   252	 *
   253	 * On success this updates the policy represented by $name,
   254	 * in-place.
   255	 *
   256	 * Return:
   257	 * * >0	- Success, Length of buffer written
   258	 * * <0	- Error
   259	 */
   260	static ssize_t update_policy(struct file *f, const char __user *data,
   261				     size_t len, loff_t *offset)
   262	{
   263		int rc = 0;
   264		char *copy = NULL;
   265		struct inode *ino = NULL;
   266		struct ipe_policy *new = NULL;
   267		struct ipe_policy __rcu **addr = NULL;
   268	
   269		if (!file_ns_capable(f, &init_user_ns, CAP_MAC_ADMIN))
   270			return -EPERM;
   271	
   272		copy = memdup_user(data, len);
   273		if (IS_ERR(copy)) {
   274			rc = PTR_ERR(copy);
   275			goto err;
   276		}
   277	
   278		ino = d_inode(f->f_path.dentry->d_parent);
   279		inode_lock(ino);
   280		addr = find_policy(f);
 > 281		new = ipe_update_policy(addr, NULL, 0, copy, len);
   282		inode_unlock(ino);
   283		synchronize_rcu();
   284		if (IS_ERR(new)) {
   285			rc = PTR_ERR(new);
   286			goto err;
   287		}
   288	
   289		kfree(copy);
   290		return len;
   291	err:
   292		kfree(copy);
   293		return rc;
   294	}
   295	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

  parent reply	other threads:[~2023-02-05  8:43 UTC|newest]

Thread overview: 225+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30 22:57 [dm-devel] [RFC PATCH v9 00/16] Integrity Policy Enforcement LSM (IPE) Fan Wu
2023-01-30 22:57 ` Fan Wu
2023-01-30 22:57 ` Fan Wu
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 01/16] security: add ipe lsm Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-03-02 19:00   ` [dm-devel] " Paul Moore
2023-03-02 19:00     ` Paul Moore
2023-03-02 19:00     ` Paul Moore
2023-04-06 19:20     ` [dm-devel] " Fan Wu
2023-04-06 19:20       ` Fan Wu
2023-04-06 19:20       ` Fan Wu
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 02/16] ipe: add policy parser Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-31 10:53   ` [dm-devel] " Roberto Sassu
2023-01-31 10:53     ` Roberto Sassu
2023-01-31 10:53     ` Roberto Sassu
2023-02-01 22:38     ` [dm-devel] " Fan Wu
2023-02-01 22:38       ` Fan Wu
2023-02-01 22:38       ` Fan Wu
2023-03-02 19:02   ` [dm-devel] " Paul Moore
2023-03-02 19:02     ` Paul Moore
2023-03-02 19:02     ` Paul Moore
2023-04-06 20:00     ` [dm-devel] " Fan Wu
2023-04-06 20:00       ` Fan Wu
2023-04-06 20:00       ` Fan Wu
2023-04-11 19:13       ` [dm-devel] " Paul Moore
2023-04-11 19:13         ` Paul Moore
2023-04-11 19:13         ` Paul Moore
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 03/16] ipe: add evaluation loop and introduce 'boot_verified' as a trust provider Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-31 10:29   ` [dm-devel] " Roberto Sassu
2023-01-31 10:29     ` Roberto Sassu
2023-01-31 10:29     ` Roberto Sassu
2023-01-31 15:49   ` [dm-devel] " Roberto Sassu
2023-01-31 15:49     ` Roberto Sassu
2023-01-31 15:49     ` Roberto Sassu
2023-02-10 23:21     ` [dm-devel] " Fan Wu
2023-02-10 23:21       ` Fan Wu
2023-02-10 23:21       ` Fan Wu
2023-03-02  2:33       ` [dm-devel] " Paul Moore
2023-03-02  2:33         ` Paul Moore
2023-03-02  2:33         ` Paul Moore
2023-03-02 19:03   ` [dm-devel] " Paul Moore
2023-03-02 19:03     ` Paul Moore
2023-03-02 19:03     ` Paul Moore
2023-04-10 18:53     ` [dm-devel] " Fan Wu
2023-04-10 18:53       ` Fan Wu
2023-04-10 18:53       ` Fan Wu
2023-04-11 20:32       ` [dm-devel] " Paul Moore
2023-04-11 20:32         ` Paul Moore
2023-04-11 20:32         ` Paul Moore
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 04/16] security: add new securityfs delete function Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 05/16] ipe: add userspace interface Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-31 10:49   ` [dm-devel] " Roberto Sassu
2023-01-31 10:49     ` Roberto Sassu
2023-01-31 10:49     ` Roberto Sassu
2023-02-01 19:46     ` [dm-devel] " Fan Wu
2023-02-01 19:46       ` Fan Wu
2023-02-01 19:46       ` Fan Wu
2023-02-05  8:42   ` kernel test robot [this message]
2023-03-02 19:04   ` [dm-devel] " Paul Moore
2023-03-02 19:04     ` Paul Moore
2023-03-02 19:04     ` Paul Moore
2023-04-10 19:10     ` [dm-devel] " Fan Wu
2023-04-10 19:10       ` Fan Wu
2023-04-10 19:10       ` Fan Wu
2023-04-11 21:45       ` [dm-devel] " Paul Moore
2023-04-11 21:45         ` Paul Moore
2023-04-11 21:45         ` Paul Moore
2023-04-12 23:36         ` [dm-devel] " Fan Wu
2023-04-12 23:36           ` Fan Wu
2023-04-12 23:36           ` Fan Wu
2023-04-13 18:45           ` [dm-devel] " Paul Moore
2023-04-13 18:45             ` Paul Moore
2023-04-13 18:45             ` Paul Moore
2023-04-17 18:06             ` [dm-devel] " Fan Wu
2023-04-17 18:06               ` Fan Wu
2023-04-17 18:06               ` Fan Wu
2023-04-17 20:16               ` [dm-devel] " Paul Moore
2023-04-17 20:16                 ` Paul Moore
2023-04-17 20:16                 ` Paul Moore
2023-04-17 21:18                 ` [dm-devel] " Fan Wu
2023-04-17 21:18                   ` Fan Wu
2023-04-17 21:18                   ` Fan Wu
2023-04-17 21:31                   ` [dm-devel] " Paul Moore
2023-04-17 21:31                     ` Paul Moore
2023-04-17 21:31                     ` Paul Moore
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 06/16] ipe: add LSM hooks on execution and kernel read Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-31 12:51   ` [dm-devel] " Roberto Sassu
2023-01-31 12:51     ` Roberto Sassu
2023-01-31 12:51     ` Roberto Sassu
2023-02-09 22:42     ` [dm-devel] " Fan Wu
2023-02-09 22:42       ` Fan Wu
2023-02-09 22:42       ` Fan Wu
2023-03-02 19:05   ` [dm-devel] " Paul Moore
2023-03-02 19:05     ` Paul Moore
2023-03-02 19:05     ` Paul Moore
2023-04-10 21:22     ` [dm-devel] " Fan Wu
2023-04-10 21:22       ` Fan Wu
2023-04-10 21:22       ` Fan Wu
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 07/16] uapi|audit|ipe: add ipe auditing support Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-31 12:57   ` [dm-devel] " Roberto Sassu
2023-01-31 12:57     ` Roberto Sassu
2023-01-31 12:57     ` Roberto Sassu
2023-01-31 17:10   ` [dm-devel] " Steve Grubb
2023-01-31 17:10     ` Steve Grubb
2023-01-31 17:10     ` Steve Grubb
2023-03-02 19:05     ` [dm-devel] " Paul Moore
2023-03-02 19:05       ` Paul Moore
2023-03-02 19:05       ` Paul Moore
2023-03-16 22:53       ` [dm-devel] " Fan Wu
2023-03-16 22:53         ` Fan Wu
2023-03-16 22:53         ` Fan Wu
2023-04-11 23:07         ` [dm-devel] " Paul Moore
2023-04-11 23:07           ` Paul Moore
2023-04-11 23:07           ` Paul Moore
2023-04-11 23:21       ` [dm-devel] " Paul Moore
2023-04-11 23:21         ` Paul Moore
2023-04-11 23:21         ` Paul Moore
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 08/16] ipe: add permissive toggle Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-03-02 19:06   ` [dm-devel] " Paul Moore
2023-03-02 19:06     ` Paul Moore
2023-03-02 19:06     ` Paul Moore
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 09/16] block|security: add LSM blob to block_device Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-31  8:53   ` [dm-devel] " Christoph Hellwig
2023-01-31  8:53     ` Christoph Hellwig
2023-01-31  8:53     ` Christoph Hellwig
2023-01-31 23:01     ` [dm-devel] " Fan Wu
2023-01-31 23:01       ` Fan Wu
2023-01-31 23:01       ` Fan Wu
2023-03-02 19:07   ` [dm-devel] " Paul Moore
2023-03-02 19:07     ` Paul Moore
2023-03-02 19:07     ` Paul Moore
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 10/16] dm-verity: consume root hash digest and signature data via LSM hook Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-31 13:22   ` [dm-devel] " Roberto Sassu
2023-01-31 13:22     ` Roberto Sassu
2023-01-31 13:22     ` Roberto Sassu
2023-02-01 23:26     ` [dm-devel] " Fan Wu
2023-02-01 23:26       ` Fan Wu
2023-02-01 23:26       ` Fan Wu
2023-02-02  8:21       ` [dm-devel] " Roberto Sassu
2023-02-02  8:21         ` Roberto Sassu
2023-02-02  8:21         ` Roberto Sassu
2023-02-07 23:52         ` [dm-devel] " Fan Wu
2023-02-07 23:52           ` Fan Wu
2023-02-07 23:52           ` Fan Wu
2023-02-01  4:10   ` kernel test robot
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 11/16] ipe: add support for dm-verity as a trust provider Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-31  1:42   ` kernel test robot
2023-03-02 19:08   ` [dm-devel] " Paul Moore
2023-03-02 19:08     ` Paul Moore
2023-03-02 19:08     ` Paul Moore
2023-03-16 22:10     ` [dm-devel] " Fan Wu
2023-03-16 22:10       ` Fan Wu
2023-03-16 22:10       ` Fan Wu
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 12/16] fsverity: consume builtin signature via LSM hook Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-02-09  3:30   ` [dm-devel] " Eric Biggers
2023-02-09  3:30     ` Eric Biggers
2023-02-09  3:30     ` Eric Biggers
2023-02-09 22:21     ` [dm-devel] " Fan Wu
2023-02-09 22:21       ` Fan Wu
2023-02-09 22:21       ` Fan Wu
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 13/16] ipe: enable support for fs-verity as a trust provider Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-31 14:00   ` [dm-devel] " Roberto Sassu
2023-01-31 14:00     ` Roberto Sassu
2023-01-31 14:00     ` Roberto Sassu
2023-02-01 23:50     ` [dm-devel] " Fan Wu
2023-02-01 23:50       ` Fan Wu
2023-02-01 23:50       ` Fan Wu
2023-02-02  9:51       ` [dm-devel] " Roberto Sassu
2023-02-02  9:51         ` Roberto Sassu
2023-02-02  9:51         ` Roberto Sassu
2023-02-08  0:16         ` [dm-devel] " Fan Wu
2023-02-08  0:16           ` Fan Wu
2023-02-08  0:16           ` Fan Wu
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 14/16] scripts: add boot policy generation program Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 15/16] ipe: kunit test for parser Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57 ` [dm-devel] [RFC PATCH v9 16/16] documentation: add ipe documentation Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-30 22:57   ` Fan Wu
2023-01-31  3:59   ` [dm-devel] " Bagas Sanjaya
2023-01-31  3:59     ` Bagas Sanjaya
2023-01-31  3:59     ` Bagas Sanjaya
2023-02-02  0:19     ` [dm-devel] " Fan Wu
2023-02-02  0:19       ` Fan Wu
2023-02-02  0:19       ` Fan Wu
2023-01-31 14:22 ` [dm-devel] [RFC PATCH v9 00/16] Integrity Policy Enforcement LSM (IPE) Roberto Sassu
2023-01-31 14:22   ` Roberto Sassu
2023-01-31 14:22   ` Roberto Sassu
2023-02-01  0:48   ` [dm-devel] " Fan Wu
2023-02-01  0:48     ` Fan Wu
2023-02-01  0:48     ` Fan Wu
2023-02-02 10:48     ` [dm-devel] " Roberto Sassu
2023-02-02 10:48       ` Roberto Sassu
2023-02-02 10:48       ` Roberto Sassu
2023-02-08  0:31       ` [dm-devel] " Fan Wu
2023-02-08  0:31         ` Fan Wu
2023-02-08  0:31         ` Fan Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202302051649.TJllIo95-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=wufan@linux.microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.