[PATCH net-next 2/5] net/ipv4/sysctl: constify ctl_table arguments of utility functions

2024-05-27 Thread Thomas Weißschuh
The sysctl core is preparing to only expose instances of struct ctl_table as "const". This will also affect the ctl_table argument of sysctl handlers. As the function prototype of all sysctl handlers throughout the tree needs to stay consistent that change will be done in one commit.

Re: [PATCH v3 0/7] sysctl: Remove sentinel elements from arch

2023-10-11 Thread Joel Granados
pt/added the trailing comma for the ctl_table arrays. This was a comment > > that we received "drivers/*" patch set. > > * Link to v2: > > https://lore.kernel.org/r/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29...@samsung.com > > Thanks! I replaced the v2 with th

Re: [PATCH v3 0/7] sysctl: Remove sentinel elements from arch

2023-10-10 Thread Luis Chamberlain
drivers/*" patch set. > * Link to v2: > https://lore.kernel.org/r/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29...@samsung.com Thanks! I replaced the v2 with this v3 on sysctl-next. Luis

[PATCH v3 0/7] sysctl: Remove sentinel elements from arch

2023-10-02 Thread Joel Granados via B4 Relay
From: Joel Granados What? These commits remove the sentinel element (last empty element) from the sysctl arrays of all the files under the "arch/" directory that use a sysctl array for registration. The merging of the preparation patches (in https://lore.kernel.org/all/zo5yx

Re: [PATCH v2 0/8] sysctl: Remove sentinel elements from arch

2023-09-20 Thread Luis Chamberlain
nel.org/r/20230906-jag-sysctl_remove_empty_elem_arch-v1-0-3935d4854...@samsung.com Thanks! I've merged this onto sysctl-next. Luis

[PATCH v2 0/8] sysctl: Remove sentinel elements from arch

2023-09-13 Thread Joel Granados via B4 Relay
From: Joel Granados What? These commits remove the sentinel element (last empty element) from the sysctl arrays of all the files under the "arch/" directory that use a sysctl array for registration. The merging of the preparation patches (in https://lore.kernel.org/all/zo5yx

[PATCH] docs: admin-guide: update description for kernel.modprobe sysctl

2021-04-20 Thread Rasmus Villemoes
dmin-guide/sysctl/kernel.rst | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst index 1d56a6b73a4e..7ca8df5451d4 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Doc

[PATCH] docs: admin-guide: update description for kernel.hotplug sysctl

2021-04-20 Thread Rasmus Villemoes
-Core: disable /sbin/hotplug by default") Signed-off-by: Rasmus Villemoes --- Documentation/admin-guide/sysctl/kernel.rst | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst index 1d

[tip: sched/core] sched: Move SCHED_DEBUG sysctl to debugfs

2021-04-16 Thread tip-bot2 for Peter Zijlstra
Committer: Peter Zijlstra CommitterDate: Fri, 16 Apr 2021 17:06:34 +02:00 sched: Move SCHED_DEBUG sysctl to debugfs Stop polluting sysctl with undocumented knobs that really are debug only, move them all to /debug/sched/ along with the existing /debug/sched_* files that already exist. Signed-off

[tip: sched/core] sched: Remove sched_schedstats sysctl out from under SCHED_DEBUG

2021-04-16 Thread tip-bot2 for Peter Zijlstra
Committer: Peter Zijlstra CommitterDate: Fri, 16 Apr 2021 17:06:33 +02:00 sched: Remove sched_schedstats sysctl out from under SCHED_DEBUG CONFIG_SCHEDSTATS does not depend on SCHED_DEBUG, it is inconsistent to have the sysctl depend on it. Suggested-by: Mel Gorman Signed-off-by: Peter Zijlstra

[tip: sched/core] sched,debug: Convert sysctl sched_domains to debugfs

2021-04-16 Thread tip-bot2 for Peter Zijlstra
Committer: Peter Zijlstra CommitterDate: Fri, 16 Apr 2021 17:06:35 +02:00 sched,debug: Convert sysctl sched_domains to debugfs Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Dietmar Eggemann Reviewed-by: Valentin Schneider Tested

Re: [PATCH v2 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-04-15 Thread Peter Zijlstra
On Thu, Apr 15, 2021 at 01:34:27PM +0100, Valentin Schneider wrote: > On 15/04/21 11:06, Peter Zijlstra wrote: > > @@ -2388,8 +2384,6 @@ void partition_sched_domains_locked(int > > doms_cur = doms_new; > > dattr_cur = dattr_new; > > ndoms_cur = ndoms_new; > > - > > -

Re: [PATCH v2 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-04-15 Thread Valentin Schneider
On 15/04/21 11:06, Peter Zijlstra wrote: > On Tue, Apr 13, 2021 at 03:55:15PM +0100, Valentin Schneider wrote: >> On 12/04/21 12:14, Peter Zijlstra wrote: >> > Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. >> > >> > Signed-off-by: Peter Zijlstr

Re: [PATCH v2 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-04-15 Thread Dietmar Eggemann
On 15/04/2021 11:06, Peter Zijlstra wrote: > On Tue, Apr 13, 2021 at 03:55:15PM +0100, Valentin Schneider wrote: >> On 12/04/21 12:14, Peter Zijlstra wrote: >>> Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. >>> >>> Signed-off-by: Peter Zijlst

Re: [PATCH v2 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-04-15 Thread Peter Zijlstra
On Tue, Apr 13, 2021 at 03:55:15PM +0100, Valentin Schneider wrote: > On 12/04/21 12:14, Peter Zijlstra wrote: > > Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. > > > > Signed-off-by: Peter Zijlstra (Intel) > > Reviewed-by: Dietmar Eggemann > >

Re: [PATCH v2 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-04-13 Thread Valentin Schneider
On 12/04/21 12:14, Peter Zijlstra wrote: > Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. > > Signed-off-by: Peter Zijlstra (Intel) > Reviewed-by: Dietmar Eggemann On my Juno (2+4 big.LITTLE), sys/kernel/debug/sched/domains/ is now empty. I think th

[PATCH v2 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-04-12 Thread Peter Zijlstra
Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Dietmar Eggemann --- kernel/sched/debug.c| 255 +++- kernel/sched/sched.h|2 kernel/sched/topology.c |1 3 files

[PATCH v2 4/9] sched: Move SCHED_DEBUG sysctl to debugfs

2021-04-12 Thread Peter Zijlstra
Stop polluting sysctl with undocumented knobs that really are debug only, move them all to /debug/sched/ along with the existing /debug/sched_* files that already exist. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Greg Kroah-Hartman --- include/linux/sched/sysctl.h |8 +-- kernel

[PATCH v2 2/9] sched: Remove sched_schedstats sysctl out from under SCHED_DEBUG

2021-04-12 Thread Peter Zijlstra
CONFIG_SCHEDSTATS does not depend on SCHED_DEBUG, it is inconsistent to have the sysctl depend on it. Suggested-by: Mel Gorman Signed-off-by: Peter Zijlstra (Intel) --- kernel/sysctl.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) --- a/kernel/sysctl.c +++ b

Re: [PATCH] sysctl: use min() helper for namecmp()

2021-04-11 Thread Masahiro Yamada
On Tue, Mar 2, 2021 at 8:47 AM Kees Cook wrote: > > On Sun, Feb 28, 2021 at 04:44:22PM +0900, Masahiro Yamada wrote: > > (CC: Andrew Morton) > > > > A friendly reminder. > > > > > > This is just a minor clean-up. > > > > If nobody picks it up, > > I hope perhaps Andrew Morton will do. > > > >

Re: [PATCH 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-04-07 Thread Peter Zijlstra
On Wed, Apr 07, 2021 at 11:46:32AM +0100, Valentin Schneider wrote: > > - __cpumask_clear_cpu(i, sd_sysctl_cpus); > > That seems to be the only place we cleared a CPU in that cpumask, and I > don't see its replacement Yeah, oops :-) Lemme go fix that. Thanks!

Re: [PATCH 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-04-07 Thread Valentin Schneider
On 26/03/21 11:33, Peter Zijlstra wrote: > Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. > > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/sched/debug.c| 255 > ++-- > kernel/sched/sched.h|

Re: [PATCH] mm/vmscan: add sysctl knobs for protecting the specified

2021-04-05 Thread kernel test robot
submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Alexey-Avramov/mm-vmscan-add-sysctl-knobs-for-protecting-the-specified/20210406-061034 base: https://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH] mm/vmscan: add sysctl knobs for protecting the specified

2021-04-05 Thread kernel test robot
patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Alexey-Avramov/mm-vmscan-add-sysctl-knobs-for-protecting-the-specified/20210406-061034 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds

[RFC PATCH v1 10/11] mm: Set toptier_scale_factor via sysctl

2021-04-05 Thread Tim Chen
Update the toptier_scale_factor via sysctl. This variable determines when kswapd wakes up to recalaim toptier memory from those mem cgroups exceeding their toptier memory limit. Signed-off-by: Tim Chen --- include/linux/mm.h | 4 include/linux/mmzone.h | 2 ++ kernel/sysctl.c

Re: [PATCH 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-03-26 Thread Dietmar Eggemann
On 26/03/2021 11:33, Peter Zijlstra wrote: > Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. > > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/sched/debug.c| 255 > ++-- > kernel/sched/sched.h|

[PATCH 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-03-26 Thread Peter Zijlstra
Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/debug.c| 255 ++-- kernel/sched/sched.h|2 kernel/sched/topology.c |1 3 files changed, 59 insertions(+), 199

[PATCH 2/9] sched: Remove sched_schedstats sysctl out from under SCHED_DEBUG

2021-03-26 Thread Peter Zijlstra
CONFIG_SCHEDSTATS does not depend on SCHED_DEBUG, it is inconsistent to have the sysctl depend on it. Suggested-by: Mel Gorman Signed-off-by: Peter Zijlstra (Intel) --- kernel/sysctl.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) --- a/kernel/sysctl.c +++ b

[PATCH v9 21/22] dt-bindings: add BCM6318 GPIO sysctl binding documentation

2021-03-24 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6318 SoCs. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Rob Herring --- v9: no changes v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6318-gpio-sysctl.yaml | 177

[PATCH v9 15/22] dt-bindings: add BCM6368 GPIO sysctl binding documentation

2021-03-24 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6368 SoCs. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Rob Herring --- v9: no changes v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6368-gpio-sysctl.yaml | 246

[PATCH v9 12/22] dt-bindings: add BCM6362 GPIO sysctl binding documentation

2021-03-24 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6362 SoCs. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Rob Herring --- v9: no changes v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6362-gpio-sysctl.yaml | 236

[PATCH v9 18/22] dt-bindings: add BCM63268 GPIO sysctl binding documentation

2021-03-24 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM63268 SoCs. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Rob Herring --- v9: no changes v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm63268-gpio-sysctl.yaml| 194

[PATCH v9 06/22] dt-bindings: add BCM6328 GPIO sysctl binding documentation

2021-03-24 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6328 SoCs. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Rob Herring --- v9: no changes v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6328-gpio-sysctl.yaml | 162

[PATCH v9 09/22] dt-bindings: add BCM6358 GPIO sysctl binding documentation

2021-03-24 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6358 SoCs. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Rob Herring --- v9: no changes v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6358-gpio-sysctl.yaml | 130

Re: [PATCH v8 21/22] dt-bindings: add BCM6318 GPIO sysctl binding documentation

2021-03-23 Thread Rob Herring
On Wed, 17 Mar 2021 15:38:02 +0100, Álvaro Fernández Rojas wrote: > Add binding documentation for the GPIO sysctl found in BCM6318 SoCs. > > Signed-off-by: Álvaro Fernández Rojas > --- > v8: add changes suggested by Rob Herring > v7: add changes suggested by Rob Herring

Re: [PATCH v8 18/22] dt-bindings: add BCM63268 GPIO sysctl binding documentation

2021-03-23 Thread Rob Herring
On Wed, 17 Mar 2021 15:37:59 +0100, Álvaro Fernández Rojas wrote: > Add binding documentation for the GPIO sysctl found in BCM63268 SoCs. > > Signed-off-by: Álvaro Fernández Rojas > --- > v8: add changes suggested by Rob Herring > v7: add changes suggested by Rob Herring

Re: [PATCH v8 15/22] dt-bindings: add BCM6368 GPIO sysctl binding documentation

2021-03-23 Thread Rob Herring
On Wed, 17 Mar 2021 15:37:56 +0100, Álvaro Fernández Rojas wrote: > Add binding documentation for the GPIO sysctl found in BCM6368 SoCs. > > Signed-off-by: Álvaro Fernández Rojas > --- > v8: add changes suggested by Rob Herring > v7: add changes suggested by Rob Herring

Re: [PATCH v8 12/22] dt-bindings: add BCM6362 GPIO sysctl binding documentation

2021-03-23 Thread Rob Herring
On Wed, 17 Mar 2021 15:37:53 +0100, Álvaro Fernández Rojas wrote: > Add binding documentation for the GPIO sysctl found in BCM6362 SoCs. > > Signed-off-by: Álvaro Fernández Rojas > --- > v8: add changes suggested by Rob Herring > v7: add changes suggested by Rob Herring

Re: [PATCH v8 09/22] dt-bindings: add BCM6358 GPIO sysctl binding documentation

2021-03-23 Thread Rob Herring
On Wed, 17 Mar 2021 15:37:50 +0100, Álvaro Fernández Rojas wrote: > Add binding documentation for the GPIO sysctl found in BCM6358 SoCs. > > Signed-off-by: Álvaro Fernández Rojas > --- > v8: add changes suggested by Rob Herring > v7: add changes suggested by Rob Herring

Re: [PATCH v8 06/22] dt-bindings: add BCM6328 GPIO sysctl binding documentation

2021-03-23 Thread Rob Herring
On Wed, Mar 17, 2021 at 03:37:47PM +0100, Álvaro Fernández Rojas wrote: > Add binding documentation for the GPIO sysctl found in BCM6328 SoCs. > > Signed-off-by: Álvaro Fernández Rojas > --- > v8: add changes suggested by Rob Herring > v7: add changes suggested by Rob H

[PATCH v8 21/22] dt-bindings: add BCM6318 GPIO sysctl binding documentation

2021-03-17 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6318 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6318-gpio-sysctl.yaml | 177 ++ 1 file changed, 177

[PATCH v8 18/22] dt-bindings: add BCM63268 GPIO sysctl binding documentation

2021-03-17 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM63268 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm63268-gpio-sysctl.yaml| 194 ++ 1 file changed, 194

[PATCH v8 15/22] dt-bindings: add BCM6368 GPIO sysctl binding documentation

2021-03-17 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6368 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6368-gpio-sysctl.yaml | 246 ++ 1 file changed, 246

[PATCH v8 12/22] dt-bindings: add BCM6362 GPIO sysctl binding documentation

2021-03-17 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6362 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6362-gpio-sysctl.yaml | 236 ++ 1 file changed, 236

[PATCH v8 09/22] dt-bindings: add BCM6358 GPIO sysctl binding documentation

2021-03-17 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6358 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6358-gpio-sysctl.yaml | 130 ++ 1 file changed, 130

[PATCH v8 06/22] dt-bindings: add BCM6328 GPIO sysctl binding documentation

2021-03-17 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6328 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v8: add changes suggested by Rob Herring v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6328-gpio-sysctl.yaml | 162 ++ 1 file changed, 162

Re: [PATCH v7 21/22] dt-bindings: add BCM6318 GPIO sysctl binding documentation

2021-03-17 Thread Álvaro Fernández Rojas
Hi Rob, > El 16 mar 2021, a las 22:20, Rob Herring escribió: > > On Mon, Mar 15, 2021 at 5:42 AM Álvaro Fernández Rojas > wrote: >> >> Add binding documentation for the GPIO sysctl found in BCM6318 SoCs. >> >> Signed-off-by: Álvaro Fernández Rojas >&g

Re: [PATCH v7 21/22] dt-bindings: add BCM6318 GPIO sysctl binding documentation

2021-03-16 Thread Rob Herring
On Mon, Mar 15, 2021 at 5:42 AM Álvaro Fernández Rojas wrote: > > Add binding documentation for the GPIO sysctl found in BCM6318 SoCs. > > Signed-off-by: Álvaro Fernández Rojas > --- > v7: add changes suggested by Rob Herring > > .../mfd/brcm,bcm6318-gpio-s

Re: [PATCH] proc/sysctl: Fix function name error in comments

2021-03-15 Thread Luis Chamberlain
On Mon, Mar 15, 2021 at 04:19:54AM -0700, zhouchuangao wrote: > The function name should be modified to register_sysctl_paths instead > of register_sysctl_table_path. > > Signed-off-by: zhouchuangao Acked-by: Luis Chamberlain Luis

[PATCH v7 21/22] dt-bindings: add BCM6318 GPIO sysctl binding documentation

2021-03-15 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6318 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6318-gpio-sysctl.yaml | 179 ++ 1 file changed, 179 insertions(+) create mode 100644 Documentation

[PATCH v7 18/22] dt-bindings: add BCM63268 GPIO sysctl binding documentation

2021-03-15 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM63268 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v7: add changes suggested by Rob Herring .../mfd/brcm,bcm63268-gpio-sysctl.yaml| 196 ++ 1 file changed, 196 insertions(+) create mode 100644 Documentation

[PATCH v7 15/22] dt-bindings: add BCM6368 GPIO sysctl binding documentation

2021-03-15 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6368 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6368-gpio-sysctl.yaml | 248 ++ 1 file changed, 248 insertions(+) create mode 100644 Documentation

[PATCH v7 12/22] dt-bindings: add BCM6362 GPIO sysctl binding documentation

2021-03-15 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6362 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6362-gpio-sysctl.yaml | 238 ++ 1 file changed, 238 insertions(+) create mode 100644 Documentation

[PATCH v7 09/22] dt-bindings: add BCM6358 GPIO sysctl binding documentation

2021-03-15 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6358 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6358-gpio-sysctl.yaml | 132 ++ 1 file changed, 132 insertions(+) create mode 100644 Documentation

[PATCH v7 06/22] dt-bindings: add BCM6328 GPIO sysctl binding documentation

2021-03-15 Thread Álvaro Fernández Rojas
Add binding documentation for the GPIO sysctl found in BCM6328 SoCs. Signed-off-by: Álvaro Fernández Rojas --- v7: add changes suggested by Rob Herring .../mfd/brcm,bcm6328-gpio-sysctl.yaml | 164 ++ 1 file changed, 164 insertions(+) create mode 100644 Documentation

[PATCH] proc/sysctl: Fix function name error in comments

2021-03-15 Thread zhouchuangao
100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -1562,7 +1562,7 @@ struct ctl_table_header *__register_sysctl_paths( } /** - * register_sysctl_table_path - register a sysctl table hierarchy + * register_sysctl_paths - register a sysctl table hierarchy * @path: The path

Re: [PATCH] sysctl: use min() helper for namecmp()

2021-03-01 Thread Kees Cook
On Sun, Feb 28, 2021 at 04:44:22PM +0900, Masahiro Yamada wrote: > (CC: Andrew Morton) > > A friendly reminder. > > > This is just a minor clean-up. > > If nobody picks it up, > I hope perhaps Andrew Morton will do. > > This patch: > https://lore.kernel.org/patchwork/patch/1360092/ > > > >

Re: [PATCH] sysctl: use min() helper for namecmp()

2021-02-27 Thread Masahiro Yamada
(CC: Andrew Morton) A friendly reminder. This is just a minor clean-up. If nobody picks it up, I hope perhaps Andrew Morton will do. This patch: https://lore.kernel.org/patchwork/patch/1360092/ On Mon, Jan 4, 2021 at 5:33 PM Masahiro Yamada wrote: > > Make it slightly readable by using

Re: Memory allocation issues after "sysctl: Convert to iter interfaces"

2021-02-24 Thread Matthew Wilcox
On Wed, Feb 24, 2021 at 05:02:09PM -0800, Ivan Babrou wrote: > Hello, > > We started seeing allocation failures on procfs reads after > commit 4bd6a7353ee1 "sysctl: Convert to iter interfaces". https://lore.kernel.org/linux-fsdevel/6345270a2c1160b89dd5e6715461f3881768

Memory allocation issues after "sysctl: Convert to iter interfaces"

2021-02-24 Thread Ivan Babrou
Hello, We started seeing allocation failures on procfs reads after commit 4bd6a7353ee1 "sysctl: Convert to iter interfaces". I haven't done a full bisect, but the decoded stacks point squarely at the following piece of code which was introduced: kbuf = kzalloc(count + 1,

[PATCH 4.19 04/17] sysctl: handle overflow in proc_get_long

2021-02-05 Thread Greg Kroah-Hartman
From: Christian Brauner commit 7f2923c4f73f21cfd714d12a2d48de8c21f11cfe upstream. proc_get_long() is a funny function. It uses simple_strtoul() and for a good reason. proc_get_long() wants to always succeed the parse and return the maybe incorrect value and the trailing characters to check

[PATCH 5.10 079/142] xfrm: fix disable_xfrm sysctl when used on xfrm interfaces

2021-02-02 Thread Greg Kroah-Hartman
From: Eyal Birger [ Upstream commit 9f8550e4bd9d78a8436c2061ad2530215f875376 ] The disable_xfrm flag signals that xfrm should not be performed during routing towards a device before reaching device xmit. For xfrm interfaces this is usually desired as they perform the outbound policy lookup as

[PATCH 4.19 23/37] xfrm: fix disable_xfrm sysctl when used on xfrm interfaces

2021-02-02 Thread Greg Kroah-Hartman
From: Eyal Birger [ Upstream commit 9f8550e4bd9d78a8436c2061ad2530215f875376 ] The disable_xfrm flag signals that xfrm should not be performed during routing towards a device before reaching device xmit. For xfrm interfaces this is usually desired as they perform the outbound policy lookup as

[PATCH 5.4 34/61] xfrm: fix disable_xfrm sysctl when used on xfrm interfaces

2021-02-02 Thread Greg Kroah-Hartman
From: Eyal Birger [ Upstream commit 9f8550e4bd9d78a8436c2061ad2530215f875376 ] The disable_xfrm flag signals that xfrm should not be performed during routing towards a device before reaching device xmit. For xfrm interfaces this is usually desired as they perform the outbound policy lookup as

Re: [PATCH] Update Documentation/admin-guide/sysctl/fs.rst

2021-01-28 Thread Jonathan Corbet
On Wed, 20 Jan 2021 13:26:47 + Eric Curtin wrote: > max_user_watches for epoll should say 1/25, rather than 1/32 > > Signed-off-by: Eric Curtin > --- > Documentation/admin-guide/sysctl/fs.rst | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --g

Re: [PATCH] net: sysctl: remove redundant #ifdef CONFIG_NET

2021-01-27 Thread patchwork-bot+netdevbpf
d-off-by: Masahiro Yamada > > [...] Here is the summary with links: - net: sysctl: remove redundant #ifdef CONFIG_NET https://git.kernel.org/netdev/net-next/c/69783429cd13 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html

[PATCH] net: sysctl: remove redundant #ifdef CONFIG_NET

2021-01-25 Thread Masahiro Yamada
CONFIG_NET is a bool option, and this file is compiled only when CONFIG_NET=y. Remove #ifdef CONFIG_NET, which we know it is always met. Signed-off-by: Masahiro Yamada --- net/core/sysctl_net_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/core/sysctl_net_core.c

Re: [PATCH] doc: networking: ip-sysctl: Document conf/all/disable_ipv6 and conf/default/disable_ipv6

2021-01-23 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Thu, 21 Jan 2021 16:02:44 +0100 you wrote: > This patch adds documentation for sysctl conf/all/disable_ipv6 and > conf/default/disable_ipv6 settings which is currently missing. > > Signed-off-by

[PATCH] doc: networking: ip-sysctl: Document conf/all/disable_ipv6 and conf/default/disable_ipv6

2021-01-21 Thread Pali Rohár
This patch adds documentation for sysctl conf/all/disable_ipv6 and conf/default/disable_ipv6 settings which is currently missing. Signed-off-by: Pali Rohár --- Documentation/networking/ip-sysctl.rst | 12 1 file changed, 12 insertions(+) diff --git a/Documentation/networking/ip

[PATCH] Update Documentation/admin-guide/sysctl/fs.rst

2021-01-20 Thread Eric Curtin
max_user_watches for epoll should say 1/25, rather than 1/32 Signed-off-by: Eric Curtin --- Documentation/admin-guide/sysctl/fs.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/sysctl/fs.rst b/Documentation/admin-guide/sysctl/fs.rst index

[PATCH net-next 0/3] Namespace-ify some sysctl in net/core

2021-01-18 Thread menglong8 . dong
From: Menglong Dong For now, most sysctl in 'net/core' are globally unified, such as sysctl_wmem_default, sysctl_rmem_default, sysctl_wmem_default, sysctl_rmem_default, etc. It's not convenient in some case. For example, when we use docker and try to control the default udp socket receive

Re: [PATCH net-next] net: sysctl: cleanup net_sysctl_init()

2021-01-07 Thread Jakub Kicinski
On Thu, 07 Jan 2021 09:13:40 + Alexander Lobakin wrote: > From: Jakub Kicinski > Date: Wed, 6 Jan 2021 16:30:56 -0800 > > > On Wed, 06 Jan 2021 20:40:28 + Alexander Lobakin wrote: > >> 'net_header' is not used outside of this function, so can be moved > >> from BSS onto the stack. > >>

Re: [PATCH net-next] net: sysctl: cleanup net_sysctl_init()

2021-01-07 Thread Alexander Lobakin
From: Jakub Kicinski Date: Wed, 6 Jan 2021 16:30:56 -0800 > On Wed, 06 Jan 2021 20:40:28 + Alexander Lobakin wrote: >> 'net_header' is not used outside of this function, so can be moved >> from BSS onto the stack. >> Declarations of one-element arrays are discouraged, and there's no >> need

Re: [PATCH net-next] net: sysctl: cleanup net_sysctl_init()

2021-01-06 Thread Jakub Kicinski
On Wed, 06 Jan 2021 20:40:28 + Alexander Lobakin wrote: > 'net_header' is not used outside of this function, so can be moved > from BSS onto the stack. > Declarations of one-element arrays are discouraged, and there's no > need to store 'empty' in BSS. Simply allocate it from heap at init.

Re: [PATCH] sysctl: use min() helper for namecmp()

2021-01-06 Thread Kees Cook
On Mon, Jan 04, 2021 at 05:32:21PM +0900, Masahiro Yamada wrote: > Make it slightly readable by using min(). > > Signed-off-by: Masahiro Yamada Acked-by: Kees Cook -- Kees Cook

[PATCH net-next] net: sysctl: cleanup net_sysctl_init()

2021-01-06 Thread Alexander Lobakin
= sysctl_net_exit, }; -static struct ctl_table_header *net_header; __init int net_sysctl_init(void) { - static struct ctl_table empty[1]; + struct ctl_table_header *net_header; + struct ctl_table *empty; int ret = -ENOMEM; + /* Avoid limitations in the sysctl

[PATCH] sysctl: use min() helper for namecmp()

2021-01-04 Thread Masahiro Yamada
Make it slightly readable by using min(). Signed-off-by: Masahiro Yamada --- fs/proc/proc_sysctl.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 317899222d7f..86341c0f0c40 100644 --- a/fs/proc/proc_sysctl.c +++

Re: [PATCH] docs: admin-guide: Fix default value of max_map_count in sysctl/vm.rst

2020-12-21 Thread Jonathan Corbet
5535-5) in include/linux/mm.h > > #define MAPCOUNT_ELF_CORE_MARGIN(5) > #define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN) > > Signed-off-by: Fengfei Xi > --- > Documentation/admin-guide/sysctl/vm.rst | 2 +- > 1 file changed, 1 i

[PATCH] docs: admin-guide: Fix default value of max_map_count in sysctl/vm.rst

2020-12-10 Thread Fengfei Xi
) #define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN) Signed-off-by: Fengfei Xi --- Documentation/admin-guide/sysctl/vm.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/sysctl/vm.rst b/Documentation/admin-guide/sysctl/vm.rst index

Re: [PATCH] docs: clean up sysctl/kernel: titles, version

2020-12-08 Thread Jonathan Corbet
cked against current kernels. > > Signed-off-by: Stephen Kitt > --- > Documentation/admin-guide/sysctl/kernel.rst | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) Applied, thanks. jon

[PATCH] docs: clean up sysctl/kernel: titles, version

2020-12-08 Thread Stephen Kitt
/admin-guide/sysctl/kernel.rst | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst index d4b32cc32bb7..7d53146798c0 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b

[PATCH v12 1/3] fs: Add trusted_for(2) syscall implementation and related sysctl

2020-12-03 Thread Mickaël Salaün
loading. This may be seen as a way for a trusted task (e.g. interpreter) to check the trustworthiness of files (e.g. scripts) before extending its control flow graph with new ones originating from these files. The security policy is consistently managed by the kernel through the new sysctl

Re: [PATCH v6 2/2] Add user-mode only option to unprivileged_userfaultfd sysctl knob

2020-11-19 Thread Lokesh Gidra
sys/sysctl.conf. > > The main reason this change is desirable as in the short term is that > the Android userland will behave as with the sysctl set to zero. So > without this commit, any Linux binary using userfaultfd to manage its > memory would behave differently if run within the A

[PATCH v6 2/2] Add user-mode only option to unprivileged_userfaultfd sysctl knob

2020-11-19 Thread Lokesh Gidra
as with the sysctl set to zero. So without this commit, any Linux binary using userfaultfd to manage its memory would behave differently if run within the Android userland. For more details, refer to Andrea's reply [1]. [1] https://lore.kernel.org/lkml/20200904033438.gi9...@redhat.com/ Signed-off-by: Lokesh Gidra

Re: [PATCH] sysctl: move local variable in proc_do_large_bitmap() to proper scope

2020-11-13 Thread Luis Chamberlain
g-analyzer-deadcode.DeadStores] > > first = 0; > > ^ > > > > Commit 9f977fb7ae9d ("sysctl: add proc_do_large_bitmap") introduced > > proc_do_large_bitmap(), where the variable first is only effectively used > > when write

Re: [PATCH] sysctl: move local variable in proc_do_large_bitmap() to proper scope

2020-11-09 Thread Tom Rix
^ > > Commit 9f977fb7ae9d ("sysctl: add proc_do_large_bitmap") introduced > proc_do_large_bitmap(), where the variable first is only effectively used > when write is false; when write is true, the variable first is only used in > a dead assignment. > > So, simply

Re: [PATCH] sysctl: move local variable in proc_do_large_bitmap() to proper scope

2020-11-09 Thread Nathan Chancellor
first = 0; > ^ > > Commit 9f977fb7ae9d ("sysctl: add proc_do_large_bitmap") introduced > proc_do_large_bitmap(), where the variable first is only effectively used > when write is false; when write is true, the variable first is only used in > a dead assignment.

Re: [PATCH] mm: introduce oom_kill_disable sysctl knob

2020-11-09 Thread Minchan Kim
On Mon, Nov 09, 2020 at 05:06:18PM +0100, Michal Hocko wrote: > On Mon 09-11-20 07:39:33, Minchan Kim wrote: > > On Mon, Nov 09, 2020 at 08:37:06AM +0100, Michal Hocko wrote: > > > On Fri 06-11-20 12:32:38, Minchan Kim wrote: > > > > It's hard to have some tests to be supposed to work under heavy

Re: [PATCH] mm: introduce oom_kill_disable sysctl knob

2020-11-09 Thread Michal Hocko
On Mon 09-11-20 07:39:33, Minchan Kim wrote: > On Mon, Nov 09, 2020 at 08:37:06AM +0100, Michal Hocko wrote: > > On Fri 06-11-20 12:32:38, Minchan Kim wrote: > > > It's hard to have some tests to be supposed to work under heavy > > > memory pressure(e.g., injecting some memory hogger) because > >

Re: [PATCH] mm: introduce oom_kill_disable sysctl knob

2020-11-09 Thread Minchan Kim
On Mon, Nov 09, 2020 at 08:37:06AM +0100, Michal Hocko wrote: > On Fri 06-11-20 12:32:38, Minchan Kim wrote: > > It's hard to have some tests to be supposed to work under heavy > > memory pressure(e.g., injecting some memory hogger) because > > out-of-memory killer easily kicks out one of

Re: [PATCH] mm: introduce oom_kill_disable sysctl knob

2020-11-08 Thread Michal Hocko
On Fri 06-11-20 12:32:38, Minchan Kim wrote: > It's hard to have some tests to be supposed to work under heavy > memory pressure(e.g., injecting some memory hogger) because > out-of-memory killer easily kicks out one of processes so system > is broken or system loses the memory pressure state

[PATCH] sysctl: move local variable in proc_do_large_bitmap() to proper scope

2020-11-08 Thread Lukas Bulwahn
make clang-analyzer caught my attention with: kernel/sysctl.c:1511:4: warning: Value stored to 'first' is never read \ [clang-analyzer-deadcode.DeadStores] first = 0; ^ Commit 9f977fb7ae9d ("sysctl: add proc_do_large_bitmap")

Re: [PATCH] mm: introduce oom_kill_disable sysctl knob

2020-11-06 Thread Minchan Kim
On Fri, Nov 06, 2020 at 12:46:47PM -0800, Randy Dunlap wrote: > Hi, > > Fix a few typos: > > On 11/6/20 12:32 PM, Minchan Kim wrote: > > --- > > Documentation/admin-guide/sysctl/vm.rst | 14 ++ > > include/linux/mm.h

Re: [PATCH] mm: introduce oom_kill_disable sysctl knob

2020-11-06 Thread Randy Dunlap
Hi, Fix a few typos: On 11/6/20 12:32 PM, Minchan Kim wrote: > --- > Documentation/admin-guide/sysctl/vm.rst | 14 ++ > include/linux/mm.h | 2 ++ > include/linux/oom.h | 1 + > kernel/sysctl.c | 9

[PATCH] mm: introduce oom_kill_disable sysctl knob

2020-11-06 Thread Minchan Kim
we could mark existing process's oom_adj to -1000, it couldn't cover upcoming processes to be forked for the job. This knob is handy to keep system memory pressure. Signed-off-by: Minchan Kim --- Documentation/admin-guide/sysctl/vm.rst | 14 ++ include/linux/mm.h

[PATCH 5.9 331/391] net/sunrpc: Fix return value for sysctl sunrpc.transports

2020-11-03 Thread Greg Kroah-Hartman
From: Artur Molchanov commit c09f56b8f68d4d536bff518227aea323b835b2ce upstream. Fix returning value for sysctl sunrpc.transports. Return error code from sysctl proc_handler function proc_do_xprt instead of number of the written bytes. Otherwise sysctl returns random garbage for this key

[PATCH v6 2/2] Add user-mode only option to unprivileged_userfaultfd sysctl knob

2020-10-26 Thread Lokesh Gidra
as with the sysctl set to zero. So without this commit, any Linux binary using userfaultfd to manage its memory would behave differently if run within the Android userland. For more details, refer to Andrea's reply [1]. [1] https://lore.kernel.org/lkml/20200904033438.gi9...@redhat.com/ Signed-off-by: Lokesh Gidra

[PATCH v2 3/8] security/brute: Add sysctl attributes to allow detection fine tuning

2020-10-25 Thread John Wood
This is a previous step to add the detection feature. A fork brute force attack will be detected when an application crashes quickly. Since, the application crash period is the time between the execve system call and the first fault or the time between two consecutives faults add a new sysctl

Re: [PATCH v5 2/2] Add user-mode only option to unprivileged_userfaultfd sysctl knob

2020-10-23 Thread Lokesh Gidra
o the below would be a > summary that could be added to the commit header: > > == > > The main reason this change is desirable as in the short term is that > the Android userland will behave as with the sysctl set to zero. So > without this commit, any Linux binary using userfaultfd to manage

Re: [PATCH v5 2/2] Add user-mode only option to unprivileged_userfaultfd sysctl knob

2020-10-23 Thread Andrea Arcangeli
ernel default with the post-boot Android default. The email in the link above was pretty long, so the below would be a summary that could be added to the commit header: == The main reason this change is desirable as in the short term is that the Android userland will behave as with the sysctl set to zero

  1   2   3   4   5   6   7   8   9   10   >