aufs: Update support patchset to aufs4.19.63+ 20200113; no functional changes

This drops some exports, but we intend to bump the ABI number anyway.
This commit is contained in:
Ben Hutchings 2020-01-19 01:03:02 +00:00
parent ef8d371cad
commit b65774c8d3
4 changed files with 263 additions and 299 deletions

2
debian/changelog vendored
View File

@ -1247,6 +1247,8 @@ linux (4.19.97-1) UNRELEASED; urgency=medium
* [rt] Update to 4.19.94-rt38: * [rt] Update to 4.19.94-rt38:
- Refresh "x86/ioapic: Don't let setaffinity unmask threaded EOI interrupt - Refresh "x86/ioapic: Don't let setaffinity unmask threaded EOI interrupt
too early" which was partly included in 4.19.92 too early" which was partly included in 4.19.92
* aufs: Update support patchset to aufs4.19.63+ 20200113; no functional
changes
-- Salvatore Bonaccorso <carnil@debian.org> Sat, 14 Dec 2019 22:00:16 +0100 -- Salvatore Bonaccorso <carnil@debian.org> Sat, 14 Dec 2019 22:00:16 +0100

View File

@ -1,26 +1,26 @@
From: J. R. Okajima <hooanon05@yahoo.co.jp> From: J. R. Okajima <hooanon05@yahoo.co.jp>
Date: Sat Sep 8 23:32:19 2018 +0900 Date: Tue Sep 3 14:14:09 2019 +0900
Subject: aufs4.x-rcN base patch Subject: aufs4.19.63+ base patch
Origin: https://github.com/sfjro/aufs4-standalone/tree/ecea3973efed5223878e489d212dc39fee4dabb6 Origin: https://github.com/sfjro/aufs4-standalone/tree/6c582cc629cbfb4fac5bfc7d20db128c7d201da6
Bug-Debian: https://bugs.debian.org/541828 Bug-Debian: https://bugs.debian.org/541828
Patch headers added by debian/patches/features/all/aufs4/gen-patch Patch headers added by debian/bin/genpatch-aufs
SPDX-License-Identifier: GPL-2.0 SPDX-License-Identifier: GPL-2.0
aufs4.x-rcN base patch aufs4.19.63+ base patch
Index: linux/MAINTAINERS diff --git a/MAINTAINERS b/MAINTAINERS
=================================================================== index 11a59e82d92e..573d5b42b28b 100644
--- linux.orig/MAINTAINERS --- a/MAINTAINERS
+++ linux/MAINTAINERS +++ b/MAINTAINERS
@@ -2605,6 +2605,19 @@ F: include/linux/audit.h @@ -2605,6 +2605,19 @@ F: include/linux/audit.h
F: include/uapi/linux/audit.h F: include/uapi/linux/audit.h
F: kernel/audit* F: kernel/audit*
+AUFS (advanced multi layered unification filesystem) FILESYSTEM +AUFS (advanced multi layered unification filesystem) FILESYSTEM
+M: "J. R. Okajima" <hooanon05g@gmail.com> +M: "J. R. Okajima" <hooanon05g@gmail.com>
+L: linux-unionfs@vger.kernel.org
+L: aufs-users@lists.sourceforge.net (members only) +L: aufs-users@lists.sourceforge.net (members only)
+L: linux-unionfs@vger.kernel.org
+W: http://aufs.sourceforge.net +W: http://aufs.sourceforge.net
+T: git://github.com/sfjro/aufs4-linux.git +T: git://github.com/sfjro/aufs4-linux.git
+S: Supported +S: Supported
@ -33,11 +33,11 @@ Index: linux/MAINTAINERS
AUXILIARY DISPLAY DRIVERS AUXILIARY DISPLAY DRIVERS
M: Miguel Ojeda Sandonis <miguel.ojeda.sandonis@gmail.com> M: Miguel Ojeda Sandonis <miguel.ojeda.sandonis@gmail.com>
S: Maintained S: Maintained
Index: linux/drivers/block/loop.c diff --git a/drivers/block/loop.c b/drivers/block/loop.c
=================================================================== index f1e63eb7cbca..b732df5f14f3 100644
--- linux.orig/drivers/block/loop.c --- a/drivers/block/loop.c
+++ linux/drivers/block/loop.c +++ b/drivers/block/loop.c
@@ -739,6 +739,24 @@ out_err: @@ -739,6 +739,24 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
return error; return error;
} }
@ -62,10 +62,10 @@ Index: linux/drivers/block/loop.c
/* loop sysfs attributes */ /* loop sysfs attributes */
static ssize_t loop_attr_show(struct device *dev, char *page, static ssize_t loop_attr_show(struct device *dev, char *page,
Index: linux/fs/dcache.c diff --git a/fs/dcache.c b/fs/dcache.c
=================================================================== index 6e0022326afe..3bd53094ac3d 100644
--- linux.orig/fs/dcache.c --- a/fs/dcache.c
+++ linux/fs/dcache.c +++ b/fs/dcache.c
@@ -1234,7 +1234,7 @@ enum d_walk_ret { @@ -1234,7 +1234,7 @@ enum d_walk_ret {
* *
* The @enter() callbacks are called with d_lock held. * The @enter() callbacks are called with d_lock held.
@ -75,10 +75,10 @@ Index: linux/fs/dcache.c
enum d_walk_ret (*enter)(void *, struct dentry *)) enum d_walk_ret (*enter)(void *, struct dentry *))
{ {
struct dentry *this_parent; struct dentry *this_parent;
Index: linux/fs/fcntl.c diff --git a/fs/fcntl.c b/fs/fcntl.c
=================================================================== index 4137d96534a6..c91b3e3c4580 100644
--- linux.orig/fs/fcntl.c --- a/fs/fcntl.c
+++ linux/fs/fcntl.c +++ b/fs/fcntl.c
@@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
#define SETFL_MASK (O_APPEND | O_NONBLOCK | O_NDELAY | O_DIRECT | O_NOATIME) #define SETFL_MASK (O_APPEND | O_NONBLOCK | O_NDELAY | O_DIRECT | O_NOATIME)
@ -88,7 +88,7 @@ Index: linux/fs/fcntl.c
{ {
struct inode * inode = file_inode(filp); struct inode * inode = file_inode(filp);
int error = 0; int error = 0;
@@ -63,6 +63,8 @@ static int setfl(int fd, struct file * f @@ -63,6 +63,8 @@ static int setfl(int fd, struct file * filp, unsigned long arg)
if (filp->f_op->check_flags) if (filp->f_op->check_flags)
error = filp->f_op->check_flags(arg); error = filp->f_op->check_flags(arg);
@ -97,10 +97,10 @@ Index: linux/fs/fcntl.c
if (error) if (error)
return error; return error;
Index: linux/fs/inode.c diff --git a/fs/inode.c b/fs/inode.c
=================================================================== index 5c63693326bb..43046d7223e4 100644
--- linux.orig/fs/inode.c --- a/fs/inode.c
+++ linux/fs/inode.c +++ b/fs/inode.c
@@ -1657,7 +1657,7 @@ EXPORT_SYMBOL(generic_update_time); @@ -1657,7 +1657,7 @@ EXPORT_SYMBOL(generic_update_time);
* This does the actual work of updating an inodes time or version. Must have * This does the actual work of updating an inodes time or version. Must have
* had called mnt_want_write() before calling this. * had called mnt_want_write() before calling this.
@ -110,11 +110,11 @@ Index: linux/fs/inode.c
{ {
int (*update_time)(struct inode *, struct timespec64 *, int); int (*update_time)(struct inode *, struct timespec64 *, int);
Index: linux/fs/namespace.c diff --git a/fs/namespace.c b/fs/namespace.c
=================================================================== index 1fce41ba3535..fbd7edd49a2f 100644
--- linux.orig/fs/namespace.c --- a/fs/namespace.c
+++ linux/fs/namespace.c +++ b/fs/namespace.c
@@ -770,6 +770,12 @@ static inline int check_mnt(struct mount @@ -770,6 +770,12 @@ static inline int check_mnt(struct mount *mnt)
return mnt->mnt_ns == current->nsproxy->mnt_ns; return mnt->mnt_ns == current->nsproxy->mnt_ns;
} }
@ -127,11 +127,11 @@ Index: linux/fs/namespace.c
/* /*
* vfsmount lock must be held for write * vfsmount lock must be held for write
*/ */
Index: linux/fs/read_write.c diff --git a/fs/read_write.c b/fs/read_write.c
=================================================================== index 85fd7a8ee29e..c1335b4f19c0 100644
--- linux.orig/fs/read_write.c --- a/fs/read_write.c
+++ linux/fs/read_write.c +++ b/fs/read_write.c
@@ -489,6 +489,28 @@ ssize_t __vfs_write(struct file *file, c @@ -489,6 +489,28 @@ ssize_t __vfs_write(struct file *file, const char __user *p, size_t count,
return -EINVAL; return -EINVAL;
} }
@ -160,10 +160,10 @@ Index: linux/fs/read_write.c
ssize_t __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos) ssize_t __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos)
{ {
mm_segment_t old_fs; mm_segment_t old_fs;
Index: linux/fs/splice.c diff --git a/fs/splice.c b/fs/splice.c
=================================================================== index 485e409ef841..b2c2d320565b 100644
--- linux.orig/fs/splice.c --- a/fs/splice.c
+++ linux/fs/splice.c +++ b/fs/splice.c
@@ -838,8 +838,8 @@ EXPORT_SYMBOL(generic_splice_sendpage); @@ -838,8 +838,8 @@ EXPORT_SYMBOL(generic_splice_sendpage);
/* /*
* Attempt to initiate a splice from pipe to file. * Attempt to initiate a splice from pipe to file.
@ -175,7 +175,7 @@ Index: linux/fs/splice.c
{ {
ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, ssize_t (*splice_write)(struct pipe_inode_info *, struct file *,
loff_t *, size_t, unsigned int); loff_t *, size_t, unsigned int);
@@ -855,9 +855,9 @@ static long do_splice_from(struct pipe_i @@ -855,9 +855,9 @@ static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
/* /*
* Attempt to initiate a splice from a file to a pipe. * Attempt to initiate a splice from a file to a pipe.
*/ */
@ -188,10 +188,10 @@ Index: linux/fs/splice.c
{ {
ssize_t (*splice_read)(struct file *, loff_t *, ssize_t (*splice_read)(struct file *, loff_t *,
struct pipe_inode_info *, size_t, unsigned int); struct pipe_inode_info *, size_t, unsigned int);
Index: linux/fs/sync.c diff --git a/fs/sync.c b/fs/sync.c
=================================================================== index b54e0541ad89..28607828e96f 100644
--- linux.orig/fs/sync.c --- a/fs/sync.c
+++ linux/fs/sync.c +++ b/fs/sync.c
@@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
* wait == 1 case since in that case write_inode() functions do * wait == 1 case since in that case write_inode() functions do
* sync_dirty_buffer() and thus effectively write one block at a time. * sync_dirty_buffer() and thus effectively write one block at a time.
@ -201,11 +201,11 @@ Index: linux/fs/sync.c
{ {
if (wait) if (wait)
sync_inodes_sb(sb); sync_inodes_sb(sb);
Index: linux/include/linux/fs.h diff --git a/include/linux/fs.h b/include/linux/fs.h
=================================================================== index 92420009b9bc..ecad33c40cae 100644
--- linux.orig/include/linux/fs.h --- a/include/linux/fs.h
+++ linux/include/linux/fs.h +++ b/include/linux/fs.h
@@ -1295,6 +1295,7 @@ extern void fasync_free(struct fasync_st @@ -1295,6 +1295,7 @@ extern void fasync_free(struct fasync_struct *);
/* can be called from interrupts */ /* can be called from interrupts */
extern void kill_fasync(struct fasync_struct **, int, int); extern void kill_fasync(struct fasync_struct **, int, int);
@ -221,7 +221,7 @@ Index: linux/include/linux/fs.h
int (*flock) (struct file *, int, struct file_lock *); int (*flock) (struct file *, int, struct file_lock *);
ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int); ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int);
ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int); ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
@@ -1830,6 +1832,12 @@ ssize_t rw_copy_check_uvector(int type, @@ -1830,6 +1832,12 @@ ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector,
struct iovec *fast_pointer, struct iovec *fast_pointer,
struct iovec **ret_pointer); struct iovec **ret_pointer);
@ -242,7 +242,7 @@ Index: linux/include/linux/fs.h
/* /sys/fs */ /* /sys/fs */
extern struct kobject *fs_kobj; extern struct kobject *fs_kobj;
@@ -2542,6 +2551,7 @@ static inline bool sb_is_blkdev_sb(struc @@ -2542,6 +2551,7 @@ static inline bool sb_is_blkdev_sb(struct super_block *sb)
return false; return false;
} }
#endif #endif
@ -250,11 +250,11 @@ Index: linux/include/linux/fs.h
extern int sync_filesystem(struct super_block *); extern int sync_filesystem(struct super_block *);
extern const struct file_operations def_blk_fops; extern const struct file_operations def_blk_fops;
extern const struct file_operations def_chr_fops; extern const struct file_operations def_chr_fops;
Index: linux/include/linux/lockdep.h diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
=================================================================== index b0d0b51c4d85..f73ffaa0199e 100644
--- linux.orig/include/linux/lockdep.h --- a/include/linux/lockdep.h
+++ linux/include/linux/lockdep.h +++ b/include/linux/lockdep.h
@@ -313,6 +313,8 @@ static inline int lockdep_match_key(stru @@ -313,6 +313,8 @@ static inline int lockdep_match_key(struct lockdep_map *lock,
return lock->key == key; return lock->key == key;
} }
@ -271,10 +271,10 @@ Index: linux/include/linux/lockdep.h
#define lockdep_is_held_type(l, r) (1) #define lockdep_is_held_type(l, r) (1)
#define lockdep_assert_held(l) do { (void)(l); } while (0) #define lockdep_assert_held(l) do { (void)(l); } while (0)
Index: linux/include/linux/mnt_namespace.h diff --git a/include/linux/mnt_namespace.h b/include/linux/mnt_namespace.h
=================================================================== index 35942084cd40..24f5fd1a789d 100644
--- linux.orig/include/linux/mnt_namespace.h --- a/include/linux/mnt_namespace.h
+++ linux/include/linux/mnt_namespace.h +++ b/include/linux/mnt_namespace.h
@@ -6,11 +6,14 @@ @@ -6,11 +6,14 @@
struct mnt_namespace; struct mnt_namespace;
struct fs_struct; struct fs_struct;
@ -290,11 +290,11 @@ Index: linux/include/linux/mnt_namespace.h
extern const struct file_operations proc_mounts_operations; extern const struct file_operations proc_mounts_operations;
extern const struct file_operations proc_mountinfo_operations; extern const struct file_operations proc_mountinfo_operations;
extern const struct file_operations proc_mountstats_operations; extern const struct file_operations proc_mountstats_operations;
Index: linux/include/linux/splice.h diff --git a/include/linux/splice.h b/include/linux/splice.h
=================================================================== index 74b4911ac16d..19789fbea567 100644
--- linux.orig/include/linux/splice.h --- a/include/linux/splice.h
+++ linux/include/linux/splice.h +++ b/include/linux/splice.h
@@ -87,4 +87,10 @@ extern void splice_shrink_spd(struct spl @@ -87,4 +87,10 @@ extern void splice_shrink_spd(struct splice_pipe_desc *);
extern const struct pipe_buf_operations page_cache_pipe_buf_ops; extern const struct pipe_buf_operations page_cache_pipe_buf_ops;
extern const struct pipe_buf_operations default_pipe_buf_ops; extern const struct pipe_buf_operations default_pipe_buf_ops;
@ -305,11 +305,11 @@ Index: linux/include/linux/splice.h
+ struct pipe_inode_info *pipe, size_t len, + struct pipe_inode_info *pipe, size_t len,
+ unsigned int flags); + unsigned int flags);
#endif #endif
Index: linux/kernel/locking/lockdep.c diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
=================================================================== index e810e8cb17e1..d0c9931e6531 100644
--- linux.orig/kernel/locking/lockdep.c --- a/kernel/locking/lockdep.c
+++ linux/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c
@@ -140,7 +140,7 @@ static struct lock_list list_entries[MAX @@ -140,7 +140,7 @@ static struct lock_list list_entries[MAX_LOCKDEP_ENTRIES];
unsigned long nr_lock_classes; unsigned long nr_lock_classes;
static struct lock_class lock_classes[MAX_LOCKDEP_KEYS]; static struct lock_class lock_classes[MAX_LOCKDEP_KEYS];
@ -318,7 +318,7 @@ Index: linux/kernel/locking/lockdep.c
{ {
if (!hlock->class_idx) { if (!hlock->class_idx) {
/* /*
@@ -151,6 +151,7 @@ static inline struct lock_class *hlock_c @@ -151,6 +151,7 @@ static inline struct lock_class *hlock_class(struct held_lock *hlock)
} }
return lock_classes + hlock->class_idx - 1; return lock_classes + hlock->class_idx - 1;
} }

View File

@ -1,19 +1,19 @@
From: J. R. Okajima <hooanon05@yahoo.co.jp> From: J. R. Okajima <hooanon05@yahoo.co.jp>
Date: Sat Sep 8 23:32:19 2018 +0900 Date: Tue Sep 3 14:14:09 2019 +0900
Subject: aufs4.x-rcN mmap patch Subject: aufs4.19.63+ mmap patch
Origin: https://github.com/sfjro/aufs4-standalone/tree/ecea3973efed5223878e489d212dc39fee4dabb6 Origin: https://github.com/sfjro/aufs4-standalone/tree/6c582cc629cbfb4fac5bfc7d20db128c7d201da6
Bug-Debian: https://bugs.debian.org/541828 Bug-Debian: https://bugs.debian.org/541828
Patch headers added by debian/patches/features/all/aufs4/gen-patch Patch headers added by debian/bin/genpatch-aufs
SPDX-License-Identifier: GPL-2.0 SPDX-License-Identifier: GPL-2.0
aufs4.x-rcN mmap patch aufs4.19.63+ mmap patch
Index: linux/fs/proc/base.c diff --git a/fs/proc/base.c b/fs/proc/base.c
=================================================================== index a7fbda72afeb..9c8439a01c5b 100644
--- linux.orig/fs/proc/base.c --- a/fs/proc/base.c
+++ linux/fs/proc/base.c +++ b/fs/proc/base.c
@@ -2036,7 +2036,7 @@ static int map_files_get_link(struct den @@ -2018,7 +2018,7 @@ static int map_files_get_link(struct dentry *dentry, struct path *path)
rc = -ENOENT; rc = -ENOENT;
vma = find_exact_vma(mm, vm_start, vm_end); vma = find_exact_vma(mm, vm_start, vm_end);
if (vma && vma->vm_file) { if (vma && vma->vm_file) {
@ -22,11 +22,11 @@ Index: linux/fs/proc/base.c
path_get(path); path_get(path);
rc = 0; rc = 0;
} }
Index: linux/fs/proc/nommu.c diff --git a/fs/proc/nommu.c b/fs/proc/nommu.c
=================================================================== index 3b63be64e436..fb9913bf3d10 100644
--- linux.orig/fs/proc/nommu.c --- a/fs/proc/nommu.c
+++ linux/fs/proc/nommu.c +++ b/fs/proc/nommu.c
@@ -45,7 +45,10 @@ static int nommu_region_show(struct seq_ @@ -45,7 +45,10 @@ static int nommu_region_show(struct seq_file *m, struct vm_region *region)
file = region->vm_file; file = region->vm_file;
if (file) { if (file) {
@ -38,11 +38,11 @@ Index: linux/fs/proc/nommu.c
dev = inode->i_sb->s_dev; dev = inode->i_sb->s_dev;
ino = inode->i_ino; ino = inode->i_ino;
} }
Index: linux/fs/proc/task_mmu.c diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
=================================================================== index 71aba44c4fa6..87cdce66a3f4 100644
--- linux.orig/fs/proc/task_mmu.c --- a/fs/proc/task_mmu.c
+++ linux/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c
@@ -309,7 +309,10 @@ show_map_vma(struct seq_file *m, struct @@ -309,7 +309,10 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma)
const char *name = NULL; const char *name = NULL;
if (file) { if (file) {
@ -54,7 +54,7 @@ Index: linux/fs/proc/task_mmu.c
dev = inode->i_sb->s_dev; dev = inode->i_sb->s_dev;
ino = inode->i_ino; ino = inode->i_ino;
pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT; pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT;
@@ -1766,7 +1769,7 @@ static int show_numa_map(struct seq_file @@ -1766,7 +1769,7 @@ static int show_numa_map(struct seq_file *m, void *v)
struct proc_maps_private *proc_priv = &numa_priv->proc_maps; struct proc_maps_private *proc_priv = &numa_priv->proc_maps;
struct vm_area_struct *vma = v; struct vm_area_struct *vma = v;
struct numa_maps *md = &numa_priv->md; struct numa_maps *md = &numa_priv->md;
@ -63,11 +63,11 @@ Index: linux/fs/proc/task_mmu.c
struct mm_struct *mm = vma->vm_mm; struct mm_struct *mm = vma->vm_mm;
struct mm_walk walk = { struct mm_walk walk = {
.hugetlb_entry = gather_hugetlb_stats, .hugetlb_entry = gather_hugetlb_stats,
Index: linux/fs/proc/task_nommu.c diff --git a/fs/proc/task_nommu.c b/fs/proc/task_nommu.c
=================================================================== index 5161894a6d62..b6d13cce45f3 100644
--- linux.orig/fs/proc/task_nommu.c --- a/fs/proc/task_nommu.c
+++ linux/fs/proc/task_nommu.c +++ b/fs/proc/task_nommu.c
@@ -155,7 +155,10 @@ static int nommu_vma_show(struct seq_fil @@ -155,7 +155,10 @@ static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma)
file = vma->vm_file; file = vma->vm_file;
if (file) { if (file) {
@ -79,11 +79,11 @@ Index: linux/fs/proc/task_nommu.c
dev = inode->i_sb->s_dev; dev = inode->i_sb->s_dev;
ino = inode->i_ino; ino = inode->i_ino;
pgoff = (loff_t)vma->vm_pgoff << PAGE_SHIFT; pgoff = (loff_t)vma->vm_pgoff << PAGE_SHIFT;
Index: linux/include/linux/mm.h diff --git a/include/linux/mm.h b/include/linux/mm.h
=================================================================== index bdec425c8e14..88cb95dc57dd 100644
--- linux.orig/include/linux/mm.h --- a/include/linux/mm.h
+++ linux/include/linux/mm.h +++ b/include/linux/mm.h
@@ -1453,6 +1453,28 @@ static inline void unmap_shared_mapping_ @@ -1453,6 +1453,28 @@ static inline void unmap_shared_mapping_range(struct address_space *mapping,
unmap_mapping_range(mapping, holebegin, holelen, 0); unmap_mapping_range(mapping, holebegin, holelen, 0);
} }
@ -112,10 +112,10 @@ Index: linux/include/linux/mm.h
extern int access_process_vm(struct task_struct *tsk, unsigned long addr, extern int access_process_vm(struct task_struct *tsk, unsigned long addr,
void *buf, int len, unsigned int gup_flags); void *buf, int len, unsigned int gup_flags);
extern int access_remote_vm(struct mm_struct *mm, unsigned long addr, extern int access_remote_vm(struct mm_struct *mm, unsigned long addr,
Index: linux/include/linux/mm_types.h diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
=================================================================== index 5ed8f6292a53..01229754077f 100644
--- linux.orig/include/linux/mm_types.h --- a/include/linux/mm_types.h
+++ linux/include/linux/mm_types.h +++ b/include/linux/mm_types.h
@@ -239,6 +239,7 @@ struct vm_region { @@ -239,6 +239,7 @@ struct vm_region {
unsigned long vm_top; /* region allocated to here */ unsigned long vm_top; /* region allocated to here */
unsigned long vm_pgoff; /* the offset in vm_file corresponding to vm_start */ unsigned long vm_pgoff; /* the offset in vm_file corresponding to vm_start */
@ -132,11 +132,11 @@ Index: linux/include/linux/mm_types.h
void * vm_private_data; /* was vm_pte (shared mem) */ void * vm_private_data; /* was vm_pte (shared mem) */
atomic_long_t swap_readahead_info; atomic_long_t swap_readahead_info;
Index: linux/kernel/fork.c diff --git a/kernel/fork.c b/kernel/fork.c
=================================================================== index 69874db3fba8..757620e64e7b 100644
--- linux.orig/kernel/fork.c --- a/kernel/fork.c
+++ linux/kernel/fork.c +++ b/kernel/fork.c
@@ -505,7 +505,7 @@ static __latent_entropy int dup_mmap(str @@ -505,7 +505,7 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm,
struct inode *inode = file_inode(file); struct inode *inode = file_inode(file);
struct address_space *mapping = file->f_mapping; struct address_space *mapping = file->f_mapping;
@ -145,11 +145,11 @@ Index: linux/kernel/fork.c
if (tmp->vm_flags & VM_DENYWRITE) if (tmp->vm_flags & VM_DENYWRITE)
atomic_dec(&inode->i_writecount); atomic_dec(&inode->i_writecount);
i_mmap_lock_write(mapping); i_mmap_lock_write(mapping);
Index: linux/mm/Makefile diff --git a/mm/Makefile b/mm/Makefile
=================================================================== index 26ef77a3883b..b2869af1ef08 100644
--- linux.orig/mm/Makefile --- a/mm/Makefile
+++ linux/mm/Makefile +++ b/mm/Makefile
@@ -39,7 +39,7 @@ obj-y := filemap.o mempool.o oom_kill. @@ -39,7 +39,7 @@ obj-y := filemap.o mempool.o oom_kill.o fadvise.o \
mm_init.o mmu_context.o percpu.o slab_common.o \ mm_init.o mmu_context.o percpu.o slab_common.o \
compaction.o vmacache.o \ compaction.o vmacache.o \
interval_tree.o list_lru.o workingset.o \ interval_tree.o list_lru.o workingset.o \
@ -158,11 +158,11 @@ Index: linux/mm/Makefile
obj-y += init-mm.o obj-y += init-mm.o
Index: linux/mm/filemap.c diff --git a/mm/filemap.c b/mm/filemap.c
=================================================================== index 287f3fa02e5e..f96b6dd07b0b 100644
--- linux.orig/mm/filemap.c --- a/mm/filemap.c
+++ linux/mm/filemap.c +++ b/mm/filemap.c
@@ -2722,7 +2722,7 @@ vm_fault_t filemap_page_mkwrite(struct v @@ -2722,7 +2722,7 @@ vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf)
vm_fault_t ret = VM_FAULT_LOCKED; vm_fault_t ret = VM_FAULT_LOCKED;
sb_start_pagefault(inode->i_sb); sb_start_pagefault(inode->i_sb);
@ -171,11 +171,11 @@ Index: linux/mm/filemap.c
lock_page(page); lock_page(page);
if (page->mapping != inode->i_mapping) { if (page->mapping != inode->i_mapping) {
unlock_page(page); unlock_page(page);
Index: linux/mm/mmap.c diff --git a/mm/mmap.c b/mm/mmap.c
=================================================================== index 1480880ff814..03ae15dfe614 100644
--- linux.orig/mm/mmap.c --- a/mm/mmap.c
+++ linux/mm/mmap.c +++ b/mm/mmap.c
@@ -181,7 +181,7 @@ static struct vm_area_struct *remove_vma @@ -181,7 +181,7 @@ static struct vm_area_struct *remove_vma(struct vm_area_struct *vma)
if (vma->vm_ops && vma->vm_ops->close) if (vma->vm_ops && vma->vm_ops->close)
vma->vm_ops->close(vma); vma->vm_ops->close(vma);
if (vma->vm_file) if (vma->vm_file)
@ -184,7 +184,7 @@ Index: linux/mm/mmap.c
mpol_put(vma_policy(vma)); mpol_put(vma_policy(vma));
vm_area_free(vma); vm_area_free(vma);
return next; return next;
@@ -906,7 +906,7 @@ again: @@ -906,7 +906,7 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start,
if (remove_next) { if (remove_next) {
if (file) { if (file) {
uprobe_munmap(next, next->vm_start, next->vm_end); uprobe_munmap(next, next->vm_start, next->vm_end);
@ -193,7 +193,7 @@ Index: linux/mm/mmap.c
} }
if (next->anon_vma) if (next->anon_vma)
anon_vma_merge(vma, next); anon_vma_merge(vma, next);
@@ -1822,8 +1822,8 @@ out: @@ -1822,8 +1822,8 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
return addr; return addr;
unmap_and_free_vma: unmap_and_free_vma:
@ -203,7 +203,7 @@ Index: linux/mm/mmap.c
/* Undo any partial mapping done by a device driver. */ /* Undo any partial mapping done by a device driver. */
unmap_region(mm, vma, prev, vma->vm_start, vma->vm_end); unmap_region(mm, vma, prev, vma->vm_start, vma->vm_end);
@@ -2645,7 +2645,7 @@ int __split_vma(struct mm_struct *mm, st @@ -2645,7 +2645,7 @@ int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
goto out_free_mpol; goto out_free_mpol;
if (new->vm_file) if (new->vm_file)
@ -212,7 +212,7 @@ Index: linux/mm/mmap.c
if (new->vm_ops && new->vm_ops->open) if (new->vm_ops && new->vm_ops->open)
new->vm_ops->open(new); new->vm_ops->open(new);
@@ -2664,7 +2664,7 @@ int __split_vma(struct mm_struct *mm, st @@ -2664,7 +2664,7 @@ int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
if (new->vm_ops && new->vm_ops->close) if (new->vm_ops && new->vm_ops->close)
new->vm_ops->close(new); new->vm_ops->close(new);
if (new->vm_file) if (new->vm_file)
@ -221,7 +221,7 @@ Index: linux/mm/mmap.c
unlink_anon_vmas(new); unlink_anon_vmas(new);
out_free_mpol: out_free_mpol:
mpol_put(vma_policy(new)); mpol_put(vma_policy(new));
@@ -2826,7 +2826,7 @@ SYSCALL_DEFINE5(remap_file_pages, unsign @@ -2826,7 +2826,7 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
struct vm_area_struct *vma; struct vm_area_struct *vma;
unsigned long populate = 0; unsigned long populate = 0;
unsigned long ret = -EINVAL; unsigned long ret = -EINVAL;
@ -230,7 +230,7 @@ Index: linux/mm/mmap.c
pr_warn_once("%s (%d) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.rst.\n", pr_warn_once("%s (%d) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.rst.\n",
current->comm, current->pid); current->comm, current->pid);
@@ -2901,10 +2901,27 @@ SYSCALL_DEFINE5(remap_file_pages, unsign @@ -2901,10 +2901,27 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
} }
} }
@ -259,7 +259,7 @@ Index: linux/mm/mmap.c
out: out:
up_write(&mm->mmap_sem); up_write(&mm->mmap_sem);
if (populate) if (populate)
@@ -3210,7 +3227,7 @@ struct vm_area_struct *copy_vma(struct v @@ -3210,7 +3227,7 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
if (anon_vma_clone(new_vma, vma)) if (anon_vma_clone(new_vma, vma))
goto out_free_mempol; goto out_free_mempol;
if (new_vma->vm_file) if (new_vma->vm_file)
@ -268,11 +268,11 @@ Index: linux/mm/mmap.c
if (new_vma->vm_ops && new_vma->vm_ops->open) if (new_vma->vm_ops && new_vma->vm_ops->open)
new_vma->vm_ops->open(new_vma); new_vma->vm_ops->open(new_vma);
vma_link(mm, new_vma, prev, rb_link, rb_parent); vma_link(mm, new_vma, prev, rb_link, rb_parent);
Index: linux/mm/nommu.c diff --git a/mm/nommu.c b/mm/nommu.c
=================================================================== index 1d63ecfc98c5..15eafddeb944 100644
--- linux.orig/mm/nommu.c --- a/mm/nommu.c
+++ linux/mm/nommu.c +++ b/mm/nommu.c
@@ -625,7 +625,7 @@ static void __put_nommu_region(struct vm @@ -625,7 +625,7 @@ static void __put_nommu_region(struct vm_region *region)
up_write(&nommu_region_sem); up_write(&nommu_region_sem);
if (region->vm_file) if (region->vm_file)
@ -281,7 +281,7 @@ Index: linux/mm/nommu.c
/* IO memory and memory shared directly out of the pagecache /* IO memory and memory shared directly out of the pagecache
* from ramfs/tmpfs mustn't be released here */ * from ramfs/tmpfs mustn't be released here */
@@ -763,7 +763,7 @@ static void delete_vma(struct mm_struct @@ -763,7 +763,7 @@ static void delete_vma(struct mm_struct *mm, struct vm_area_struct *vma)
if (vma->vm_ops && vma->vm_ops->close) if (vma->vm_ops && vma->vm_ops->close)
vma->vm_ops->close(vma); vma->vm_ops->close(vma);
if (vma->vm_file) if (vma->vm_file)
@ -299,7 +299,7 @@ Index: linux/mm/nommu.c
kmem_cache_free(vm_region_jar, region); kmem_cache_free(vm_region_jar, region);
region = pregion; region = pregion;
result = start; result = start;
@@ -1361,7 +1361,7 @@ error_just_free: @@ -1361,10 +1361,10 @@ unsigned long do_mmap(struct file *file,
up_write(&nommu_region_sem); up_write(&nommu_region_sem);
error: error:
if (region->vm_file) if (region->vm_file)
@ -307,11 +307,16 @@ Index: linux/mm/nommu.c
+ vmr_fput(region); + vmr_fput(region);
kmem_cache_free(vm_region_jar, region); kmem_cache_free(vm_region_jar, region);
if (vma->vm_file) if (vma->vm_file)
fput(vma->vm_file); - fput(vma->vm_file);
Index: linux/mm/prfile.c + vma_fput(vma);
=================================================================== vm_area_free(vma);
return ret;
diff --git a/mm/prfile.c b/mm/prfile.c
new file mode 100644
index 000000000000..024cdcfae1b1
--- /dev/null --- /dev/null
+++ linux/mm/prfile.c +++ b/mm/prfile.c
@@ -0,0 +1,86 @@ @@ -0,0 +1,86 @@
+// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0
+/* +/*
@ -321,7 +326,7 @@ Index: linux/mm/prfile.c
+ * + *
+ * See Documentation/filesystems/aufs/design/06mmap.txt + * See Documentation/filesystems/aufs/design/06mmap.txt
+ * + *
+ * Copyright (c) 2014-2018 Junjro R. Okajima + * Copyright (c) 2014-2019 Junjro R. Okajima
+ * Copyright (c) 2014 Ian Campbell + * Copyright (c) 2014 Ian Campbell
+ */ + */
+ +

View File

@ -1,19 +1,19 @@
From: J. R. Okajima <hooanon05@yahoo.co.jp> From: J. R. Okajima <hooanon05@yahoo.co.jp>
Date: Sat Sep 8 23:32:19 2018 +0900 Date: Tue Sep 3 14:14:09 2019 +0900
Subject: aufs4.x-rcN standalone patch Subject: aufs4.19.63+ standalone patch
Origin: https://github.com/sfjro/aufs4-standalone/tree/ecea3973efed5223878e489d212dc39fee4dabb6 Origin: https://github.com/sfjro/aufs4-standalone/tree/6c582cc629cbfb4fac5bfc7d20db128c7d201da6
Bug-Debian: https://bugs.debian.org/541828 Bug-Debian: https://bugs.debian.org/541828
Patch headers added by debian/patches/features/all/aufs4/gen-patch Patch headers added by debian/bin/genpatch-aufs
SPDX-License-Identifier: GPL-2.0 SPDX-License-Identifier: GPL-2.0
aufs4.x-rcN standalone patch aufs4.19.63+ standalone patch
Index: linux/fs/dcache.c diff --git a/fs/dcache.c b/fs/dcache.c
=================================================================== index 3bd53094ac3d..d6b2f7a994f4 100644
--- linux.orig/fs/dcache.c --- a/fs/dcache.c
+++ linux/fs/dcache.c +++ b/fs/dcache.c
@@ -1339,6 +1339,7 @@ rename_retry: @@ -1339,6 +1339,7 @@ void d_walk(struct dentry *parent, void *data,
seq = 1; seq = 1;
goto again; goto again;
} }
@ -21,7 +21,7 @@ Index: linux/fs/dcache.c
struct check_mount { struct check_mount {
struct vfsmount *mnt; struct vfsmount *mnt;
@@ -2835,6 +2836,7 @@ void d_exchange(struct dentry *dentry1, @@ -2835,6 +2836,7 @@ void d_exchange(struct dentry *dentry1, struct dentry *dentry2)
write_sequnlock(&rename_lock); write_sequnlock(&rename_lock);
} }
@ -29,11 +29,11 @@ Index: linux/fs/dcache.c
/** /**
* d_ancestor - search for an ancestor * d_ancestor - search for an ancestor
Index: linux/fs/exec.c diff --git a/fs/exec.c b/fs/exec.c
=================================================================== index 433b1257694a..504c56308700 100644
--- linux.orig/fs/exec.c --- a/fs/exec.c
+++ linux/fs/exec.c +++ b/fs/exec.c
@@ -109,6 +109,7 @@ bool path_noexec(const struct path *path @@ -109,6 +109,7 @@ bool path_noexec(const struct path *path)
return (path->mnt->mnt_flags & MNT_NOEXEC) || return (path->mnt->mnt_flags & MNT_NOEXEC) ||
(path->mnt->mnt_sb->s_iflags & SB_I_NOEXEC); (path->mnt->mnt_sb->s_iflags & SB_I_NOEXEC);
} }
@ -41,11 +41,11 @@ Index: linux/fs/exec.c
#ifdef CONFIG_USELIB #ifdef CONFIG_USELIB
/* /*
Index: linux/fs/fcntl.c diff --git a/fs/fcntl.c b/fs/fcntl.c
=================================================================== index c91b3e3c4580..77513097f04c 100644
--- linux.orig/fs/fcntl.c --- a/fs/fcntl.c
+++ linux/fs/fcntl.c +++ b/fs/fcntl.c
@@ -85,6 +85,7 @@ int setfl(int fd, struct file * filp, un @@ -85,6 +85,7 @@ int setfl(int fd, struct file * filp, unsigned long arg)
out: out:
return error; return error;
} }
@ -53,11 +53,11 @@ Index: linux/fs/fcntl.c
static void f_modown(struct file *filp, struct pid *pid, enum pid_type type, static void f_modown(struct file *filp, struct pid *pid, enum pid_type type,
int force) int force)
Index: linux/fs/file_table.c diff --git a/fs/file_table.c b/fs/file_table.c
=================================================================== index e49af4caf15d..569020fd1fb3 100644
--- linux.orig/fs/file_table.c --- a/fs/file_table.c
+++ linux/fs/file_table.c +++ b/fs/file_table.c
@@ -161,6 +161,7 @@ over: @@ -161,6 +161,7 @@ struct file *alloc_empty_file(int flags, const struct cred *cred)
} }
return ERR_PTR(-ENFILE); return ERR_PTR(-ENFILE);
} }
@ -81,11 +81,11 @@ Index: linux/fs/file_table.c
void __init files_init(void) void __init files_init(void)
{ {
Index: linux/fs/inode.c diff --git a/fs/inode.c b/fs/inode.c
=================================================================== index 43046d7223e4..36146c757aa2 100644
--- linux.orig/fs/inode.c --- a/fs/inode.c
+++ linux/fs/inode.c +++ b/fs/inode.c
@@ -1666,6 +1666,7 @@ int update_time(struct inode *inode, str @@ -1666,6 +1666,7 @@ int update_time(struct inode *inode, struct timespec64 *time, int flags)
return update_time(inode, time, flags); return update_time(inode, time, flags);
} }
@ -93,11 +93,11 @@ Index: linux/fs/inode.c
/** /**
* touch_atime - update the access time * touch_atime - update the access time
Index: linux/fs/namespace.c diff --git a/fs/namespace.c b/fs/namespace.c
=================================================================== index fbd7edd49a2f..d6eca814d9fc 100644
--- linux.orig/fs/namespace.c --- a/fs/namespace.c
+++ linux/fs/namespace.c +++ b/fs/namespace.c
@@ -437,6 +437,7 @@ void __mnt_drop_write(struct vfsmount *m @@ -437,6 +437,7 @@ void __mnt_drop_write(struct vfsmount *mnt)
mnt_dec_writers(real_mount(mnt)); mnt_dec_writers(real_mount(mnt));
preempt_enable(); preempt_enable();
} }
@ -105,7 +105,7 @@ Index: linux/fs/namespace.c
/** /**
* mnt_drop_write - give up write access to a mount * mnt_drop_write - give up write access to a mount
@@ -775,6 +776,7 @@ int is_current_mnt_ns(struct vfsmount *m @@ -775,6 +776,7 @@ int is_current_mnt_ns(struct vfsmount *mnt)
{ {
return check_mnt(real_mount(mnt)); return check_mnt(real_mount(mnt));
} }
@ -113,7 +113,7 @@ Index: linux/fs/namespace.c
/* /*
* vfsmount lock must be held for write * vfsmount lock must be held for write
@@ -1844,6 +1846,7 @@ int iterate_mounts(int (*f)(struct vfsmo @@ -1844,6 +1846,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
} }
return 0; return 0;
} }
@ -121,19 +121,11 @@ Index: linux/fs/namespace.c
static void cleanup_group_ids(struct mount *mnt, struct mount *end) static void cleanup_group_ids(struct mount *mnt, struct mount *end)
{ {
Index: linux/fs/notify/group.c diff --git a/fs/notify/group.c b/fs/notify/group.c
=================================================================== index c03b83662876..94d210ca384a 100644
--- linux.orig/fs/notify/group.c --- a/fs/notify/group.c
+++ linux/fs/notify/group.c +++ b/fs/notify/group.c
@@ -23,6 +23,7 @@ @@ -112,6 +112,7 @@ void fsnotify_get_group(struct fsnotify_group *group)
#include <linux/rculist.h>
#include <linux/wait.h>
#include <linux/memcontrol.h>
+#include <linux/module.h>
#include <linux/fsnotify_backend.h>
#include "fsnotify.h"
@@ -112,6 +113,7 @@ void fsnotify_get_group(struct fsnotify_
{ {
refcount_inc(&group->refcnt); refcount_inc(&group->refcnt);
} }
@ -141,7 +133,7 @@ Index: linux/fs/notify/group.c
/* /*
* Drop a reference to a group. Free it if it's through. * Drop a reference to a group. Free it if it's through.
@@ -121,6 +123,7 @@ void fsnotify_put_group(struct fsnotify_ @@ -121,6 +122,7 @@ void fsnotify_put_group(struct fsnotify_group *group)
if (refcount_dec_and_test(&group->refcnt)) if (refcount_dec_and_test(&group->refcnt))
fsnotify_final_destroy_group(group); fsnotify_final_destroy_group(group);
} }
@ -149,7 +141,7 @@ Index: linux/fs/notify/group.c
/* /*
* Create a new fsnotify_group and hold a reference for the group returned. * Create a new fsnotify_group and hold a reference for the group returned.
@@ -150,6 +153,7 @@ struct fsnotify_group *fsnotify_alloc_gr @@ -150,6 +152,7 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)
return group; return group;
} }
@ -157,11 +149,11 @@ Index: linux/fs/notify/group.c
int fsnotify_fasync(int fd, struct file *file, int on) int fsnotify_fasync(int fd, struct file *file, int on)
{ {
Index: linux/fs/notify/mark.c diff --git a/fs/notify/mark.c b/fs/notify/mark.c
=================================================================== index 09535f6423fc..e9401ec71fc7 100644
--- linux.orig/fs/notify/mark.c --- a/fs/notify/mark.c
+++ linux/fs/notify/mark.c +++ b/fs/notify/mark.c
@@ -285,6 +285,7 @@ void fsnotify_put_mark(struct fsnotify_m @@ -285,6 +285,7 @@ void fsnotify_put_mark(struct fsnotify_mark *mark)
queue_delayed_work(system_unbound_wq, &reaper_work, queue_delayed_work(system_unbound_wq, &reaper_work,
FSNOTIFY_REAPER_DELAY); FSNOTIFY_REAPER_DELAY);
} }
@ -169,7 +161,7 @@ Index: linux/fs/notify/mark.c
/* /*
* Get mark reference when we found the mark via lockless traversal of object * Get mark reference when we found the mark via lockless traversal of object
@@ -439,6 +440,7 @@ void fsnotify_destroy_mark(struct fsnoti @@ -439,6 +440,7 @@ void fsnotify_destroy_mark(struct fsnotify_mark *mark,
mutex_unlock(&group->mark_mutex); mutex_unlock(&group->mark_mutex);
fsnotify_free_mark(mark); fsnotify_free_mark(mark);
} }
@ -177,7 +169,7 @@ Index: linux/fs/notify/mark.c
/* /*
* Sorting function for lists of fsnotify marks. * Sorting function for lists of fsnotify marks.
@@ -654,6 +656,7 @@ int fsnotify_add_mark(struct fsnotify_ma @@ -654,6 +656,7 @@ int fsnotify_add_mark(struct fsnotify_mark *mark, fsnotify_connp_t *connp,
mutex_unlock(&group->mark_mutex); mutex_unlock(&group->mark_mutex);
return ret; return ret;
} }
@ -185,7 +177,7 @@ Index: linux/fs/notify/mark.c
/* /*
* Given a list of marks, find the mark associated with given group. If found * Given a list of marks, find the mark associated with given group. If found
@@ -777,6 +780,7 @@ void fsnotify_init_mark(struct fsnotify_ @@ -777,6 +780,7 @@ void fsnotify_init_mark(struct fsnotify_mark *mark,
fsnotify_get_group(group); fsnotify_get_group(group);
mark->group = group; mark->group = group;
} }
@ -193,11 +185,11 @@ Index: linux/fs/notify/mark.c
/* /*
* Destroy all marks in destroy_list, waits for SRCU period to finish before * Destroy all marks in destroy_list, waits for SRCU period to finish before
Index: linux/fs/open.c diff --git a/fs/open.c b/fs/open.c
=================================================================== index 878478745924..ab755f585f29 100644
--- linux.orig/fs/open.c --- a/fs/open.c
+++ linux/fs/open.c +++ b/fs/open.c
@@ -64,6 +64,7 @@ int do_truncate(struct dentry *dentry, l @@ -64,6 +64,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
inode_unlock(dentry->d_inode); inode_unlock(dentry->d_inode);
return ret; return ret;
} }
@ -205,11 +197,11 @@ Index: linux/fs/open.c
long vfs_truncate(const struct path *path, loff_t length) long vfs_truncate(const struct path *path, loff_t length)
{ {
Index: linux/fs/read_write.c diff --git a/fs/read_write.c b/fs/read_write.c
=================================================================== index c1335b4f19c0..6ed1f2ddcb03 100644
--- linux.orig/fs/read_write.c --- a/fs/read_write.c
+++ linux/fs/read_write.c +++ b/fs/read_write.c
@@ -459,6 +459,7 @@ ssize_t vfs_read(struct file *file, char @@ -459,6 +459,7 @@ ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
return ret; return ret;
} }
@ -225,7 +217,7 @@ Index: linux/fs/read_write.c
vfs_writef_t vfs_writef(struct file *file) vfs_writef_t vfs_writef(struct file *file)
{ {
@@ -510,6 +512,7 @@ vfs_writef_t vfs_writef(struct file *fil @@ -510,6 +512,7 @@ vfs_writef_t vfs_writef(struct file *file)
return new_sync_write; return new_sync_write;
return ERR_PTR(-ENOSYS); return ERR_PTR(-ENOSYS);
} }
@ -233,7 +225,7 @@ Index: linux/fs/read_write.c
ssize_t __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos) ssize_t __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos)
{ {
@@ -579,6 +582,7 @@ ssize_t vfs_write(struct file *file, con @@ -579,6 +582,7 @@ ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_
return ret; return ret;
} }
@ -241,11 +233,11 @@ Index: linux/fs/read_write.c
static inline loff_t file_pos_read(struct file *file) static inline loff_t file_pos_read(struct file *file)
{ {
Index: linux/fs/splice.c diff --git a/fs/splice.c b/fs/splice.c
=================================================================== index b2c2d320565b..8250f2366329 100644
--- linux.orig/fs/splice.c --- a/fs/splice.c
+++ linux/fs/splice.c +++ b/fs/splice.c
@@ -851,6 +851,7 @@ long do_splice_from(struct pipe_inode_in @@ -851,6 +851,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
return splice_write(pipe, out, ppos, len, flags); return splice_write(pipe, out, ppos, len, flags);
} }
@ -253,7 +245,7 @@ Index: linux/fs/splice.c
/* /*
* Attempt to initiate a splice from a file to a pipe. * Attempt to initiate a splice from a file to a pipe.
@@ -880,6 +881,7 @@ long do_splice_to(struct file *in, loff_ @@ -880,6 +881,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
return splice_read(in, ppos, pipe, len, flags); return splice_read(in, ppos, pipe, len, flags);
} }
@ -261,11 +253,11 @@ Index: linux/fs/splice.c
/** /**
* splice_direct_to_actor - splices data directly between two non-pipes * splice_direct_to_actor - splices data directly between two non-pipes
Index: linux/fs/sync.c diff --git a/fs/sync.c b/fs/sync.c
=================================================================== index 28607828e96f..ffd7ea43831e 100644
--- linux.orig/fs/sync.c --- a/fs/sync.c
+++ linux/fs/sync.c +++ b/fs/sync.c
@@ -39,6 +39,7 @@ int __sync_filesystem(struct super_block @@ -39,6 +39,7 @@ int __sync_filesystem(struct super_block *sb, int wait)
sb->s_op->sync_fs(sb, wait); sb->s_op->sync_fs(sb, wait);
return __sync_blockdev(sb->s_bdev, wait); return __sync_blockdev(sb->s_bdev, wait);
} }
@ -273,11 +265,11 @@ Index: linux/fs/sync.c
/* /*
* Write out and wait upon all dirty data associated with this * Write out and wait upon all dirty data associated with this
Index: linux/fs/xattr.c diff --git a/fs/xattr.c b/fs/xattr.c
=================================================================== index 0d6a6a4af861..7ce4701b7289 100644
--- linux.orig/fs/xattr.c --- a/fs/xattr.c
+++ linux/fs/xattr.c +++ b/fs/xattr.c
@@ -295,6 +295,7 @@ vfs_getxattr_alloc(struct dentry *dentry @@ -295,6 +295,7 @@ vfs_getxattr_alloc(struct dentry *dentry, const char *name, char **xattr_value,
*xattr_value = value; *xattr_value = value;
return error; return error;
} }
@ -285,11 +277,11 @@ Index: linux/fs/xattr.c
ssize_t ssize_t
__vfs_getxattr(struct dentry *dentry, struct inode *inode, const char *name, __vfs_getxattr(struct dentry *dentry, struct inode *inode, const char *name,
Index: linux/kernel/locking/lockdep.c diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
=================================================================== index d0c9931e6531..0e5d9706723c 100644
--- linux.orig/kernel/locking/lockdep.c --- a/kernel/locking/lockdep.c
+++ linux/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c
@@ -151,6 +151,7 @@ inline struct lock_class *lockdep_hlock_ @@ -151,6 +151,7 @@ inline struct lock_class *lockdep_hlock_class(struct held_lock *hlock)
} }
return lock_classes + hlock->class_idx - 1; return lock_classes + hlock->class_idx - 1;
} }
@ -297,56 +289,29 @@ Index: linux/kernel/locking/lockdep.c
#define hlock_class(hlock) lockdep_hlock_class(hlock) #define hlock_class(hlock) lockdep_hlock_class(hlock)
#ifdef CONFIG_LOCK_STAT #ifdef CONFIG_LOCK_STAT
Index: linux/kernel/task_work.c diff --git a/kernel/task_work.c b/kernel/task_work.c
=================================================================== index 0fef395662a6..83fb1ecfc33d 100644
--- linux.orig/kernel/task_work.c --- a/kernel/task_work.c
+++ linux/kernel/task_work.c +++ b/kernel/task_work.c
@@ -116,3 +116,4 @@ void task_work_run(void) @@ -116,3 +116,4 @@ void task_work_run(void)
} while (work); } while (work);
} }
} }
+EXPORT_SYMBOL_GPL(task_work_run); +EXPORT_SYMBOL_GPL(task_work_run);
Index: linux/security/commoncap.c diff --git a/security/device_cgroup.c b/security/device_cgroup.c
=================================================================== index dc28914fa72e..c2ddfea2b280 100644
--- linux.orig/security/commoncap.c --- a/security/device_cgroup.c
+++ linux/security/commoncap.c +++ b/security/device_cgroup.c
@@ -1336,12 +1336,14 @@ int cap_mmap_addr(unsigned long addr) @@ -824,3 +824,4 @@ int __devcgroup_check_permission(short type, u32 major, u32 minor,
}
return ret;
}
+EXPORT_SYMBOL_GPL(cap_mmap_addr);
int cap_mmap_file(struct file *file, unsigned long reqprot,
unsigned long prot, unsigned long flags)
{
return 0;
}
+EXPORT_SYMBOL_GPL(cap_mmap_file);
#ifdef CONFIG_SECURITY
Index: linux/security/device_cgroup.c
===================================================================
--- linux.orig/security/device_cgroup.c
+++ linux/security/device_cgroup.c
@@ -8,6 +8,7 @@
#include <linux/device_cgroup.h>
#include <linux/cgroup.h>
#include <linux/ctype.h>
+#include <linux/export.h>
#include <linux/list.h>
#include <linux/uaccess.h>
#include <linux/seq_file.h>
@@ -824,3 +825,4 @@ int __devcgroup_check_permission(short t
return 0; return 0;
} }
+EXPORT_SYMBOL_GPL(__devcgroup_check_permission); +EXPORT_SYMBOL_GPL(__devcgroup_check_permission);
Index: linux/security/security.c diff --git a/security/security.c b/security/security.c
=================================================================== index 5ce2448f3a45..3997af3462bc 100644
--- linux.orig/security/security.c --- a/security/security.c
+++ linux/security/security.c +++ b/security/security.c
@@ -546,6 +546,7 @@ int security_path_rmdir(const struct pat @@ -542,6 +542,7 @@ int security_path_rmdir(const struct path *dir, struct dentry *dentry)
return 0; return 0;
return call_int_hook(path_rmdir, 0, dir, dentry); return call_int_hook(path_rmdir, 0, dir, dentry);
} }
@ -354,7 +319,7 @@ Index: linux/security/security.c
int security_path_unlink(const struct path *dir, struct dentry *dentry) int security_path_unlink(const struct path *dir, struct dentry *dentry)
{ {
@@ -562,6 +563,7 @@ int security_path_symlink(const struct p @@ -558,6 +559,7 @@ int security_path_symlink(const struct path *dir, struct dentry *dentry,
return 0; return 0;
return call_int_hook(path_symlink, 0, dir, dentry, old_name); return call_int_hook(path_symlink, 0, dir, dentry, old_name);
} }
@ -362,7 +327,7 @@ Index: linux/security/security.c
int security_path_link(struct dentry *old_dentry, const struct path *new_dir, int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
struct dentry *new_dentry) struct dentry *new_dentry)
@@ -570,6 +572,7 @@ int security_path_link(struct dentry *ol @@ -566,6 +568,7 @@ int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
return 0; return 0;
return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry); return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry);
} }
@ -370,7 +335,7 @@ Index: linux/security/security.c
int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
const struct path *new_dir, struct dentry *new_dentry, const struct path *new_dir, struct dentry *new_dentry,
@@ -597,6 +600,7 @@ int security_path_truncate(const struct @@ -593,6 +596,7 @@ int security_path_truncate(const struct path *path)
return 0; return 0;
return call_int_hook(path_truncate, 0, path); return call_int_hook(path_truncate, 0, path);
} }
@ -378,7 +343,7 @@ Index: linux/security/security.c
int security_path_chmod(const struct path *path, umode_t mode) int security_path_chmod(const struct path *path, umode_t mode)
{ {
@@ -604,6 +608,7 @@ int security_path_chmod(const struct pat @@ -600,6 +604,7 @@ int security_path_chmod(const struct path *path, umode_t mode)
return 0; return 0;
return call_int_hook(path_chmod, 0, path, mode); return call_int_hook(path_chmod, 0, path, mode);
} }
@ -386,7 +351,7 @@ Index: linux/security/security.c
int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid)
{ {
@@ -611,6 +616,7 @@ int security_path_chown(const struct pat @@ -607,6 +612,7 @@ int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid)
return 0; return 0;
return call_int_hook(path_chown, 0, path, uid, gid); return call_int_hook(path_chown, 0, path, uid, gid);
} }
@ -394,15 +359,7 @@ Index: linux/security/security.c
int security_path_chroot(const struct path *path) int security_path_chroot(const struct path *path)
{ {
@@ -696,6 +702,7 @@ int security_inode_readlink(struct dentr @@ -707,6 +713,7 @@ int security_inode_permission(struct inode *inode, int mask)
return 0;
return call_int_hook(inode_readlink, 0, dentry);
}
+EXPORT_SYMBOL_GPL(security_inode_readlink);
int security_inode_follow_link(struct dentry *dentry, struct inode *inode,
bool rcu)
@@ -711,6 +718,7 @@ int security_inode_permission(struct ino
return 0; return 0;
return call_int_hook(inode_permission, 0, inode, mask); return call_int_hook(inode_permission, 0, inode, mask);
} }
@ -410,7 +367,7 @@ Index: linux/security/security.c
int security_inode_setattr(struct dentry *dentry, struct iattr *attr) int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
{ {
@@ -882,6 +890,7 @@ int security_file_permission(struct file @@ -878,6 +885,7 @@ int security_file_permission(struct file *file, int mask)
return fsnotify_perm(file, mask); return fsnotify_perm(file, mask);
} }
@ -418,7 +375,7 @@ Index: linux/security/security.c
int security_file_alloc(struct file *file) int security_file_alloc(struct file *file)
{ {
@@ -941,6 +950,7 @@ int security_mmap_file(struct file *file @@ -937,6 +945,7 @@ int security_mmap_file(struct file *file, unsigned long prot,
return ret; return ret;
return ima_file_mmap(file, prot); return ima_file_mmap(file, prot);
} }