refresh patches
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
From b492213c96ded86e7800b320706ad15bd31c7c1b Mon Sep 17 00:00:00 2001
|
||||
From ae8cebfd2446a0564c849adcd771ce538855b6b2 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Brauner <christian@brauner.io>
|
||||
Date: Wed, 16 Jan 2019 23:13:25 +0100
|
||||
Subject: [PATCH 1/4] binder: turn into module
|
||||
Subject: binder: turn into module
|
||||
|
||||
The Android binder driver needs to become a module for the sake of shipping
|
||||
Anbox. To do this we need to export the following functions since binder is
|
||||
@@ -29,6 +29,7 @@ Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
|
||||
[ arighi: zap_page_range() has been dropped, export zap_page_range_single() in 6.3 ]
|
||||
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
|
||||
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
---
|
||||
|
||||
--- a/drivers/android/Kconfig
|
||||
+++ b/drivers/android/Kconfig
|
||||
@@ -45,7 +46,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
Binderfs is a pseudo-filesystem for the Android Binder IPC driver
|
||||
--- a/drivers/android/binder.c
|
||||
+++ b/drivers/android/binder.c
|
||||
@@ -7027,9 +7027,20 @@ err_alloc_device_names_failed:
|
||||
@@ -7031,9 +7031,20 @@ err_alloc_device_names_failed:
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -79,7 +80,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
#include <linux/rbtree.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/mm.h>
|
||||
@@ -111,7 +112,7 @@ struct binder_alloc {
|
||||
@@ -120,7 +121,7 @@ struct binder_alloc {
|
||||
bool oneway_spam_detected;
|
||||
};
|
||||
|
||||
@@ -98,7 +99,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
#include <linux/list.h>
|
||||
#include <linux/miscdevice.h>
|
||||
#include <linux/mutex.h>
|
||||
@@ -78,7 +79,7 @@ extern const struct file_operations bind
|
||||
@@ -77,7 +78,7 @@ extern const struct file_operations bind
|
||||
|
||||
extern char *binder_devices_param;
|
||||
|
||||
@@ -107,7 +108,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
extern bool is_binderfs_device(const struct inode *inode);
|
||||
extern struct dentry *binderfs_create_file(struct dentry *dir, const char *name,
|
||||
const struct file_operations *fops,
|
||||
@@ -99,7 +100,7 @@ static inline struct dentry *binderfs_cr
|
||||
@@ -98,7 +99,7 @@ static inline struct dentry *binderfs_cr
|
||||
static inline void binderfs_remove_file(struct dentry *dentry) {}
|
||||
#endif
|
||||
|
||||
@@ -127,7 +128,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
#else
|
||||
bool use_reserve = true;
|
||||
#endif
|
||||
@@ -399,7 +399,7 @@ static int binderfs_binder_ctl_create(st
|
||||
@@ -402,7 +402,7 @@ static int binderfs_binder_ctl_create(st
|
||||
struct dentry *root = sb->s_root;
|
||||
struct binderfs_info *info = sb->s_fs_info;
|
||||
#if defined(CONFIG_IPC_NS)
|
||||
@@ -136,7 +137,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
#else
|
||||
bool use_reserve = true;
|
||||
#endif
|
||||
@@ -691,7 +691,7 @@ static int binderfs_fill_super(struct su
|
||||
@@ -694,7 +694,7 @@ static int binderfs_fill_super(struct su
|
||||
return -ENOMEM;
|
||||
info = sb->s_fs_info;
|
||||
|
||||
@@ -184,7 +185,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
return container_of(ns, struct ipc_namespace, ns);
|
||||
--- a/mm/vmalloc.c
|
||||
+++ b/mm/vmalloc.c
|
||||
@@ -3176,6 +3176,7 @@ struct vm_struct *get_vm_area(unsigned l
|
||||
@@ -3181,6 +3181,7 @@ struct vm_struct *get_vm_area(unsigned l
|
||||
NUMA_NO_NODE, GFP_KERNEL,
|
||||
__builtin_return_address(0));
|
||||
}
|
||||
|
@@ -0,0 +1,29 @@
|
||||
From 0156792aef65a27c5938dc821630f5546dc6a3c9 Mon Sep 17 00:00:00 2001
|
||||
From: Paolo Pisati <paolo.pisati@canonical.com>
|
||||
Date: Thu, 6 Feb 2025 15:38:05 +0100
|
||||
Subject: binder: turn into module - list_lru_add()/list_lru_del()
|
||||
|
||||
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
|
||||
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
---
|
||||
mm/list_lru.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
--- a/mm/list_lru.c
|
||||
+++ b/mm/list_lru.c
|
||||
@@ -175,6 +175,7 @@ bool list_lru_add(struct list_lru *lru,
|
||||
unlock_list_lru(l, false);
|
||||
return false;
|
||||
}
|
||||
+EXPORT_SYMBOL_GPL(list_lru_add);
|
||||
|
||||
bool list_lru_add_obj(struct list_lru *lru, struct list_head *item)
|
||||
{
|
||||
@@ -212,6 +213,7 @@ bool list_lru_del(struct list_lru *lru,
|
||||
unlock_list_lru(l, false);
|
||||
return false;
|
||||
}
|
||||
+EXPORT_SYMBOL_GPL(list_lru_del);
|
||||
|
||||
bool list_lru_del_obj(struct list_lru *lru, struct list_head *item)
|
||||
{
|
21
debian/patches/patchset-xanmod/binder/0003-binder-turn-into-module-lock_vma_under_rcu.patch
vendored
Normal file
21
debian/patches/patchset-xanmod/binder/0003-binder-turn-into-module-lock_vma_under_rcu.patch
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
From 51d6dcc335e157df9ce5b9605841b879db64894a Mon Sep 17 00:00:00 2001
|
||||
From: Paolo Pisati <paolo.pisati@canonical.com>
|
||||
Date: Thu, 6 Feb 2025 15:40:09 +0100
|
||||
Subject: binder: turn into module - lock_vma_under_rcu()
|
||||
|
||||
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
|
||||
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
---
|
||||
mm/memory.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
--- a/mm/memory.c
|
||||
+++ b/mm/memory.c
|
||||
@@ -6395,6 +6395,7 @@ inval:
|
||||
count_vm_vma_lock_event(VMA_LOCK_ABORT);
|
||||
return NULL;
|
||||
}
|
||||
+EXPORT_SYMBOL_GPL(lock_vma_under_rcu);
|
||||
#endif /* CONFIG_PER_VMA_LOCK */
|
||||
|
||||
#ifndef __PAGETABLE_P4D_FOLDED
|
Reference in New Issue
Block a user