Skip to content
This repository was archived by the owner on Nov 29, 2024. It is now read-only.

Commit 169ea3a

Browse files
committed
linux-next 6.2.8, re-added, updated aufs patches
sqlite 3.41.2 zfs-kmod-next fails to build, latest 6.2.8 added GPL license changes, see openzfs/zfs#14555
1 parent d94dc50 commit 169ea3a

14 files changed

+428
-394
lines changed

linux-next/PKGBUILD

+16-16
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _kernelname=${pkgname#linux}
55

66
_basekernel=6.2
77
_srcname=linux-6.2
8-
pkgver=6.2.7
8+
pkgver=6.2.8
99
pkgrel=1
1010
arch=('x86_64')
1111
url="https://www.kernel.org/"
@@ -34,17 +34,17 @@ source=("https://www.kernel.org/pub/linux/kernel/v6.x/${_srcname}.tar.xz"
3434
'dracut-next-install'
3535
"https://github.com/torvalds/linux/commit/e16c4790de39dc861b749674c2a9319507f6f64f.diff")
3636
md5sums=('787862593d7bf354cf1a5c37e21fc147'
37-
'cc007d4bc3599bde532b25501b31fc0a'
37+
'3b8e6985ec74fb921d69ee67d0b5f41d'
3838
'390b5fcb3f35b71c0a5d5a5344e54be1'
39-
'689feec39ada24e4ab8b2c0e1bde6c6c'
40-
'c1e121db0cec455bd931be8788bc4413'
41-
'9ec72445556860313d706663257692ed'
42-
'5d390ada22f22b3bd8858630ff6be766'
43-
'0efa9266cdfaa82b589c1af320a4c55b'
44-
'4c0ee7ba416417df880551ce487c3f64'
39+
'014ecaa849b47279e945aac979948ab5'
40+
'358803f408779e5ff435ed2f1564e508'
41+
'2274c0327e1b0dd90d0e295fb3cb8da6'
42+
'5d4404e82acc47af7da628a4fc8e23b5'
43+
'e966cde5b038085993552fba75282423'
44+
'e8720168edf51af0846cdf290fc38b21'
4545
'180e55a128db2641e04374ce07d131a7'
46-
'27043cffc55273c647d5441a16127cc7'
47-
'6c6915bf242ca26e22caf051470e6366'
46+
'20bda6619c2e00757b35660ef6d9ac5e'
47+
'8a7600a501df66549078c7c35d70dffb'
4848
'8c52e6d232b461446b7363e86522a720'
4949
'e19be83ca72175a29b36d8ab08105050'
5050
'fc871b37f1cd4f12ac7b0bab74f8aa5f'
@@ -61,11 +61,11 @@ build() {
6161
# http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
6262

6363
#aufs patches for Live:
64-
#patch -p1 -i "${srcdir}/aufs6.patch"
65-
#patch -p1 -i "${srcdir}/aufs6-base.patch"
66-
#patch -p1 -i "${srcdir}/aufs6-kbuild.patch"
64+
patch -p1 -i "${srcdir}/aufs6.patch"
65+
patch -p1 -i "${srcdir}/aufs6-base.patch"
66+
patch -p1 -i "${srcdir}/aufs6-kbuild.patch"
6767
###patch -p1 -i "${srcdir}/aufs6-loopback.patch"
68-
#patch -p1 -i "${srcdir}/aufs6-mmap.patch"
68+
patch -p1 -i "${srcdir}/aufs6-mmap.patch"
6969
###patch -p1 -i "${srcdir}/aufs6-standalone.patch"
7070
###patch -p1 -i "${srcdir}/tmpfs-idr.patch"
7171
###patch -p1 -i "${srcdir}/vfs-ino.patch"
@@ -75,7 +75,7 @@ build() {
7575

7676
cat "${srcdir}/config" > ./.config
7777

78-
#cat "${srcdir}/config.aufs" >> ./.config
78+
cat "${srcdir}/config.aufs" >> ./.config
7979

8080
if [ "${_kernelname}" != "" ]; then
8181
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
@@ -243,7 +243,7 @@ package_linux-next-headers() {
243243
cp fs/xfs/libxfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/libxfs/xfs_sb.h"
244244

245245
#aufs6-util need
246-
##sed -i "s:__user::g" "${pkgdir}/usr/src/linux-${_kernver}/include/uapi/linux/aufs_type.h"
246+
sed -i "s:__user::g" "${pkgdir}/usr/src/linux-${_kernver}/include/uapi/linux/aufs_type.h"
247247

248248
# copy in Kconfig files
249249
for i in `find . -name "Kconfig*"`; do

linux-next/aufs6-base.patch

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
SPDX-License-Identifier: GPL-2.0
2-
aufs6.1 base patch
2+
aufs6.2 base patch
33

44
diff --git a/MAINTAINERS b/MAINTAINERS
5-
index 886d3f69ee64..5d2d385c2f0f 100644
5+
index 135d93368d36..7d3230ef47ec 100644
66
--- a/MAINTAINERS
77
+++ b/MAINTAINERS
8-
@@ -3455,6 +3455,19 @@ F: include/uapi/linux/audit.h
8+
@@ -3526,6 +3526,19 @@ F: include/uapi/linux/audit.h
99
F: kernel/audit*
1010
F: lib/*audit.c
1111

@@ -26,7 +26,7 @@ index 886d3f69ee64..5d2d385c2f0f 100644
2626
M: Miguel Ojeda <[email protected]>
2727
S: Maintained
2828
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
29-
index ad92192c7d61..8ca56da3ca69 100644
29+
index 1518a6423279..7a9928c6db9d 100644
3030
--- a/drivers/block/loop.c
3131
+++ b/drivers/block/loop.c
3232
@@ -645,6 +645,24 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
@@ -90,10 +90,10 @@ index 146c9ab0cd4b..c980a0524118 100644
9090
return error;
9191

9292
diff --git a/fs/namespace.c b/fs/namespace.c
93-
index df137ba19d37..faae7f8644ac 100644
93+
index ab467ee58341..8cd34f760f63 100644
9494
--- a/fs/namespace.c
9595
+++ b/fs/namespace.c
96-
@@ -852,6 +852,12 @@ static inline int check_mnt(struct mount *mnt)
96+
@@ -963,6 +963,12 @@ static inline int check_mnt(struct mount *mnt)
9797
return mnt->mnt_ns == current->nsproxy->mnt_ns;
9898
}
9999

@@ -107,7 +107,7 @@ index df137ba19d37..faae7f8644ac 100644
107107
* vfsmount lock must be held for write
108108
*/
109109
diff --git a/fs/splice.c b/fs/splice.c
110-
index 0878b852b355..d83f9e5cddbc 100644
110+
index 5969b7a1d353..21db9b057d60 100644
111111
--- a/fs/splice.c
112112
+++ b/fs/splice.c
113113
@@ -756,8 +756,8 @@ static int warn_unsupported(struct file *file, const char *op)
@@ -135,18 +135,18 @@ index 0878b852b355..d83f9e5cddbc 100644
135135
unsigned int p_space;
136136
int ret;
137137
diff --git a/include/linux/fs.h b/include/linux/fs.h
138-
index 59ae95ddb679..5d296cc3bff8 100644
138+
index c1769a2c5d70..ec560e8704a4 100644
139139
--- a/include/linux/fs.h
140140
+++ b/include/linux/fs.h
141-
@@ -1364,6 +1364,7 @@ extern void fasync_free(struct fasync_struct *);
141+
@@ -1386,6 +1386,7 @@ extern void fasync_free(struct fasync_struct *);
142142
/* can be called from interrupts */
143143
extern void kill_fasync(struct fasync_struct **, int, int);
144144

145145
+extern int setfl(int fd, struct file *filp, unsigned long arg);
146146
extern void __f_setown(struct file *filp, struct pid *, enum pid_type, int force);
147147
extern int f_setown(struct file *filp, unsigned long arg, int force);
148148
extern void f_delown(struct file *filp);
149-
@@ -2125,6 +2126,7 @@ struct file_operations {
149+
@@ -2113,6 +2114,7 @@ struct file_operations {
150150
ssize_t (*sendpage) (struct file *, struct page *, int, size_t, loff_t *, int);
151151
unsigned long (*get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long);
152152
int (*check_flags)(int);

linux-next/aufs6-kbuild.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SPDX-License-Identifier: GPL-2.0
2-
aufs6.1 kbuild patch
2+
aufs6.2 kbuild patch
33

44
diff --git a/fs/Kconfig b/fs/Kconfig
55
index 2685a4d0d353..a2df3d4bb3aa 100644

linux-next/aufs6-loopback.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
SPDX-License-Identifier: GPL-2.0
2-
aufs6.1 loopback patch
2+
aufs6.2 loopback patch
33

44
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
5-
index 8ca56da3ca69..9ac6f67edf09 100644
5+
index 7a9928c6db9d..0bac486deea2 100644
66
--- a/drivers/block/loop.c
77
+++ b/drivers/block/loop.c
88
@@ -54,7 +54,7 @@ struct loop_device {
@@ -224,10 +224,10 @@ index 81922d4faf54..c8a62c267d72 100644
224224

225225
/* ---------------------------------------------------------------------- */
226226
diff --git a/include/linux/fs.h b/include/linux/fs.h
227-
index 5d296cc3bff8..216e56f6c7c6 100644
227+
index ec560e8704a4..fc6e4d469419 100644
228228
--- a/include/linux/fs.h
229229
+++ b/include/linux/fs.h
230-
@@ -2265,6 +2265,10 @@ struct super_operations {
230+
@@ -2255,6 +2255,10 @@ struct super_operations {
231231
struct shrink_control *);
232232
long (*free_cached_objects)(struct super_block *,
233233
struct shrink_control *);

linux-next/aufs6-mmap.patch

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SPDX-License-Identifier: GPL-2.0
2-
aufs6.1 mmap patch
2+
aufs6.2 mmap patch
33

44
diff --git a/fs/proc/base.c b/fs/proc/base.c
55
index 9e479d7d202b..986c2ae12f8b 100644
@@ -31,10 +31,10 @@ index 4d3493579458..42edd9a42c78 100644
3131
ino = inode->i_ino;
3232
}
3333
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
34-
index 8a74cdcc9af0..c05071b53f5b 100644
34+
index af1c49ae11b1..cd6a4e461763 100644
3535
--- a/fs/proc/task_mmu.c
3636
+++ b/fs/proc/task_mmu.c
37-
@@ -284,7 +284,10 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma)
37+
@@ -285,7 +285,10 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma)
3838
const char *name = NULL;
3939

4040
if (file) {
@@ -46,7 +46,7 @@ index 8a74cdcc9af0..c05071b53f5b 100644
4646
dev = inode->i_sb->s_dev;
4747
ino = inode->i_ino;
4848
pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT;
49-
@@ -1934,7 +1937,7 @@ static int show_numa_map(struct seq_file *m, void *v)
49+
@@ -1940,7 +1943,7 @@ static int show_numa_map(struct seq_file *m, void *v)
5050
struct proc_maps_private *proc_priv = &numa_priv->proc_maps;
5151
struct vm_area_struct *vma = v;
5252
struct numa_maps *md = &numa_priv->md;
@@ -72,14 +72,14 @@ index 2fd06f52b6a4..b01030da424f 100644
7272
ino = inode->i_ino;
7373
pgoff = (loff_t)vma->vm_pgoff << PAGE_SHIFT;
7474
diff --git a/include/linux/mm.h b/include/linux/mm.h
75-
index 974ccca609d2..f5f4fc5e0565 100644
75+
index f13f20258ce9..25f4878a0835 100644
7676
--- a/include/linux/mm.h
7777
+++ b/include/linux/mm.h
78-
@@ -1954,6 +1954,43 @@ static inline void unmap_shared_mapping_range(struct address_space *mapping,
78+
@@ -2065,6 +2065,43 @@ static inline void unmap_shared_mapping_range(struct address_space *mapping,
7979
unmap_mapping_range(mapping, holebegin, holelen, 0);
8080
}
8181

82-
+#if IS_ENABLED(CONFIG_AUFS_FS)
82+
+#if 1 /* IS_ENABLED(CONFIG_AUFS_FS) */
8383
+extern void vma_do_file_update_time(struct vm_area_struct *, const char[], int);
8484
+extern struct file *vma_do_pr_or_file(struct vm_area_struct *, const char[],
8585
+ int);
@@ -120,34 +120,34 @@ index 974ccca609d2..f5f4fc5e0565 100644
120120
void *buf, int len, unsigned int gup_flags);
121121
extern int access_remote_vm(struct mm_struct *mm, unsigned long addr,
122122
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
123-
index 500e536796ca..ad766e2110ca 100644
123+
index 9757067c3053..b6a0f30cd722 100644
124124
--- a/include/linux/mm_types.h
125125
+++ b/include/linux/mm_types.h
126-
@@ -413,6 +413,9 @@ struct vm_region {
126+
@@ -504,6 +504,9 @@ struct vm_region {
127127
unsigned long vm_top; /* region allocated to here */
128128
unsigned long vm_pgoff; /* the offset in vm_file corresponding to vm_start */
129129
struct file *vm_file; /* the backing file or NULL */
130-
+#if IS_ENABLED(CONFIG_AUFS_FS)
130+
+#if 1 /* IS_ENABLED(CONFIG_AUFS_FS) */
131131
+ struct file *vm_prfile; /* the virtual backing file or NULL */
132132
+#endif
133133

134134
int vm_usage; /* region usage count (access under nommu_region_sem) */
135135
bool vm_icache_flushed : 1; /* true if the icache has been flushed for
136-
@@ -494,6 +497,9 @@ struct vm_area_struct {
136+
@@ -575,6 +578,9 @@ struct vm_area_struct {
137137
unsigned long vm_pgoff; /* Offset (within vm_file) in PAGE_SIZE
138138
units */
139139
struct file * vm_file; /* File we map to (can be NULL). */
140-
+#if IS_ENABLED(CONFIG_AUFS_FS)
140+
+#if 1 /* IS_ENABLED(CONFIG_AUFS_FS) */
141141
+ struct file *vm_prfile; /* shadow of vm_file */
142142
+#endif
143143
void * vm_private_data; /* was vm_pte (shared mem) */
144144

145-
#ifdef CONFIG_SWAP
145+
#ifdef CONFIG_ANON_VMA_NAME
146146
diff --git a/kernel/fork.c b/kernel/fork.c
147-
index 08969f5aa38d..61871700033a 100644
147+
index 9f7fe3541897..f9e44ca88a7d 100644
148148
--- a/kernel/fork.c
149149
+++ b/kernel/fork.c
150-
@@ -661,7 +661,7 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm,
150+
@@ -664,7 +664,7 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm,
151151
if (file) {
152152
struct address_space *mapping = file->f_mapping;
153153

@@ -164,12 +164,12 @@ index 8e105e5b3e29..c218d042dbce 100644
164164
obj-$(CONFIG_HAVE_BOOTMEM_INFO_NODE) += bootmem_info.o
165165
obj-$(CONFIG_GENERIC_IOREMAP) += ioremap.o
166166
obj-$(CONFIG_SHRINKER_DEBUG) += shrinker_debug.o
167-
+obj-$(CONFIG_AUFS_FS:m=y) += prfile.o
167+
+obj-y += prfile.o
168168
diff --git a/mm/filemap.c b/mm/filemap.c
169-
index 08341616ae7a..410ca60fbf39 100644
169+
index 0e20a8d6dd93..ba1b238d928a 100644
170170
--- a/mm/filemap.c
171171
+++ b/mm/filemap.c
172-
@@ -3418,7 +3418,7 @@ vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf)
172+
@@ -3438,7 +3438,7 @@ vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf)
173173
vm_fault_t ret = VM_FAULT_LOCKED;
174174

175175
sb_start_pagefault(mapping->host->i_sb);
@@ -179,7 +179,7 @@ index 08341616ae7a..410ca60fbf39 100644
179179
if (folio->mapping != mapping) {
180180
folio_unlock(folio);
181181
diff --git a/mm/mmap.c b/mm/mmap.c
182-
index 54abd46e6007..de942692ac82 100644
182+
index 425a9349e610..004eb9dbd99a 100644
183183
--- a/mm/mmap.c
184184
+++ b/mm/mmap.c
185185
@@ -139,7 +139,7 @@ static void remove_vma(struct vm_area_struct *vma)
@@ -209,7 +209,7 @@ index 54abd46e6007..de942692ac82 100644
209209
}
210210
if (next->anon_vma)
211211
anon_vma_merge(vma, next);
212-
@@ -2224,7 +2224,7 @@ int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
212+
@@ -2228,7 +2228,7 @@ int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
213213
goto out_free_mpol;
214214

215215
if (new->vm_file)
@@ -218,7 +218,7 @@ index 54abd46e6007..de942692ac82 100644
218218

219219
if (new->vm_ops && new->vm_ops->open)
220220
new->vm_ops->open(new);
221-
@@ -2246,7 +2246,7 @@ int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
221+
@@ -2250,7 +2250,7 @@ int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
222222
if (new->vm_ops && new->vm_ops->close)
223223
new->vm_ops->close(new);
224224
if (new->vm_file)
@@ -227,7 +227,7 @@ index 54abd46e6007..de942692ac82 100644
227227
unlink_anon_vmas(new);
228228
out_free_mpol:
229229
mpol_put(vma_policy(new));
230-
@@ -2746,7 +2746,7 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
230+
@@ -2750,7 +2750,7 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
231231
if (vma->vm_ops && vma->vm_ops->close)
232232
vma->vm_ops->close(vma);
233233
unmap_and_free_vma:
@@ -236,21 +236,21 @@ index 54abd46e6007..de942692ac82 100644
236236
vma->vm_file = NULL;
237237

238238
/* Undo any partial mapping done by a device driver. */
239-
@@ -2813,6 +2813,9 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
239+
@@ -2817,6 +2817,9 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
240240
unsigned long populate = 0;
241241
unsigned long ret = -EINVAL;
242242
struct file *file;
243-
+#if IS_ENABLED(CONFIG_AUFS_FS)
243+
+#if 1 /* IS_ENABLED(CONFIG_AUFS_FS) */
244244
+ struct file *prfile;
245245
+#endif
246246

247247
pr_warn_once("%s (%d) uses deprecated remap_file_pages() syscall. See Documentation/mm/remap_file_pages.rst.\n",
248248
current->comm, current->pid);
249-
@@ -2871,10 +2874,34 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
249+
@@ -2875,10 +2878,34 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
250250
if (vma->vm_flags & VM_LOCKED)
251251
flags |= MAP_LOCKED;
252252

253-
+#if IS_ENABLED(CONFIG_AUFS_FS)
253+
+#if 1 /* IS_ENABLED(CONFIG_AUFS_FS) */
254254
+ vma_get_file(vma);
255255
+ file = vma->vm_file;
256256
+ prfile = vma->vm_prfile;
@@ -281,7 +281,7 @@ index 54abd46e6007..de942692ac82 100644
281281
out:
282282
mmap_write_unlock(mm);
283283
if (populate)
284-
@@ -3222,7 +3249,7 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
284+
@@ -3226,7 +3253,7 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
285285
if (anon_vma_clone(new_vma, vma))
286286
goto out_free_mempol;
287287
if (new_vma->vm_file)
@@ -291,7 +291,7 @@ index 54abd46e6007..de942692ac82 100644
291291
new_vma->vm_ops->open(new_vma);
292292
if (vma_link(mm, new_vma))
293293
diff --git a/mm/nommu.c b/mm/nommu.c
294-
index 214c70e1d059..dccbb939d2a9 100644
294+
index 5b83938ecb67..59d483b9c3d3 100644
295295
--- a/mm/nommu.c
296296
+++ b/mm/nommu.c
297297
@@ -523,7 +523,7 @@ static void __put_nommu_region(struct vm_region *region)
@@ -321,9 +321,9 @@ index 214c70e1d059..dccbb939d2a9 100644
321321
kmem_cache_free(vm_region_jar, region);
322322
region = pregion;
323323
result = start;
324-
@@ -1241,10 +1241,10 @@ unsigned long do_mmap(struct file *file,
325-
up_write(&nommu_region_sem);
324+
@@ -1242,10 +1242,10 @@ unsigned long do_mmap(struct file *file,
326325
error:
326+
mas_destroy(&mas);
327327
if (region->vm_file)
328328
- fput(region->vm_file);
329329
+ vmr_fput(region);

0 commit comments

Comments
 (0)