wok-current diff linux/stuff/aufs3-standalone.patch @ rev 24401
updated check and check-dev (0.13.0 -> 0.15.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 08 17:05:29 2022 +0100 (2022-02-08) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux/stuff/aufs3-standalone.patch Tue Feb 08 17:05:29 2022 +0100 1.3 @@ -0,0 +1,326 @@ 1.4 +aufs3.16 standalone patch 1.5 + 1.6 +diff --git a/fs/dcache.c b/fs/dcache.c 1.7 +index 0ea8c4a..2c22125 100644 1.8 +--- a/fs/dcache.c 1.9 ++++ b/fs/dcache.c 1.10 +@@ -1161,6 +1161,7 @@ rename_retry: 1.11 + seq = 1; 1.12 + goto again; 1.13 + } 1.14 ++EXPORT_SYMBOL(d_walk); 1.15 + 1.16 + /* 1.17 + * Search for at least 1 mount point in the dentry's subdirs. 1.18 +diff --git a/fs/file_table.c b/fs/file_table.c 1.19 +index 385bfd3..7d4ee57 100644 1.20 +--- a/fs/file_table.c 1.21 ++++ b/fs/file_table.c 1.22 +@@ -147,6 +147,7 @@ over: 1.23 + } 1.24 + return ERR_PTR(-ENFILE); 1.25 + } 1.26 ++EXPORT_SYMBOL(get_empty_filp); 1.27 + 1.28 + /** 1.29 + * alloc_file - allocate and initialize a 'struct file' 1.30 +@@ -316,6 +317,7 @@ void put_filp(struct file *file) 1.31 + file_free(file); 1.32 + } 1.33 + } 1.34 ++EXPORT_SYMBOL(put_filp); 1.35 + 1.36 + void __init files_init(unsigned long mempages) 1.37 + { 1.38 +diff --git a/fs/inode.c b/fs/inode.c 1.39 +index b225c0f..73259c8 100644 1.40 +--- a/fs/inode.c 1.41 ++++ b/fs/inode.c 1.42 +@@ -57,6 +57,7 @@ static struct hlist_head *inode_hashtable __read_mostly; 1.43 + static __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_hash_lock); 1.44 + 1.45 + __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_sb_list_lock); 1.46 ++EXPORT_SYMBOL(inode_sb_list_lock); 1.47 + 1.48 + /* 1.49 + * Empty aops. Can be used for the cases where the user does not 1.50 +@@ -1512,6 +1513,7 @@ int update_time(struct inode *inode, struct timespec *time, int flags) 1.51 + mark_inode_dirty_sync(inode); 1.52 + return 0; 1.53 + } 1.54 ++EXPORT_SYMBOL(update_time); 1.55 + 1.56 + /** 1.57 + * touch_atime - update the access time 1.58 +diff --git a/fs/namespace.c b/fs/namespace.c 1.59 +index 182bc41..c88e101 100644 1.60 +--- a/fs/namespace.c 1.61 ++++ b/fs/namespace.c 1.62 +@@ -453,6 +453,7 @@ void __mnt_drop_write(struct vfsmount *mnt) 1.63 + mnt_dec_writers(real_mount(mnt)); 1.64 + preempt_enable(); 1.65 + } 1.66 ++EXPORT_SYMBOL_GPL(__mnt_drop_write); 1.67 + 1.68 + /** 1.69 + * mnt_drop_write - give up write access to a mount 1.70 +@@ -1564,6 +1565,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg, 1.71 + } 1.72 + return 0; 1.73 + } 1.74 ++EXPORT_SYMBOL(iterate_mounts); 1.75 + 1.76 + static void cleanup_group_ids(struct mount *mnt, struct mount *end) 1.77 + { 1.78 +diff --git a/fs/notify/group.c b/fs/notify/group.c 1.79 +index ad19959..adf290d 100644 1.80 +--- a/fs/notify/group.c 1.81 ++++ b/fs/notify/group.c 1.82 +@@ -22,6 +22,7 @@ 1.83 + #include <linux/srcu.h> 1.84 + #include <linux/rculist.h> 1.85 + #include <linux/wait.h> 1.86 ++#include <linux/module.h> 1.87 + 1.88 + #include <linux/fsnotify_backend.h> 1.89 + #include "fsnotify.h" 1.90 +@@ -72,6 +73,7 @@ void fsnotify_get_group(struct fsnotify_group *group) 1.91 + { 1.92 + atomic_inc(&group->refcnt); 1.93 + } 1.94 ++EXPORT_SYMBOL(fsnotify_get_group); 1.95 + 1.96 + /* 1.97 + * Drop a reference to a group. Free it if it's through. 1.98 +@@ -81,6 +83,7 @@ void fsnotify_put_group(struct fsnotify_group *group) 1.99 + if (atomic_dec_and_test(&group->refcnt)) 1.100 + fsnotify_final_destroy_group(group); 1.101 + } 1.102 ++EXPORT_SYMBOL(fsnotify_put_group); 1.103 + 1.104 + /* 1.105 + * Create a new fsnotify_group and hold a reference for the group returned. 1.106 +@@ -109,6 +112,7 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops) 1.107 + 1.108 + return group; 1.109 + } 1.110 ++EXPORT_SYMBOL(fsnotify_alloc_group); 1.111 + 1.112 + int fsnotify_fasync(int fd, struct file *file, int on) 1.113 + { 1.114 +diff --git a/fs/notify/mark.c b/fs/notify/mark.c 1.115 +index d90deaa..60b4239 100644 1.116 +--- a/fs/notify/mark.c 1.117 ++++ b/fs/notify/mark.c 1.118 +@@ -109,6 +109,7 @@ void fsnotify_put_mark(struct fsnotify_mark *mark) 1.119 + mark->free_mark(mark); 1.120 + } 1.121 + } 1.122 ++EXPORT_SYMBOL(fsnotify_put_mark); 1.123 + 1.124 + /* 1.125 + * Any time a mark is getting freed we end up here. 1.126 +@@ -191,6 +192,7 @@ void fsnotify_destroy_mark(struct fsnotify_mark *mark, 1.127 + fsnotify_destroy_mark_locked(mark, group); 1.128 + mutex_unlock(&group->mark_mutex); 1.129 + } 1.130 ++EXPORT_SYMBOL(fsnotify_destroy_mark); 1.131 + 1.132 + void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask) 1.133 + { 1.134 +@@ -275,6 +277,7 @@ err: 1.135 + 1.136 + return ret; 1.137 + } 1.138 ++EXPORT_SYMBOL(fsnotify_add_mark); 1.139 + 1.140 + int fsnotify_add_mark(struct fsnotify_mark *mark, struct fsnotify_group *group, 1.141 + struct inode *inode, struct vfsmount *mnt, int allow_dups) 1.142 +@@ -336,6 +339,7 @@ void fsnotify_init_mark(struct fsnotify_mark *mark, 1.143 + atomic_set(&mark->refcnt, 1); 1.144 + mark->free_mark = free_mark; 1.145 + } 1.146 ++EXPORT_SYMBOL(fsnotify_init_mark); 1.147 + 1.148 + static int fsnotify_mark_destroy(void *ignored) 1.149 + { 1.150 +diff --git a/fs/open.c b/fs/open.c 1.151 +index d6fd3ac..5224633c 100644 1.152 +--- a/fs/open.c 1.153 ++++ b/fs/open.c 1.154 +@@ -62,6 +62,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs, 1.155 + mutex_unlock(&dentry->d_inode->i_mutex); 1.156 + return ret; 1.157 + } 1.158 ++EXPORT_SYMBOL(do_truncate); 1.159 + 1.160 + long vfs_truncate(struct path *path, loff_t length) 1.161 + { 1.162 +@@ -298,6 +299,7 @@ int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len) 1.163 + sb_end_write(inode->i_sb); 1.164 + return ret; 1.165 + } 1.166 ++EXPORT_SYMBOL(do_fallocate); 1.167 + 1.168 + SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) 1.169 + { 1.170 +@@ -663,6 +665,7 @@ int open_check_o_direct(struct file *f) 1.171 + } 1.172 + return 0; 1.173 + } 1.174 ++EXPORT_SYMBOL(open_check_o_direct); 1.175 + 1.176 + static int do_dentry_open(struct file *f, 1.177 + int (*open)(struct inode *, struct file *), 1.178 +diff --git a/fs/splice.c b/fs/splice.c 1.179 +index 9ba380c..3419932 100644 1.180 +--- a/fs/splice.c 1.181 ++++ b/fs/splice.c 1.182 +@@ -1127,6 +1127,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out, 1.183 + 1.184 + return splice_write(pipe, out, ppos, len, flags); 1.185 + } 1.186 ++EXPORT_SYMBOL(do_splice_from); 1.187 + 1.188 + /* 1.189 + * Attempt to initiate a splice from a file to a pipe. 1.190 +@@ -1153,6 +1154,7 @@ long do_splice_to(struct file *in, loff_t *ppos, 1.191 + 1.192 + return splice_read(in, ppos, pipe, len, flags); 1.193 + } 1.194 ++EXPORT_SYMBOL(do_splice_to); 1.195 + 1.196 + /** 1.197 + * splice_direct_to_actor - splices data directly between two non-pipes 1.198 +diff --git a/fs/xattr.c b/fs/xattr.c 1.199 +index c69e6d4..3a7a8eb 100644 1.200 +--- a/fs/xattr.c 1.201 ++++ b/fs/xattr.c 1.202 +@@ -207,6 +207,7 @@ vfs_getxattr_alloc(struct dentry *dentry, const char *name, char **xattr_value, 1.203 + *xattr_value = value; 1.204 + return error; 1.205 + } 1.206 ++EXPORT_SYMBOL(vfs_getxattr_alloc); 1.207 + 1.208 + /* Compare an extended attribute value with the given value */ 1.209 + int vfs_xattr_cmp(struct dentry *dentry, const char *xattr_name, 1.210 +diff --git a/security/commoncap.c b/security/commoncap.c 1.211 +index b9d613e..ba3b618 100644 1.212 +--- a/security/commoncap.c 1.213 ++++ b/security/commoncap.c 1.214 +@@ -988,9 +988,11 @@ int cap_mmap_addr(unsigned long addr) 1.215 + } 1.216 + return ret; 1.217 + } 1.218 ++EXPORT_SYMBOL(cap_mmap_addr); 1.219 + 1.220 + int cap_mmap_file(struct file *file, unsigned long reqprot, 1.221 + unsigned long prot, unsigned long flags) 1.222 + { 1.223 + return 0; 1.224 + } 1.225 ++EXPORT_SYMBOL(cap_mmap_file); 1.226 +diff --git a/security/device_cgroup.c b/security/device_cgroup.c 1.227 +index d9d69e6..3f6f471 100644 1.228 +--- a/security/device_cgroup.c 1.229 ++++ b/security/device_cgroup.c 1.230 +@@ -7,6 +7,7 @@ 1.231 + #include <linux/device_cgroup.h> 1.232 + #include <linux/cgroup.h> 1.233 + #include <linux/ctype.h> 1.234 ++#include <linux/export.h> 1.235 + #include <linux/list.h> 1.236 + #include <linux/uaccess.h> 1.237 + #include <linux/seq_file.h> 1.238 +@@ -849,6 +850,7 @@ int __devcgroup_inode_permission(struct inode *inode, int mask) 1.239 + return __devcgroup_check_permission(type, imajor(inode), iminor(inode), 1.240 + access); 1.241 + } 1.242 ++EXPORT_SYMBOL(__devcgroup_inode_permission); 1.243 + 1.244 + int devcgroup_inode_mknod(int mode, dev_t dev) 1.245 + { 1.246 +diff --git a/security/security.c b/security/security.c 1.247 +index 31614e9..b223a66 100644 1.248 +--- a/security/security.c 1.249 ++++ b/security/security.c 1.250 +@@ -407,6 +407,7 @@ int security_path_rmdir(struct path *dir, struct dentry *dentry) 1.251 + return 0; 1.252 + return security_ops->path_rmdir(dir, dentry); 1.253 + } 1.254 ++EXPORT_SYMBOL(security_path_rmdir); 1.255 + 1.256 + int security_path_unlink(struct path *dir, struct dentry *dentry) 1.257 + { 1.258 +@@ -423,6 +424,7 @@ int security_path_symlink(struct path *dir, struct dentry *dentry, 1.259 + return 0; 1.260 + return security_ops->path_symlink(dir, dentry, old_name); 1.261 + } 1.262 ++EXPORT_SYMBOL(security_path_symlink); 1.263 + 1.264 + int security_path_link(struct dentry *old_dentry, struct path *new_dir, 1.265 + struct dentry *new_dentry) 1.266 +@@ -431,6 +433,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir, 1.267 + return 0; 1.268 + return security_ops->path_link(old_dentry, new_dir, new_dentry); 1.269 + } 1.270 ++EXPORT_SYMBOL(security_path_link); 1.271 + 1.272 + int security_path_rename(struct path *old_dir, struct dentry *old_dentry, 1.273 + struct path *new_dir, struct dentry *new_dentry, 1.274 +@@ -458,6 +461,7 @@ int security_path_truncate(struct path *path) 1.275 + return 0; 1.276 + return security_ops->path_truncate(path); 1.277 + } 1.278 ++EXPORT_SYMBOL(security_path_truncate); 1.279 + 1.280 + int security_path_chmod(struct path *path, umode_t mode) 1.281 + { 1.282 +@@ -465,6 +469,7 @@ int security_path_chmod(struct path *path, umode_t mode) 1.283 + return 0; 1.284 + return security_ops->path_chmod(path, mode); 1.285 + } 1.286 ++EXPORT_SYMBOL(security_path_chmod); 1.287 + 1.288 + int security_path_chown(struct path *path, kuid_t uid, kgid_t gid) 1.289 + { 1.290 +@@ -472,6 +477,7 @@ int security_path_chown(struct path *path, kuid_t uid, kgid_t gid) 1.291 + return 0; 1.292 + return security_ops->path_chown(path, uid, gid); 1.293 + } 1.294 ++EXPORT_SYMBOL(security_path_chown); 1.295 + 1.296 + int security_path_chroot(struct path *path) 1.297 + { 1.298 +@@ -557,6 +563,7 @@ int security_inode_readlink(struct dentry *dentry) 1.299 + return 0; 1.300 + return security_ops->inode_readlink(dentry); 1.301 + } 1.302 ++EXPORT_SYMBOL(security_inode_readlink); 1.303 + 1.304 + int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd) 1.305 + { 1.306 +@@ -571,6 +578,7 @@ int security_inode_permission(struct inode *inode, int mask) 1.307 + return 0; 1.308 + return security_ops->inode_permission(inode, mask); 1.309 + } 1.310 ++EXPORT_SYMBOL(security_inode_permission); 1.311 + 1.312 + int security_inode_setattr(struct dentry *dentry, struct iattr *attr) 1.313 + { 1.314 +@@ -693,6 +701,7 @@ int security_file_permission(struct file *file, int mask) 1.315 + 1.316 + return fsnotify_perm(file, mask); 1.317 + } 1.318 ++EXPORT_SYMBOL(security_file_permission); 1.319 + 1.320 + int security_file_alloc(struct file *file) 1.321 + { 1.322 +@@ -753,6 +762,7 @@ int security_mmap_file(struct file *file, unsigned long prot, 1.323 + return ret; 1.324 + return ima_file_mmap(file, prot); 1.325 + } 1.326 ++EXPORT_SYMBOL(security_mmap_file); 1.327 + 1.328 + int security_mmap_addr(unsigned long addr) 1.329 + {