Re: [PATCH v2 2/9] sysctl: Move some boundary constants from sysctl.c to sysctl_vals
From: Luis Chamberlain
Date: Wed Nov 24 2021 - 18:12:57 EST
On Wed, Nov 24, 2021 at 11:38:19AM -0600, Eric W. Biederman wrote:
> Looking a little more. I think it makes sense to do something like:
>
> diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
> index 1fa2b69c6fc3..c299009421ea 100644
> --- a/include/linux/sysctl.h
> +++ b/include/linux/sysctl.h
> @@ -121,8 +121,8 @@ struct ctl_table {
> struct ctl_table *child; /* Deprecated */
> proc_handler *proc_handler; /* Callback for text formatting */
> struct ctl_table_poll *poll;
> - void *extra1;
> - void *extra2;
> + long min;
> + long max;
> } __randomize_layout;
>
> Any chance we can do that for a cleanup instead of extending sysctl_vals?
Essentially the change is *big*. We either do that *not yet implemented*
change *now, and then have to rebase all the non-upstream work to adapt
to that, or we do that after the cleanup.
Both I think are going to cause some suffering. I'd prefer to do it
after though. Would you be OK with that?
Luis