• Home
  • Raw
  • Download

Lines Matching refs:err

26 	int err;  in build_merkle_tree_level()  local
50 err = PTR_ERR(src_page); in build_merkle_tree_level()
53 err, i); in build_merkle_tree_level()
54 return err; in build_merkle_tree_level()
61 err = PTR_ERR(src_page); in build_merkle_tree_level()
64 err, params->level_start[level - 1] + i); in build_merkle_tree_level()
65 return err; in build_merkle_tree_level()
69 err = fsverity_hash_page(params, inode, req, src_page, in build_merkle_tree_level()
72 if (err) in build_merkle_tree_level()
73 return err; in build_merkle_tree_level()
84 err = vops->write_merkle_tree_block(inode, in build_merkle_tree_level()
88 if (err) { in build_merkle_tree_level()
91 err, dst_block_num); in build_merkle_tree_level()
92 return err; in build_merkle_tree_level()
121 int err = -ENOMEM; in build_merkle_tree() local
142 err = build_merkle_tree_level(inode, level, blocks, params, in build_merkle_tree()
144 if (err) in build_merkle_tree()
150 err = 0; in build_merkle_tree()
154 return err; in build_merkle_tree()
166 int err; in enable_verity() local
181 err = -EFAULT; in enable_verity()
191 err = -EFAULT; in enable_verity()
199 err = fsverity_init_merkle_tree_params(&params, inode, in enable_verity()
203 if (err) in enable_verity()
212 err = -EEXIST; in enable_verity()
214 err = vops->begin_enable_verity(filp); in enable_verity()
216 if (err) in enable_verity()
230 err = build_merkle_tree(inode, &params, desc->root_hash); in enable_verity()
231 if (err) { in enable_verity()
232 fsverity_err(inode, "Error %d building Merkle tree", err); in enable_verity()
247 err = PTR_ERR(vi); in enable_verity()
260 err = vops->end_enable_verity(filp, desc, desc_size, params.tree_size); in enable_verity()
262 if (err) { in enable_verity()
264 vops->end_enable_verity, err); in enable_verity()
267 err = -EINVAL; in enable_verity()
282 return err; in enable_verity()
303 int err; in fsverity_ioctl_enable() local
331 err = inode_permission(inode, MAY_WRITE); in fsverity_ioctl_enable()
332 if (err) in fsverity_ioctl_enable()
333 return err; in fsverity_ioctl_enable()
344 err = mnt_want_write_file(filp); in fsverity_ioctl_enable()
345 if (err) /* -EROFS */ in fsverity_ioctl_enable()
346 return err; in fsverity_ioctl_enable()
348 err = deny_write_access(filp); in fsverity_ioctl_enable()
349 if (err) /* -ETXTBSY */ in fsverity_ioctl_enable()
352 err = enable_verity(filp, &arg); in fsverity_ioctl_enable()
353 if (err) in fsverity_ioctl_enable()
375 return err; in fsverity_ioctl_enable()