projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel: bump 4.14 to 4.14.136
[openwrt/openwrt.git]
/
target
/
linux
/
generic
/
hack-4.14
/
902-debloat_proc.patch
diff --git
a/target/linux/generic/hack-4.14/902-debloat_proc.patch
b/target/linux/generic/hack-4.14/902-debloat_proc.patch
index c23a8fb616b13eeb250fc9df96209369dacc5c37..72ee9c011ee046e4eca782df6291c6a4e1dfbdc6 100644
(file)
--- a/
target/linux/generic/hack-4.14/902-debloat_proc.patch
+++ b/
target/linux/generic/hack-4.14/902-debloat_proc.patch
@@
-29,7
+29,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
--- a/fs/locks.c
+++ b/fs/locks.c
--- a/fs/locks.c
+++ b/fs/locks.c
-@@ -28
05,6 +2805
,8 @@ static const struct file_operations proc
+@@ -28
12,6 +2812
,8 @@ static const struct file_operations proc
static int __init proc_locks_init(void)
{
static int __init proc_locks_init(void)
{
@@
-221,18
+221,19
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
if (!root_irq_dir)
--- a/kernel/time/timer_list.c
+++ b/kernel/time/timer_list.c
if (!root_irq_dir)
--- a/kernel/time/timer_list.c
+++ b/kernel/time/timer_list.c
-@@ -3
89,6 +389,8
@@ static int __init init_timer_list_procfs
+@@ -3
90,6 +390,9
@@ static int __init init_timer_list_procfs
{
struct proc_dir_entry *pe;
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED))
+ return 0;
{
struct proc_dir_entry *pe;
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED))
+ return 0;
- pe = proc_create("timer_list", 0444, NULL, &timer_list_fops);
++
+ pe = proc_create("timer_list", 0400, NULL, &timer_list_fops);
if (!pe)
return -ENOMEM;
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
if (!pe)
return -ENOMEM;
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
-@@ -27
65,6 +2765
,8 @@ static const struct file_operations proc
+@@ -27
74,6 +2774
,8 @@ static const struct file_operations proc
static int __init proc_vmalloc_init(void)
{
static int __init proc_vmalloc_init(void)
{
@@
-243,7
+244,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
}
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
}
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
-@@ -19
44,10 +1944
,12 @@ void __init init_mm_internals(void)
+@@ -19
50,10 +1950
,12 @@ void __init init_mm_internals(void)
start_shepherd_timer();
#endif
#ifdef CONFIG_PROC_FS
start_shepherd_timer();
#endif
#ifdef CONFIG_PROC_FS
@@
-327,7
+328,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
--- a/net/core/sock.c
+++ b/net/core/sock.c
--- a/net/core/sock.c
+++ b/net/core/sock.c
-@@ -33
80,6 +3380
,8 @@ static __net_initdata struct pernet_oper
+@@ -33
79,6 +3379
,8 @@ static __net_initdata struct pernet_oper
static int __init proto_init(void)
{
static int __init proto_init(void)
{
@@
-338,7
+339,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
-@@ -27
31,10 +2731
,12 @@ static const struct file_operations fib_
+@@ -27
40,10 +2740
,12 @@ static const struct file_operations fib_
int __net_init fib_proc_init(struct net *net)
{
int __net_init fib_proc_init(struct net *net)
{
@@
-353,7
+354,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
&fib_triestat_fops))
goto out2;
&fib_triestat_fops))
goto out2;
-@@ -27
44,17 +2746
,21 @@ int __net_init fib_proc_init(struct net
+@@ -27
53,17 +2755
,21 @@ int __net_init fib_proc_init(struct net
return 0;
out3:
return 0;
out3:
@@
-381,7
+382,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
-@@ -55
7,6 +557
,9 @@ static __net_initdata struct pernet_oper
+@@ -55
9,6 +559
,9 @@ static __net_initdata struct pernet_oper
int __init ip_misc_proc_init(void)
{
int __init ip_misc_proc_init(void)
{
@@
-393,7
+394,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
-@@ -42
4,6 +424
,9 @@ static struct pernet_operations ip_rt_pr
+@@ -42
7,6 +427
,9 @@ static struct pernet_operations ip_rt_pr
static int __init ip_rt_proc_init(void)
{
static int __init ip_rt_proc_init(void)
{