Skip to contentSkip to conversation

make CONFIG_EXPERIMENTAL invisible and default

PATCH In review Kees Cook 15 participants 51 messages Oct 2, 2012 – Dec 16, 2012

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 make CONFIG_EXPERIMENTAL invisible and default

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

Thanks,

-Kees

---
 init/Kconfig |   31 ++-----------------------------
 1 file changed, 2 insertions(+), 29 deletions(-)
init/Kconfig +2 -29
index cb003a3..f6f8146 100644
@@ -33,35 +33,8 @@ config BUILDTIME_EXTABLE_SORT
 menu "General setup"
 
 config EXPERIMENTAL
-	bool "Prompt for development and/or incomplete code/drivers"
-	---help---
-	  Some of the various things that Linux supports (such as network
-	  drivers, file systems, network protocols, etc.) can be in a state
-	  of development where the functionality, stability, or the level of
-	  testing is not yet high enough for general use. This is usually
-	  known as the "alpha-test" phase among developers. If a feature is
-	  currently in alpha-test, then the developers usually discourage
-	  uninformed widespread use of this feature by the general public to
-	  avoid "Why doesn't this work?" type mail messages. However, active
-	  testing and use of these systems is welcomed. Just be aware that it
-	  may not meet the normal level of reliability or it may fail to work
-	  in some special cases. Detailed bug reports from people familiar
-	  with the kernel internals are usually welcomed by the developers
-	  (before submitting bug reports, please read the documents
-	  <file:README>, <file:MAINTAINERS>, <file:REPORTING-BUGS>,
-	  <file:Documentation/BUG-HUNTING>, and
-	  <file:Documentation/oops-tracing.txt> in the kernel source).
-
-	  This option will also make obsoleted drivers available. These are
-	  drivers that have been replaced by something else, and/or are
-	  scheduled to be removed in a future kernel release.
-
-	  Unless you intend to help test and develop a feature or driver that
-	  falls into this category, or you have a situation that requires
-	  using these features, you should probably say N here, which will
-	  cause the configurator to present you with fewer choices. If
-	  you say Y here, you will be offered the choice of using features or
-	  drivers that are currently considered to be in the alpha-test phase.
+	bool
+	default y
 
 config BROKEN
 	bool
Signature · 6 lines
1.7.9.5


-- 
Kees Cook
Chrome OS Security
Acked-by Serge Hallyn on v1 1/1
#1 lore raw
Quoted 3 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit,

Didn't this suggestion first come up around 2007 or so? :)

Quoted 7 lines

it should be removed. As a first step, remove it from being
listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
Quoted 79 lines
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

Thanks,

(quoted diff) +0 -2
-Kees
 
---
 init/Kconfig |   31 ++-----------------------------
 1 file changed, 2 insertions(+), 29 deletions(-)
init/Kconfig +2 -29
index cb003a3..f6f8146 100644
@@ -33,35 +33,8 @@ config BUILDTIME_EXTABLE_SORT
 menu "General setup"
 
 config EXPERIMENTAL
-	bool "Prompt for development and/or incomplete code/drivers"
-	---help---
-	  Some of the various things that Linux supports (such as network
-	  drivers, file systems, network protocols, etc.) can be in a state
-	  of development where the functionality, stability, or the level of
-	  testing is not yet high enough for general use. This is usually
-	  known as the "alpha-test" phase among developers. If a feature is
-	  currently in alpha-test, then the developers usually discourage
-	  uninformed widespread use of this feature by the general public to
-	  avoid "Why doesn't this work?" type mail messages. However, active
-	  testing and use of these systems is welcomed. Just be aware that it
-	  may not meet the normal level of reliability or it may fail to work
-	  in some special cases. Detailed bug reports from people familiar
-	  with the kernel internals are usually welcomed by the developers
-	  (before submitting bug reports, please read the documents
-	  <file:README>, <file:MAINTAINERS>, <file:REPORTING-BUGS>,
-	  <file:Documentation/BUG-HUNTING>, and
-	  <file:Documentation/oops-tracing.txt> in the kernel source).
-
-	  This option will also make obsoleted drivers available. These are
-	  drivers that have been replaced by something else, and/or are
-	  scheduled to be removed in a future kernel release.
-
-	  Unless you intend to help test and develop a feature or driver that
-	  falls into this category, or you have a situation that requires
-	  using these features, you should probably say N here, which will
-	  cause the configurator to present you with fewer choices. If
-	  you say Y here, you will be offered the choice of using features or
-	  drivers that are currently considered to be in the alpha-test phase.
+	bool
+	default y
 
 config BROKEN
 	bool
Signature · 11 lines
1.7.9.5


-- 
Kees Cook
Chrome OS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
#2 lore raw
In reply to Kees Cook
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

Thanx, Paul

Quoted 58 lines

Thanks,

(quoted diff) +0 -2
-Kees
 
---
 init/Kconfig |   31 ++-----------------------------
 1 file changed, 2 insertions(+), 29 deletions(-)
init/Kconfig +2 -29
index cb003a3..f6f8146 100644
@@ -33,35 +33,8 @@ config BUILDTIME_EXTABLE_SORT
 menu "General setup"
 
 config EXPERIMENTAL
-	bool "Prompt for development and/or incomplete code/drivers"
-	---help---
-	  Some of the various things that Linux supports (such as network
-	  drivers, file systems, network protocols, etc.) can be in a state
-	  of development where the functionality, stability, or the level of
-	  testing is not yet high enough for general use. This is usually
-	  known as the "alpha-test" phase among developers. If a feature is
-	  currently in alpha-test, then the developers usually discourage
-	  uninformed widespread use of this feature by the general public to
-	  avoid "Why doesn't this work?" type mail messages. However, active
-	  testing and use of these systems is welcomed. Just be aware that it
-	  may not meet the normal level of reliability or it may fail to work
-	  in some special cases. Detailed bug reports from people familiar
-	  with the kernel internals are usually welcomed by the developers
-	  (before submitting bug reports, please read the documents
-	  <file:README>, <file:MAINTAINERS>, <file:REPORTING-BUGS>,
-	  <file:Documentation/BUG-HUNTING>, and
-	  <file:Documentation/oops-tracing.txt> in the kernel source).
-
-	  This option will also make obsoleted drivers available. These are
-	  drivers that have been replaced by something else, and/or are
-	  scheduled to be removed in a future kernel release.
-
-	  Unless you intend to help test and develop a feature or driver that
-	  falls into this category, or you have a situation that requires
-	  using these features, you should probably say N here, which will
-	  cause the configurator to present you with fewer choices. If
-	  you say Y here, you will be offered the choice of using features or
-	  drivers that are currently considered to be in the alpha-test phase.
+	bool
+	default y
 
 config BROKEN
 	bool
Signature · 6 lines
1.7.9.5


-- 
Kees Cook
Chrome OS Security
author
#3 lore raw
Quoted 21 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 8 lines
Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

I'm not sure I understand what you mean? The intention of removing EXPERIMENTAL is effectively like turning it on everywhere, so this first patch does that. As we go forward we can remove the its redundant use in all the Kconfigs, until it is finally removed for real.

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
#4 lore raw
Quoted 29 lines · Kees Cook
Quoted 27 lines · Paul E. McKenney
Quoted 25 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

Quoted 8 lines
Quoted 2 lines

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

I'm not sure I understand what you mean? The intention of removing EXPERIMENTAL is effectively like turning it on everywhere, so this first patch does that. As we go forward we can remove the its redundant use in all the Kconfigs, until it is finally removed for real.

He's asking "how do I add a feature/option into Linus' tree that I'm really not ready for random people and/or distros to enable". The short answer is "don't merge that into Linus' tree" I guess. Keep it in a git branch or patchset somewhere else. Perhaps those willing to take the risk are also willing to apply the patches?

josh

#5 lore raw
In reply to Paul E. McKenney
Quoted 21 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 8 lines
Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

Sadly, the point is that EXPERIMENTAL is enabled in all distros and by most users, so you *could* flag your feature CONFIG_EXPERIMENTAL, but the only thing taht might accomplish is making you feel ok to be less careful.

Of course, an alternative to this patch would be a purging - pull the CONFIG_EXPERIMENTAL tag from all options which anyone might be wanting to use by default. Then let CONFIG_EXPERIMENTAL serve its original purpose.

-serge

#6 lore raw
In reply to Paul E. McKenney
Quoted 21 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 8 lines
Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

greg k-h

#7 lore raw
Quoted 28 lines · Greg Kroah-Hartman
Quoted 27 lines · Paul E. McKenney
Quoted 25 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

Quoted 5 lines
Quoted 2 lines

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

OK, so the only real hope for experimental features is to refrain from creating a config option for them, so that people wishing to use them must modify the code? Or is the philosophy that we keep things out of tree until we are comfortable with distros turning them on?

Thanx, Paul

#8 lore raw
Quoted 32 lines · Paul E. McKenney
Quoted 31 lines · Greg Kroah-Hartman
Quoted 29 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

Quoted 7 lines
Quoted 2 lines

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

OK, so the only real hope for experimental features is to refrain from creating a config option for them, so that people wishing to use them must modify the code? Or is the philosophy that we keep things out of tree until we are comfortable with distros turning them on?

I think that should have been your philosophy for a long time, as they turn on everything, and I don't blame them. Why would we have included it in the kernel tree, unless we wanted people to use the option?

greg k-h

#9 lore raw
Quoted 41 lines · Greg Kroah-Hartman
Quoted 32 lines · Paul E. McKenney
Quoted 31 lines · Greg Kroah-Hartman
Quoted 29 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

Quoted 7 lines
Quoted 2 lines

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

OK, so the only real hope for experimental features is to refrain from creating a config option for them, so that people wishing to use them must modify the code? Or is the philosophy that we keep things out of tree until we are comfortable with distros turning them on?

Quoted 4 lines

I think that should have been your philosophy for a long time, as they turn on everything, and I don't blame them.
Why would we have included
it in the kernel tree, unless we wanted people to use the option?

A solution could be to add that option under CONFIG_DEBUG_KERNEL and specify that it must only be enabled by developers for specific reasons (overhead, security). CONFIG_PROVE_LOCKING falls into that category, right?

We have CONFIG_RCU_USER_QS that is a specific case. It's an intermediate state before we implement a true CONFIG_NO_HZ_FULL. But the option is useless on its own for users. Worse, it introduces a real overhead. OTOH we want it to be upstream to make the development of full tickless feature more incremental.

Perhaps we should put that under CONFIG_DEBUG_KERNEL.

#10 lore raw
Quoted 42 lines · Frederic Weisbecker
Quoted 41 lines · Greg Kroah-Hartman
Quoted 39 lines · Paul E. McKenney
Quoted 28 lines · Greg Kroah-Hartman
Quoted 27 lines · Paul E. McKenney
Quoted 25 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

Quoted 5 lines
Quoted 2 lines

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

OK, so the only real hope for experimental features is to refrain from creating a config option for them, so that people wishing to use them must modify the code? Or is the philosophy that we keep things out of tree until we are comfortable with distros turning them on?

Quoted 8 lines
Quoted 4 lines

I think that should have been your philosophy for a long time, as they turn on everything, and I don't blame them.
Why would we have included
it in the kernel tree, unless we wanted people to use the option?

A solution could be to add that option under CONFIG_DEBUG_KERNEL and specify that it must only be enabled by developers for specific reasons (overhead, security). CONFIG_PROVE_LOCKING falls into that category, right?

No. Fedora runs with that enabled in our development repositories. To be honest, I think we're one of the only users of it given we hit bugs in released kernels, etc. We actually _want_ the bug reports it finds.

josh

#11 lore raw
In reply to Frederic Weisbecker
Quoted 6 lines · Frederic Weisbecker
Quoted 1 line

it in the kernel tree, unless we wanted people to use the option?

A solution could be to add that option under CONFIG_DEBUG_KERNEL and specify that it must only be enabled by developers for specific reasons (overhead, security). CONFIG_PROVE_LOCKING falls into that category, right?

Quoted 6 lines

We have CONFIG_RCU_USER_QS that is a specific case. It's an intermediate state before we implement a true CONFIG_NO_HZ_FULL. But the option is useless on its own for users. Worse, it introduces a real overhead. OTOH we want it to be upstream to make the development of full tickless feature more incremental.

Perhaps we should put that under CONFIG_DEBUG_KERNEL.

Overloading an existing config option for something unrelated seems unpleasant to me. It will only take a few people to start doing this, before it turns into a landslide where everyone ends up with DEBUG_KERNEL set.
And what of people who already have DEBUG_KERNEL set ?

Just state what you wrote above in the kconfig.
Currently, RCU_USER_QS says nothing about the fact that it's work in progress.

The missing part that I don't have an answer for however, is what happens when you deem this production ready? Distro maintainers won't notice the kconfig text changing. But perhaps that's a good thing, and will lead to things only being enabled when people explicitly ask for them in distros.

Alternatively, if you really do want to go the path of a new config option, perhaps CONFIG_NOT_DISTRO_READY would spell things out more clearly. EXPERIMENTAL is such a wasteland it would take too much manpower to audit every case, and update accordingly, but scorching the earth and starting afresh might be feasible.

Dave

#12 lore raw
Quoted 14 lines · Dave Jones
Quoted 6 lines · Frederic Weisbecker
Quoted 1 line

it in the kernel tree, unless we wanted people to use the option?

A solution could be to add that option under CONFIG_DEBUG_KERNEL and specify that it must only be enabled by developers for specific reasons (overhead, security). CONFIG_PROVE_LOCKING falls into that category, right?

Quoted 6 lines

We have CONFIG_RCU_USER_QS that is a specific case. It's an intermediate state before we implement a true CONFIG_NO_HZ_FULL. But the option is useless on its own for users. Worse, it introduces a real overhead. OTOH we want it to be upstream to make the development of full tickless feature more incremental.

Perhaps we should put that under CONFIG_DEBUG_KERNEL.

Quoted 7 lines

Overloading an existing config option for something unrelated seems unpleasant to me. It will only take a few people to start doing this, before it turns into a landslide where everyone ends up with DEBUG_KERNEL set.
And what of people who already have DEBUG_KERNEL set ?

Just state what you wrote above in the kconfig.
Currently, RCU_USER_QS says nothing about the fact that it's work in progress.

Fair point!

Quoted 10 lines

The missing part that I don't have an answer for however, is what happens when you deem this production ready? Distro maintainers won't notice the kconfig text changing. But perhaps that's a good thing, and will lead to things only being enabled when people explicitly ask for them in distros.

Alternatively, if you really do want to go the path of a new config option, perhaps CONFIG_NOT_DISTRO_READY would spell things out more clearly. EXPERIMENTAL is such a wasteland it would take too much manpower to audit every case, and update accordingly, but scorching the earth and starting afresh might be feasible.

Heh! We might just plan to scorch the earth and start afresh every few years. That might actually work... ;-)

Thanx, Paul

#13 lore raw
In reply to Dave Jones
Quoted 12 lines · Dave Jones
Quoted 11 lines · Frederic Weisbecker
Quoted 1 line

it in the kernel tree, unless we wanted people to use the option?

A solution could be to add that option under CONFIG_DEBUG_KERNEL and specify that it must only be enabled by developers for specific reasons (overhead, security). CONFIG_PROVE_LOCKING falls into that category, right?

We have CONFIG_RCU_USER_QS that is a specific case. It's an intermediate state before we implement a true CONFIG_NO_HZ_FULL. But the option is useless on its own for users. Worse, it introduces a real overhead. OTOH we want it to be upstream to make the development of full tickless feature more incremental.

Quoted 6 lines
Quoted 1 line

Perhaps we should put that under CONFIG_DEBUG_KERNEL.

Overloading an existing config option for something unrelated seems unpleasant to me. It will only take a few people to start doing this, before it turns into a landslide where everyone ends up with DEBUG_KERNEL set.
And what of people who already have DEBUG_KERNEL set ?

Sorry, by wording wasn't clear. I didn't mean overloading CONFIG_DEBUG_KERNEL but rather depend on it.

Quoted 3 lines

Just state what you wrote above in the kconfig.
Currently, RCU_USER_QS says nothing about the fact that it's work in progress.

Yeah I much prefer that. I'll add some details on the Kconfig.

Quoted 4 lines

The missing part that I don't have an answer for however, is what happens when you deem this production ready? Distro maintainers won't notice the kconfig text changing. But perhaps that's a good thing, and will lead to things only being enabled when people explicitly ask for them in distros.

That Kconfig option is likely going to disappear inside a new CONFIG_NO_HZ_FULL that will enables individual features like RCU user mode and stuffs.

And if it stays, it will be enabled by CONFIG_NO_HZ_FULL. So it's not an option anybody will ever have to deal with directly.

Quoted 5 lines

Alternatively, if you really do want to go the path of a new config option, perhaps CONFIG_NOT_DISTRO_READY would spell things out more clearly. EXPERIMENTAL is such a wasteland it would take too much manpower to audit every case, and update accordingly, but scorching the earth and starting afresh might be feasible.

CONFIG_STAGING already does that kind of thing I guess. Although I suspect people are reluctant with core features in -staging.

#14 lore raw
Quoted 40 lines · Frederic Weisbecker
Quoted 12 lines · Dave Jones
Quoted 11 lines · Frederic Weisbecker
Quoted 1 line

it in the kernel tree, unless we wanted people to use the option?

A solution could be to add that option under CONFIG_DEBUG_KERNEL and specify that it must only be enabled by developers for specific reasons (overhead, security). CONFIG_PROVE_LOCKING falls into that category, right?

We have CONFIG_RCU_USER_QS that is a specific case. It's an intermediate state before we implement a true CONFIG_NO_HZ_FULL. But the option is useless on its own for users. Worse, it introduces a real overhead. OTOH we want it to be upstream to make the development of full tickless feature more incremental.

Quoted 6 lines
Quoted 1 line

Perhaps we should put that under CONFIG_DEBUG_KERNEL.

Overloading an existing config option for something unrelated seems unpleasant to me. It will only take a few people to start doing this, before it turns into a landslide where everyone ends up with DEBUG_KERNEL set.
And what of people who already have DEBUG_KERNEL set ?

Sorry, by wording wasn't clear. I didn't mean overloading CONFIG_DEBUG_KERNEL but rather depend on it.

Quoted 3 lines

Just state what you wrote above in the kconfig.
Currently, RCU_USER_QS says nothing about the fact that it's work in progress.

Yeah I much prefer that. I'll add some details on the Kconfig.

Quoted 4 lines

The missing part that I don't have an answer for however, is what happens when you deem this production ready? Distro maintainers won't notice the kconfig text changing. But perhaps that's a good thing, and will lead to things only being enabled when people explicitly ask for them in distros.

That Kconfig option is likely going to disappear inside a new CONFIG_NO_HZ_FULL that will enables individual features like RCU user mode and stuffs.

And if it stays, it will be enabled by CONFIG_NO_HZ_FULL. So it's not an option anybody will ever have to deal with directly.

Quoted 8 lines
Quoted 5 lines

Alternatively, if you really do want to go the path of a new config option, perhaps CONFIG_NOT_DISTRO_READY would spell things out more clearly. EXPERIMENTAL is such a wasteland it would take too much manpower to audit every case, and update accordingly, but scorching the earth and starting afresh might be feasible.

CONFIG_STAGING already does that kind of thing I guess. Although I suspect people are reluctant with core features in -staging.

Well, it would certainly be possible to include a file from a drivers/staging/rcu directory or some such. As you say, I am not sure how Greg KH would react to such a patch, though. ;-)

I guess that the lesson I am learning here is that the nocb patch needs to go into the -rt patchset rather than directly into mainline. Though Dave Jones's thought of tainting the kernel at boot time sounds interesting as well.

Thanx, Paul

#15 lore raw
In reply to Greg Kroah-Hartman
Quoted 36 lines · Greg Kroah-Hartman
Quoted 35 lines · Paul E. McKenney
Quoted 33 lines · Greg Kroah-Hartman
Quoted 21 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 8 lines
Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

Quoted 8 lines
Quoted 4 lines

OK, so the only real hope for experimental features is to refrain from creating a config option for them, so that people wishing to use them must modify the code? Or is the philosophy that we keep things out of tree until we are comfortable with distros turning them on?

I think that should have been your philosophy for a long time, as they turn on everything, and I don't blame them. Why would we have included it in the kernel tree, unless we wanted people to use the option?

Because some sizeable group of people would like to use the option, but it is not helpful to many others?

Thanx, Paul

#16 lore raw
Quoted 42 lines · Paul E. McKenney
Quoted 41 lines · Greg Kroah-Hartman
Quoted 39 lines · Paul E. McKenney
Quoted 28 lines · Greg Kroah-Hartman
Quoted 27 lines · Paul E. McKenney
Quoted 25 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

Quoted 5 lines
Quoted 2 lines

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

OK, so the only real hope for experimental features is to refrain from creating a config option for them, so that people wishing to use them must modify the code? Or is the philosophy that we keep things out of tree until we are comfortable with distros turning them on?

Quoted 6 lines
Quoted 3 lines

I think that should have been your philosophy for a long time, as they turn on everything, and I don't blame them. Why would we have included it in the kernel tree, unless we wanted people to use the option?

Because some sizeable group of people would like to use the option, but it is not helpful to many others?

The way that is worded, that wouldn't sound like CONFIG_EXPERIMENTAL even if that worked the way we wanted. Just a clearly worded separate config option for your feature would be best in that case. Yes there are tons of options to wade through, but you can't make CONFIG_EXPERIMENTAL a binary for what you describe, since the experimental options i'd want (user namespaces, etc) would not be the same ones you'd want.

-serge

author
#17 lore raw
In reply to Paul E. McKenney
Quoted 32 lines · Paul E. McKenney
Quoted 31 lines · Greg Kroah-Hartman
Quoted 29 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

Quoted 7 lines
Quoted 2 lines

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

OK, so the only real hope for experimental features is to refrain from creating a config option for them, so that people wishing to use them must modify the code? Or is the philosophy that we keep things out of tree until we are comfortable with distros turning them on?

I would expect a simple addition of "this is dangerous/buggy" to the description and "default n" is likely the way to go for that kind of thing. I think the history of CONFIG_EXPERIMENTAL has proven there isn't a sensible way to create a global flag for this kind of thing. To paraphrase Serge: my experimental options are not your experimental options.

For example, some of the things that already had the experimental config removed, they left the "(EXPERIMENTAL)" in their config title.

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
#18 lore raw
Quoted 11 lines · Kees Cook
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

OK, so the only real hope for experimental features is to refrain from creating a config option for them, so that people wishing to use them must modify the code? Or is the philosophy that we keep things out of tree until we are comfortable with distros turning them on?

Quoted 6 lines

I would expect a simple addition of "this is dangerous/buggy" to the description and "default n" is likely the way to go for that kind of thing. I think the history of CONFIG_EXPERIMENTAL has proven there isn't a sensible way to create a global flag for this kind of thing. To paraphrase Serge: my experimental options are not your experimental options.

Remember that new features/drivers should be defaulting to 'n' in any case. It's a rare feature that has no drawbacks (if only in the kernel size, which is an issue for small devices). If there really are no drawbacks to something, why have it be an option at all?

David Lang

#19 lore raw
In reply to Kees Cook
Quoted 42 lines · Kees Cook
Quoted 32 lines · Paul E. McKenney
Quoted 31 lines · Greg Kroah-Hartman
Quoted 29 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

Quoted 7 lines
Quoted 2 lines

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

OK, so the only real hope for experimental features is to refrain from creating a config option for them, so that people wishing to use them must modify the code? Or is the philosophy that we keep things out of tree until we are comfortable with distros turning them on?

Quoted 6 lines

I would expect a simple addition of "this is dangerous/buggy" to the description and "default n" is likely the way to go for that kind of thing. I think the history of CONFIG_EXPERIMENTAL has proven there isn't a sensible way to create a global flag for this kind of thing. To paraphrase Serge: my experimental options are not your experimental options.

That has not proven sufficient for me in the past, RCU_FAST_NO_HZ being a case in point.

Quoted 2 lines

For example, some of the things that already had the experimental config removed, they left the "(EXPERIMENTAL)" in their config title.

Or I could just make it splat at boot time. ;-)

Thanx, Paul

#20 lore raw
Quoted 50 lines · Paul E. McKenney
Quoted 42 lines · Kees Cook
Quoted 32 lines · Paul E. McKenney
Quoted 31 lines · Greg Kroah-Hartman
Quoted 29 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

Quoted 7 lines
Quoted 2 lines

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

OK, so the only real hope for experimental features is to refrain from creating a config option for them, so that people wishing to use them must modify the code? Or is the philosophy that we keep things out of tree until we are comfortable with distros turning them on?

Quoted 6 lines

I would expect a simple addition of "this is dangerous/buggy" to the description and "default n" is likely the way to go for that kind of thing. I think the history of CONFIG_EXPERIMENTAL has proven there isn't a sensible way to create a global flag for this kind of thing. To paraphrase Serge: my experimental options are not your experimental options.

Quoted 2 lines

That has not proven sufficient for me in the past, RCU_FAST_NO_HZ being a case in point.

One option that does work is to add a negative Kconfig dependency such as "depends on EXT4 = n". Where what you depend on is something that distros want.

Where I had a legitimate reason to do that with the user namespace (aka the code that had not been converted did not compile and was not safe to use) it worked very well in keeping distros from getting ahead of them selves, and likewise it works very well for ensuring it got itself removed as ultimately you want to the two kconfig options to work together.

Quoted 4 lines
Quoted 2 lines

For example, some of the things that already had the experimental config removed, they left the "(EXPERIMENTAL)" in their config title.

Or I could just make it splat at boot time. ;-)

Yes. Treating a truly experimental feature like a deprecated feature and complaining to the world also seems reasonable, and it seems like something that would ultimatley get removed as well.

Eric

#21 lore raw
Quoted 59 lines · Eric W. Biederman
Quoted 50 lines · Paul E. McKenney
Quoted 42 lines · Kees Cook
Quoted 32 lines · Paul E. McKenney
Quoted 31 lines · Greg Kroah-Hartman
Quoted 29 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

Quoted 7 lines
Quoted 2 lines

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

OK, so the only real hope for experimental features is to refrain from creating a config option for them, so that people wishing to use them must modify the code? Or is the philosophy that we keep things out of tree until we are comfortable with distros turning them on?

Quoted 6 lines

I would expect a simple addition of "this is dangerous/buggy" to the description and "default n" is likely the way to go for that kind of thing. I think the history of CONFIG_EXPERIMENTAL has proven there isn't a sensible way to create a global flag for this kind of thing. To paraphrase Serge: my experimental options are not your experimental options.

Quoted 2 lines

That has not proven sufficient for me in the past, RCU_FAST_NO_HZ being a case in point.

One option that does work is to add a negative Kconfig dependency such as "depends on EXT4 = n". Where what you depend on is something that distros want.

Quoted 6 lines

Where I had a legitimate reason to do that with the user namespace (aka the code that had not been converted did not compile and was not safe to use) it worked very well in keeping distros from getting ahead of them selves, and likewise it works very well for ensuring it got itself removed as ultimately you want to the two kconfig options to work together.

Cute! ;-)

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

For example, some of the things that already had the experimental config removed, they left the "(EXPERIMENTAL)" in their config title.

Or I could just make it splat at boot time. ;-)

Yes. Treating a truly experimental feature like a deprecated feature and complaining to the world also seems reasonable, and it seems like something that would ultimatley get removed as well.

Either removed or fixed, as the case may be.

Thanx, Paul

#23 lore raw
Quoted 7 lines · Matthew Garrett
Quoted 2 lines · Paul E. McKenney

That has not proven sufficient for me in the past, RCU_FAST_NO_HZ being a case in point.

Taint the kernel at boot time? That'd be sufficient to force distros to disable it.

Cool! That does sound much more socially responsible than my thought of forcing a splat (e.g., WARN_ON(1)) during boot. ;-)

Thanx, Paul

#24 lore raw
Quoted 11 lines · Paul E. McKenney
Quoted 7 lines · Matthew Garrett
Quoted 2 lines · Paul E. McKenney

That has not proven sufficient for me in the past, RCU_FAST_NO_HZ being a case in point.

Taint the kernel at boot time? That'd be sufficient to force distros to disable it.

Cool! That does sound much more socially responsible than my thought of forcing a splat (e.g., WARN_ON(1)) during boot. ;-)

So, from what I can see, here is the list of the ways of warning distros off of a given kernel config option, taken in terms of CONFIG_RCU_USER_QS:

1. Make CONFIG_RCU_USER_QS depend on CONFIG_BROKEN.

It sounds to me like distros would avoid adding this (do they?), but tester would probably avoid it as well.

2. Make CONFIG_RCU_USER_QS depend on CONFIG_STAGING.

As Frederic noted, this is more of a driver thing than a core-kernel thing, so probably not appropriate.

3. Boot-time WARN_ON() if CONFIG_RCU_USER_QS=y.

This seems to me to be a tad excessive. But the place to do it might be rcu_bootup_announce_oddness() in kernel/rcutree_plugin.h.

4. Remove CONFIG_RCU_USER_QS from Kconfig, so that users have to
patch their kernel to enable it.

This also seems a tad excessive.

5. Maintain CONFIG_RCU_USER_QS out of tree, for example in the
-rt patchset.

This is a good place to start, but it has been where CONFIG_RCU_USER_QS has been for some time, and although it got some good testing, it clearly needs more. In my view, CONFIG_RCU_USER_QS has outgrown its out-of-tree roots.

6. Boot-time add_taint() if CONFIG_RCU_USER_QS=y, as suggested
by Matthew Garrett. The taint value might be TAINT_CRAP, TAINT_OOT_MODULE, TAINT_WARN, or TAINT_FIRMWARE_WORKAROUND -- all the other taint values disable lockdep. Of these four, TAINT_OOT_MODULE and TAINT_FIRMWARE_WORKAROUND are clearly off-topic, leaving TAINT_CRAP and TAINT_WARN. Taking them one at a time:

TAINT_CRAP: Used when loading modules from staging.

TAINT_WARN: Used when "scheduling while atomic" is encountered.

So I have my tongue only halfway in my cheek when I suggest starting with TAINT_CRAP, then moving to TAINT_WARN, then removing the tainting altogether. The place to do this might be rcu_bootup_announce_oddness() in kernel/rcutree_plugin.h.

So how about the following progression?

A. Early days, only a few crazies should test. In this case, the
code should be out of tree, perhaps in something like -rt, perhaps as a set of patches.

B. Need more testers, but still not expected to work reasonably.
Mainline, but depending on CONFIG_BROKEN. (I am not all that enthusiastic about this option, but am including it for completeness.)

C. Need wide testing, but don't want 100,000,000 unsuspecting
test subjects. Taint the kernel with TAINT_CRAP.

D. OK for production in special situations, but definitely not
for typical users. Taint the kernel with TAINT_WARN.

E. Ready for general production use. Mainlined without restrictions.

I would say that CONFIG_RCU_USER_QS is currently at point C above, it clearly now needs testing on a wide variety of hardware, but also is clearly not ready for 100,000,000 users.

Thoughts?

Thanx, Paul

#25 lore raw

2012/10/5 Paul E. McKenney <[email protected]>:

Quoted 63 lines · Paul E. McKenney
Quoted 11 lines · Matthew Garrett
Quoted 7 lines · Paul E. McKenney
Quoted 3 lines

That has not proven sufficient for me in the past, RCU_FAST_NO_HZ being a case in point.

Taint the kernel at boot time? That'd be sufficient to force distros to disable it.

Cool! That does sound much more socially responsible than my thought of forcing a splat (e.g., WARN_ON(1)) during boot. ;-)

So, from what I can see, here is the list of the ways of warning distros off of a given kernel config option, taken in terms of CONFIG_RCU_USER_QS:

1. Make CONFIG_RCU_USER_QS depend on CONFIG_BROKEN.

It sounds to me like distros would avoid adding this (do they?), but tester would probably avoid it as well.

2. Make CONFIG_RCU_USER_QS depend on CONFIG_STAGING.

As Frederic noted, this is more of a driver thing than a core-kernel thing, so probably not appropriate.

3. Boot-time WARN_ON() if CONFIG_RCU_USER_QS=y.

This seems to me to be a tad excessive. But the place to do it might be rcu_bootup_announce_oddness() in kernel/rcutree_plugin.h.

4. Remove CONFIG_RCU_USER_QS from Kconfig, so that users have to
patch their kernel to enable it.

This also seems a tad excessive.

5. Maintain CONFIG_RCU_USER_QS out of tree, for example in the
-rt patchset.

This is a good place to start, but it has been where CONFIG_RCU_USER_QS has been for some time, and although it got some good testing, it clearly needs more. In my view, CONFIG_RCU_USER_QS has outgrown its out-of-tree roots.

6. Boot-time add_taint() if CONFIG_RCU_USER_QS=y, as suggested
by Matthew Garrett. The taint value might be TAINT_CRAP, TAINT_OOT_MODULE, TAINT_WARN, or TAINT_FIRMWARE_WORKAROUND -- all the other taint values disable lockdep. Of these four, TAINT_OOT_MODULE and TAINT_FIRMWARE_WORKAROUND are clearly off-topic, leaving TAINT_CRAP and TAINT_WARN. Taking them one at a time:

TAINT_CRAP: Used when loading modules from staging.

TAINT_WARN: Used when "scheduling while atomic" is encountered.

So I have my tongue only halfway in my cheek when I suggest starting with TAINT_CRAP, then moving to TAINT_WARN, then removing the tainting altogether. The place to do this might be rcu_bootup_announce_oddness() in kernel/rcutree_plugin.h.

So how about the following progression?

Quoted 8 lines

A. Early days, only a few crazies should test. In this case, the
code should be out of tree, perhaps in something like -rt, perhaps as a set of patches.

B. Need more testers, but still not expected to work reasonably.
Mainline, but depending on CONFIG_BROKEN. (I am not all that enthusiastic about this option, but am including it for completeness.)

Yeah neither am I. With a dependency on CONFIG_BROKEN, it considerably reduce the testing coverage too.

Quoted 7 lines

C. Need wide testing, but don't want 100,000,000 unsuspecting
test subjects. Taint the kernel with TAINT_CRAP.

D. OK for production in special situations, but definitely not
for typical users. Taint the kernel with TAINT_WARN.

Quoted 7 lines

E. Ready for general production use. Mainlined without restrictions.

I would say that CONFIG_RCU_USER_QS is currently at point C above, it clearly now needs testing on a wide variety of hardware, but also is clearly not ready for 100,000,000 users.

Thoughts?

Really I would much prefer to add some "Don't enable it unless you're doing kernel hacking.
If unsure say N" text in the Kconfig.

I can understand that distros want to cover as much feature as they can for their users. But
should it be an excuse for not reading outstanding warnings in Kconfig help text?

Or may be add some specific warning yeah. I wouldn't mind much.

#26 lore raw
Quoted 68 lines · Frederic Weisbecker

2012/10/5 Paul E. McKenney <[email protected]>:

Quoted 67 lines · Paul E. McKenney
Quoted 11 lines · Matthew Garrett
Quoted 7 lines · Paul E. McKenney
Quoted 3 lines

That has not proven sufficient for me in the past, RCU_FAST_NO_HZ being a case in point.

Taint the kernel at boot time? That'd be sufficient to force distros to disable it.

Cool! That does sound much more socially responsible than my thought of forcing a splat (e.g., WARN_ON(1)) during boot. ;-)

So, from what I can see, here is the list of the ways of warning distros off of a given kernel config option, taken in terms of CONFIG_RCU_USER_QS:

1. Make CONFIG_RCU_USER_QS depend on CONFIG_BROKEN.

It sounds to me like distros would avoid adding this (do they?), but tester would probably avoid it as well.

2. Make CONFIG_RCU_USER_QS depend on CONFIG_STAGING.

As Frederic noted, this is more of a driver thing than a core-kernel thing, so probably not appropriate.

3. Boot-time WARN_ON() if CONFIG_RCU_USER_QS=y.

This seems to me to be a tad excessive. But the place to do it might be rcu_bootup_announce_oddness() in kernel/rcutree_plugin.h.

4. Remove CONFIG_RCU_USER_QS from Kconfig, so that users have to
patch their kernel to enable it.

This also seems a tad excessive.

5. Maintain CONFIG_RCU_USER_QS out of tree, for example in the
-rt patchset.

This is a good place to start, but it has been where CONFIG_RCU_USER_QS has been for some time, and although it got some good testing, it clearly needs more. In my view, CONFIG_RCU_USER_QS has outgrown its out-of-tree roots.

6. Boot-time add_taint() if CONFIG_RCU_USER_QS=y, as suggested
by Matthew Garrett. The taint value might be TAINT_CRAP, TAINT_OOT_MODULE, TAINT_WARN, or TAINT_FIRMWARE_WORKAROUND -- all the other taint values disable lockdep. Of these four, TAINT_OOT_MODULE and TAINT_FIRMWARE_WORKAROUND are clearly off-topic, leaving TAINT_CRAP and TAINT_WARN. Taking them one at a time:

TAINT_CRAP: Used when loading modules from staging.

TAINT_WARN: Used when "scheduling while atomic" is encountered.

So I have my tongue only halfway in my cheek when I suggest starting with TAINT_CRAP, then moving to TAINT_WARN, then removing the tainting altogether. The place to do this might be rcu_bootup_announce_oddness() in kernel/rcutree_plugin.h.

So how about the following progression?

A. Early days, only a few crazies should test. In this case, the
code should be out of tree, perhaps in something like -rt, perhaps as a set of patches.

Quoted 7 lines
Quoted 4 lines

B. Need more testers, but still not expected to work reasonably.
Mainline, but depending on CONFIG_BROKEN. (I am not all that enthusiastic about this option, but am including it for completeness.)

Yeah neither am I. With a dependency on CONFIG_BROKEN, it considerably reduce the testing coverage too.

;-)

Quoted 14 lines
Quoted 6 lines

C. Need wide testing, but don't want 100,000,000 unsuspecting
test subjects. Taint the kernel with TAINT_CRAP.

D. OK for production in special situations, but definitely not
for typical users. Taint the kernel with TAINT_WARN.

Quoted 7 lines

E. Ready for general production use. Mainlined without restrictions.

I would say that CONFIG_RCU_USER_QS is currently at point C above, it clearly now needs testing on a wide variety of hardware, but also is clearly not ready for 100,000,000 users.

Thoughts?

Quoted 8 lines

Really I would much prefer to add some "Don't enable it unless you're doing kernel hacking.
If unsure say N" text in the Kconfig.

I can understand that distros want to cover as much feature as they can for their users. But
should it be an excuse for not reading outstanding warnings in Kconfig help text?

In my experience, they do not read these warnings carefully. :-( Or perhaps they do read them, but react to them by running the code through some test suite rather than by putting full faith in the warning.

Quoted 1 line

Or may be add some specific warning yeah. I wouldn't mind much.

We have some weeks to think about it -- I cannot see pushing a warning in as a regression. ;-)

Thanx, Paul

#27 lore raw
Quoted 10 lines
Quoted 9 lines

Really I would much prefer to add some "Don't enable it unless you're doing kernel hacking.
If unsure say N" text in the Kconfig.

I can understand that distros want to cover as much feature as they can for their users. But
should it be an excuse for not reading outstanding warnings in Kconfig help text?

Quoted 5 lines

In my experience, they do not read these warnings carefully. :-( Or perhaps they do read them, but react to them by running the code through some test suite rather than by putting full faith in the warning.

I think Kconfig is mostly what distro would like to use the thing is the Kconfig text needs to be there upfront when its merged, not two months later, since then it too late for a distro to notice.

I'd bet most distros would read the warnings, but in a lot of cases the warning don't exist until its too late.

Dave.

Quoted 12 lines
Quoted 1 line

Or may be add some specific warning yeah. I wouldn't mind much.

We have some weeks to think about it -- I cannot see pushing a warning in as a regression. ;-)

Thanx, Paul

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#28 lore raw
Quoted 15 lines · Dave Airlie
Quoted 10 lines
Quoted 9 lines

Really I would much prefer to add some "Don't enable it unless you're doing kernel hacking.
If unsure say N" text in the Kconfig.

I can understand that distros want to cover as much feature as they can for their users. But
should it be an excuse for not reading outstanding warnings in Kconfig help text?

Quoted 4 lines

In my experience, they do not read these warnings carefully. :-( Or perhaps they do read them, but react to them by running the code through some test suite rather than by putting full faith in the warning.

Quoted 6 lines

I think Kconfig is mostly what distro would like to use the thing is the Kconfig text needs to be there upfront when its merged, not two months later, since then it too late for a distro to notice.

I'd bet most distros would read the warnings, but in a lot of cases the warning don't exist until its too late.

In the case of CONFIG_RCU_USER_QS you are quite right, the warning should have been there from the beginning and was not. I suppose you could argue that the warning was not sufficiently harsh in the case of CONFIG_RCU_FAST_NO_HZ, but either way it did get ignored:

config RCU_FAST_NO_HZ
bool "Accelerate last non-dyntick-idle CPU's grace periods" depends on TREE_RCU && NO_HZ && SMP
default n
help
This option causes RCU to attempt to accelerate grace periods in order to allow the final CPU to enter dynticks-idle state more quickly. On the other hand, this option increases the overhead of the dynticks-idle checking, particularly on systems with large numbers of CPUs.

Say Y if energy efficiency is critically important, particularly
if you have relatively few CPUs.

Say N if you are unsure.

I have since made RCU_FAST_NO_HZ more generally applicable, so it is OK to enable now. I suppose I need to update the help text...

Either way, however, it would be good to tag an experimental config option at boot time. Even if the help text gives very clear warnings, it would be good to have the option defend itself against the occasional inevitable typo.

Thanx, Paul

Quoted 16 lines

Dave.

Quoted 12 lines
Quoted 1 line

Or may be add some specific warning yeah. I wouldn't mind much.

We have some weeks to think about it -- I cannot see pushing a warning in as a regression. ;-)

Thanx, Paul

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#29 lore raw
Quoted 11 lines · Paul E. McKenney
Quoted 6 lines

I think Kconfig is mostly what distro would like to use the thing is the Kconfig text needs to be there upfront when its merged, not two months later, since then it too late for a distro to notice.

I'd bet most distros would read the warnings, but in a lot of cases the warning don't exist until its too late.

In the case of CONFIG_RCU_USER_QS you are quite right, the warning should have been there from the beginning and was not. I suppose you could argue that the warning was not sufficiently harsh in the case of CONFIG_RCU_FAST_NO_HZ, but either way it did get ignored:

Maybe if we had a universally agreed upon tag for kconfig, like "distro recommendation: N" that would make things obvious, and also allow those of us unfortunate enough to maintain distro kernels to have something to easily grep for. This would also catch the case when you eventually (hopefully) flip from an N to a Y.

There will likely still be some distros that will decide they know better (and I'm pretty sure eventually I'll find reason to do so myself), but it at least gives the feature maintainer the "I told you so" clause.

Something we do quite often for our in-development kernels is enable something that's shiny, new and unproven, and then when we branch for a release, we turn it back off. It would be great if a lot of this kind of thing could be more automated.

Dave

#30 lore raw
Quoted 20 lines · Dave Jones
Quoted 11 lines · Paul E. McKenney
Quoted 6 lines

I think Kconfig is mostly what distro would like to use the thing is the Kconfig text needs to be there upfront when its merged, not two months later, since then it too late for a distro to notice.

I'd bet most distros would read the warnings, but in a lot of cases the warning don't exist until its too late.

In the case of CONFIG_RCU_USER_QS you are quite right, the warning should have been there from the beginning and was not. I suppose you could argue that the warning was not sufficiently harsh in the case of CONFIG_RCU_FAST_NO_HZ, but either way it did get ignored:

Maybe if we had a universally agreed upon tag for kconfig, like "distro recommendation: N" that would make things obvious, and also allow those of us unfortunate enough to maintain distro kernels to have something to easily grep for. This would also catch the case when you eventually (hopefully) flip from an N to a Y.

Quoted 7 lines

There will likely still be some distros that will decide they know better (and I'm pretty sure eventually I'll find reason to do so myself), but it at least gives the feature maintainer the "I told you so" clause.

Something we do quite often for our in-development kernels is enable something that's shiny, new and unproven, and then when we branch for a release, we turn it back off. It would be great if a lot of this kind of thing could be more automated.

One approach would be to have CONFIG_DISTRO, so that experimental features could use "depends on !DISTRO", but also to have multiple "BLEEDING" symbols. For example, given a CONFIG_DISTRO_BLEEDING_HPC and CONFIG_DISTRO_BLEEDING_RT, CONFIG_RCU_USER_QS might eventually use the following clause:

	depends on !DISTRO || DISTRO_BLEEDING_HPC || DISTRO_BLEEDING_RT

A normal distro would define DISTRO, a distro looking to provide bleeding-edge HPC or real-time features would also define DISTRO_BLEEDING_HPC or DISTRO_BLEEDING_RT, respectively.

Does that make sense, or am I being overly naive?

Thanx, Paul

author
#31 lore raw
Quoted 35 lines · Paul E. McKenney
Quoted 20 lines · Dave Jones
Quoted 11 lines · Paul E. McKenney
Quoted 6 lines

I think Kconfig is mostly what distro would like to use the thing is the Kconfig text needs to be there upfront when its merged, not two months later, since then it too late for a distro to notice.

I'd bet most distros would read the warnings, but in a lot of cases the warning don't exist until its too late.

In the case of CONFIG_RCU_USER_QS you are quite right, the warning should have been there from the beginning and was not. I suppose you could argue that the warning was not sufficiently harsh in the case of CONFIG_RCU_FAST_NO_HZ, but either way it did get ignored:

Maybe if we had a universally agreed upon tag for kconfig, like "distro recommendation: N" that would make things obvious, and also allow those of us unfortunate enough to maintain distro kernels to have something to easily grep for. This would also catch the case when you eventually (hopefully) flip from an N to a Y.

Quoted 7 lines

There will likely still be some distros that will decide they know better (and I'm pretty sure eventually I'll find reason to do so myself), but it at least gives the feature maintainer the "I told you so" clause.

Something we do quite often for our in-development kernels is enable something that's shiny, new and unproven, and then when we branch for a release, we turn it back off. It would be great if a lot of this kind of thing could be more automated.

One approach would be to have CONFIG_DISTRO, so that experimental features could use "depends on !DISTRO", but also to have multiple "BLEEDING" symbols. For example, given a CONFIG_DISTRO_BLEEDING_HPC and CONFIG_DISTRO_BLEEDING_RT, CONFIG_RCU_USER_QS might eventually use the following clause:

Quoted 7 lines
        depends on !DISTRO || DISTRO_BLEEDING_HPC || DISTRO_BLEEDING_RT

A normal distro would define DISTRO, a distro looking to provide bleeding-edge HPC or real-time features would also define DISTRO_BLEEDING_HPC or DISTRO_BLEEDING_RT, respectively.

Does that make sense, or am I being overly naive?

I think we should avoid any global configs that disable things. We'll just end up in the same place with distros again.

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
#32 lore raw
Quoted 39 lines · Kees Cook
Quoted 37 lines · Paul E. McKenney
Quoted 20 lines · Dave Jones
Quoted 11 lines · Paul E. McKenney
Quoted 6 lines

I think Kconfig is mostly what distro would like to use the thing is the Kconfig text needs to be there upfront when its merged, not two months later, since then it too late for a distro to notice.

I'd bet most distros would read the warnings, but in a lot of cases the warning don't exist until its too late.

In the case of CONFIG_RCU_USER_QS you are quite right, the warning should have been there from the beginning and was not. I suppose you could argue that the warning was not sufficiently harsh in the case of CONFIG_RCU_FAST_NO_HZ, but either way it did get ignored:

Maybe if we had a universally agreed upon tag for kconfig, like "distro recommendation: N" that would make things obvious, and also allow those of us unfortunate enough to maintain distro kernels to have something to easily grep for. This would also catch the case when you eventually (hopefully) flip from an N to a Y.

Quoted 7 lines

There will likely still be some distros that will decide they know better (and I'm pretty sure eventually I'll find reason to do so myself), but it at least gives the feature maintainer the "I told you so" clause.

Something we do quite often for our in-development kernels is enable something that's shiny, new and unproven, and then when we branch for a release, we turn it back off. It would be great if a lot of this kind of thing could be more automated.

One approach would be to have CONFIG_DISTRO, so that experimental features could use "depends on !DISTRO", but also to have multiple "BLEEDING" symbols. For example, given a CONFIG_DISTRO_BLEEDING_HPC and CONFIG_DISTRO_BLEEDING_RT, CONFIG_RCU_USER_QS might eventually use the following clause:

        depends on !DISTRO || DISTRO_BLEEDING_HPC || DISTRO_BLEEDING_RT
Quoted 8 lines
Quoted 5 lines

A normal distro would define DISTRO, a distro looking to provide bleeding-edge HPC or real-time features would also define DISTRO_BLEEDING_HPC or DISTRO_BLEEDING_RT, respectively.

Does that make sense, or am I being overly naive?

I think we should avoid any global configs that disable things. We'll just end up in the same place with distros again.

So you believe that we should taint the kernel or splat on boot to warn distros off of features that might not be ready for 100 million users? Or do you have some other approach in mind?

Thanx, Paul

author
#33 lore raw
Quoted 44 lines · Paul E. McKenney
Quoted 43 lines · Kees Cook
Quoted 41 lines · Paul E. McKenney
Quoted 20 lines · Dave Jones
Quoted 11 lines · Paul E. McKenney
Quoted 6 lines

I think Kconfig is mostly what distro would like to use the thing is the Kconfig text needs to be there upfront when its merged, not two months later, since then it too late for a distro to notice.

I'd bet most distros would read the warnings, but in a lot of cases the warning don't exist until its too late.

In the case of CONFIG_RCU_USER_QS you are quite right, the warning should have been there from the beginning and was not. I suppose you could argue that the warning was not sufficiently harsh in the case of CONFIG_RCU_FAST_NO_HZ, but either way it did get ignored:

Maybe if we had a universally agreed upon tag for kconfig, like "distro recommendation: N" that would make things obvious, and also allow those of us unfortunate enough to maintain distro kernels to have something to easily grep for. This would also catch the case when you eventually (hopefully) flip from an N to a Y.

Quoted 7 lines

There will likely still be some distros that will decide they know better (and I'm pretty sure eventually I'll find reason to do so myself), but it at least gives the feature maintainer the "I told you so" clause.

Something we do quite often for our in-development kernels is enable something that's shiny, new and unproven, and then when we branch for a release, we turn it back off. It would be great if a lot of this kind of thing could be more automated.

One approach would be to have CONFIG_DISTRO, so that experimental features could use "depends on !DISTRO", but also to have multiple "BLEEDING" symbols. For example, given a CONFIG_DISTRO_BLEEDING_HPC and CONFIG_DISTRO_BLEEDING_RT, CONFIG_RCU_USER_QS might eventually use the following clause:

        depends on !DISTRO || DISTRO_BLEEDING_HPC || DISTRO_BLEEDING_RT

A normal distro would define DISTRO, a distro looking to provide bleeding-edge HPC or real-time features would also define DISTRO_BLEEDING_HPC or DISTRO_BLEEDING_RT, respectively.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Does that make sense, or am I being overly naive?

I think we should avoid any global configs that disable things. We'll just end up in the same place with distros again.

So you believe that we should taint the kernel or splat on boot to warn distros off of features that might not be ready for 100 million users? Or do you have some other approach in mind?

Personally, I think taint+printk seems like the right way to go.

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
author
#34 lore raw
Quoted 48 lines · Kees Cook
Quoted 46 lines · Paul E. McKenney
Quoted 45 lines · Kees Cook
Quoted 42 lines · Paul E. McKenney
Quoted 20 lines · Dave Jones
Quoted 11 lines · Paul E. McKenney
Quoted 6 lines

I think Kconfig is mostly what distro would like to use the thing is the Kconfig text needs to be there upfront when its merged, not two months later, since then it too late for a distro to notice.

I'd bet most distros would read the warnings, but in a lot of cases the warning don't exist until its too late.

In the case of CONFIG_RCU_USER_QS you are quite right, the warning should have been there from the beginning and was not. I suppose you could argue that the warning was not sufficiently harsh in the case of CONFIG_RCU_FAST_NO_HZ, but either way it did get ignored:

Maybe if we had a universally agreed upon tag for kconfig, like "distro recommendation: N" that would make things obvious, and also allow those of us unfortunate enough to maintain distro kernels to have something to easily grep for. This would also catch the case when you eventually (hopefully) flip from an N to a Y.

Quoted 7 lines

There will likely still be some distros that will decide they know better (and I'm pretty sure eventually I'll find reason to do so myself), but it at least gives the feature maintainer the "I told you so" clause.

Something we do quite often for our in-development kernels is enable something that's shiny, new and unproven, and then when we branch for a release, we turn it back off. It would be great if a lot of this kind of thing could be more automated.

One approach would be to have CONFIG_DISTRO, so that experimental features could use "depends on !DISTRO", but also to have multiple "BLEEDING" symbols. For example, given a CONFIG_DISTRO_BLEEDING_HPC and CONFIG_DISTRO_BLEEDING_RT, CONFIG_RCU_USER_QS might eventually use the following clause:

        depends on !DISTRO || DISTRO_BLEEDING_HPC || DISTRO_BLEEDING_RT

A normal distro would define DISTRO, a distro looking to provide bleeding-edge HPC or real-time features would also define DISTRO_BLEEDING_HPC or DISTRO_BLEEDING_RT, respectively.

Does that make sense, or am I being overly naive?

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

I think we should avoid any global configs that disable things. We'll just end up in the same place with distros again.

So you believe that we should taint the kernel or splat on boot to warn distros off of features that might not be ready for 100 million users? Or do you have some other approach in mind?

Personally, I think taint+printk seems like the right way to go.

Actually, I think printk is sufficient. I don't want kernel taint to become the new CONFIG_EXPERIMENTAL. :)

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
#35 lore raw
Quoted 52 lines · Kees Cook
Quoted 51 lines · Kees Cook
Quoted 49 lines · Paul E. McKenney
Quoted 47 lines · Kees Cook
Quoted 35 lines · Paul E. McKenney
Quoted 20 lines · Dave Jones
Quoted 11 lines · Paul E. McKenney
Quoted 6 lines

I think Kconfig is mostly what distro would like to use the thing is the Kconfig text needs to be there upfront when its merged, not two months later, since then it too late for a distro to notice.

I'd bet most distros would read the warnings, but in a lot of cases the warning don't exist until its too late.

In the case of CONFIG_RCU_USER_QS you are quite right, the warning should have been there from the beginning and was not. I suppose you could argue that the warning was not sufficiently harsh in the case of CONFIG_RCU_FAST_NO_HZ, but either way it did get ignored:

Maybe if we had a universally agreed upon tag for kconfig, like "distro recommendation: N" that would make things obvious, and also allow those of us unfortunate enough to maintain distro kernels to have something to easily grep for. This would also catch the case when you eventually (hopefully) flip from an N to a Y.

Quoted 7 lines

There will likely still be some distros that will decide they know better (and I'm pretty sure eventually I'll find reason to do so myself), but it at least gives the feature maintainer the "I told you so" clause.

Something we do quite often for our in-development kernels is enable something that's shiny, new and unproven, and then when we branch for a release, we turn it back off. It would be great if a lot of this kind of thing could be more automated.

One approach would be to have CONFIG_DISTRO, so that experimental features could use "depends on !DISTRO", but also to have multiple "BLEEDING" symbols. For example, given a CONFIG_DISTRO_BLEEDING_HPC and CONFIG_DISTRO_BLEEDING_RT, CONFIG_RCU_USER_QS might eventually use the following clause:

Quoted 7 lines
        depends on !DISTRO || DISTRO_BLEEDING_HPC || DISTRO_BLEEDING_RT

A normal distro would define DISTRO, a distro looking to provide bleeding-edge HPC or real-time features would also define DISTRO_BLEEDING_HPC or DISTRO_BLEEDING_RT, respectively.

Does that make sense, or am I being overly naive?

I think we should avoid any global configs that disable things. We'll just end up in the same place with distros again.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

So you believe that we should taint the kernel or splat on boot to warn distros off of features that might not be ready for 100 million users? Or do you have some other approach in mind?

Personally, I think taint+printk seems like the right way to go.

Actually, I think printk is sufficient. I don't want kernel taint to become the new CONFIG_EXPERIMENTAL. :)

OK, I'll bite...

Why would kernel taint be more likely to become the new CONFIG_EXPERIMENTAL than printk() would?

Thanx, Paul

author
#36 lore raw
Quoted 59 lines · Paul E. McKenney
Quoted 58 lines · Kees Cook
Quoted 56 lines · Kees Cook
Quoted 44 lines · Paul E. McKenney
Quoted 43 lines · Kees Cook
Quoted 41 lines · Paul E. McKenney
Quoted 20 lines · Dave Jones
Quoted 11 lines · Paul E. McKenney
Quoted 6 lines

I think Kconfig is mostly what distro would like to use the thing is the Kconfig text needs to be there upfront when its merged, not two months later, since then it too late for a distro to notice.

I'd bet most distros would read the warnings, but in a lot of cases the warning don't exist until its too late.

In the case of CONFIG_RCU_USER_QS you are quite right, the warning should have been there from the beginning and was not. I suppose you could argue that the warning was not sufficiently harsh in the case of CONFIG_RCU_FAST_NO_HZ, but either way it did get ignored:

Maybe if we had a universally agreed upon tag for kconfig, like "distro recommendation: N" that would make things obvious, and also allow those of us unfortunate enough to maintain distro kernels to have something to easily grep for. This would also catch the case when you eventually (hopefully) flip from an N to a Y.

Quoted 7 lines

There will likely still be some distros that will decide they know better (and I'm pretty sure eventually I'll find reason to do so myself), but it at least gives the feature maintainer the "I told you so" clause.

Something we do quite often for our in-development kernels is enable something that's shiny, new and unproven, and then when we branch for a release, we turn it back off. It would be great if a lot of this kind of thing could be more automated.

One approach would be to have CONFIG_DISTRO, so that experimental features could use "depends on !DISTRO", but also to have multiple "BLEEDING" symbols. For example, given a CONFIG_DISTRO_BLEEDING_HPC and CONFIG_DISTRO_BLEEDING_RT, CONFIG_RCU_USER_QS might eventually use the following clause:

        depends on !DISTRO || DISTRO_BLEEDING_HPC || DISTRO_BLEEDING_RT

A normal distro would define DISTRO, a distro looking to provide bleeding-edge HPC or real-time features would also define DISTRO_BLEEDING_HPC or DISTRO_BLEEDING_RT, respectively.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Does that make sense, or am I being overly naive?

I think we should avoid any global configs that disable things. We'll just end up in the same place with distros again.

So you believe that we should taint the kernel or splat on boot to warn distros off of features that might not be ready for 100 million users? Or do you have some other approach in mind?

Personally, I think taint+printk seems like the right way to go.

Quoted 7 lines
Quoted 2 lines

Actually, I think printk is sufficient. I don't want kernel taint to become the new CONFIG_EXPERIMENTAL. :)

OK, I'll bite...

Why would kernel taint be more likely to become the new CONFIG_EXPERIMENTAL than printk() would?

I was imagining the case where distros were still turning lots of stuff on, and they wanted a genuinely experimental thing anyway, then they'd end up with all their kernels tainted. A printk is easier to "live with", where as taint wouldn't be, I think.

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
#37 lore raw
In reply to Kees Cook
Quoted 3 lines · Kees Cook

I would expect a simple addition of "this is dangerous/buggy" to the description and "default n" is likely the way to go for that kind of thing.

Agreed.

Quoted 6 lines

I think the history of CONFIG_EXPERIMENTAL has proven there isn't a sensible way to create a global flag for this kind of thing. To paraphrase Serge: my experimental options are not your experimental options.
For example, some of the things that already had the experimental config removed, they left the "(EXPERIMENTAL)" in their config title.

Right.

author
#38 lore raw
In reply to Greg Kroah-Hartman
Quoted 28 lines · Greg Kroah-Hartman
Quoted 27 lines · Paul E. McKenney
Quoted 25 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

Quoted 5 lines
Quoted 2 lines

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

So, should I update the commit description to include a suggested alternative? (If so, which one?)

Who is going to carry this initial patch, btw?

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
#39 lore raw
Quoted 30 lines · Kees Cook
Quoted 28 lines · Greg Kroah-Hartman
Quoted 27 lines · Paul E. McKenney
Quoted 25 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

So, should I update the commit description to include a suggested alternative? (If so, which one?)

Which do you prefer?

Quoted 1 line

Who is going to carry this initial patch, btw?

You? :)

greg k-h

author
#40 lore raw
Quoted 34 lines · Greg Kroah-Hartman
Quoted 33 lines · Kees Cook
Quoted 31 lines · Greg Kroah-Hartman
Quoted 29 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

So, should I update the commit description to include a suggested alternative? (If so, which one?)

Which do you prefer?

I think developers that want something harder that strongly worded text in the Kconfig title or description should throw a printk.

Quoted 3 lines
Quoted 1 line

Who is going to carry this initial patch, btw?

You? :)

Do you mean to say I should ask Stephen to pull from one of my trees for linux-next? If so, I've made this now:

git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git linux-next

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
#41 lore raw
Quoted 8 lines · Kees Cook
Quoted 3 lines
Quoted 1 line

Who is going to carry this initial patch, btw?

You? :)

Do you mean to say I should ask Stephen to pull from one of my trees for linux-next? If so, I've made this now:

git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git linux-next

Sounds good to me, good luck.

greg k-h

#42 lore raw
In reply to Kees Cook
Quoted 39 lines · Kees Cook
Quoted 37 lines · Greg Kroah-Hartman
Quoted 36 lines · Kees Cook
Quoted 33 lines · Greg Kroah-Hartman
Quoted 21 lines · Paul E. McKenney
Quoted 20 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 8 lines
Quoted 5 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

So, should I update the commit description to include a suggested alternative? (If so, which one?)

Which do you prefer?

I think developers that want something harder that strongly worded text in the Kconfig title or description should throw a printk.

But having agreed-upon wording in the Kconfig title or description is still goodness. Those of us who want printk()s, add_taint()s, or even WARN_ON()s can always add them.

Thanx, Paul

Quoted 15 lines
Quoted 3 lines
Quoted 1 line

Who is going to carry this initial patch, btw?

You? :)

Do you mean to say I should ask Stephen to pull from one of my trees for linux-next? If so, I've made this now:

git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git linux-next

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
author
#43 lore raw
Quoted 43 lines · Paul E. McKenney
Quoted 42 lines · Kees Cook
Quoted 40 lines · Greg Kroah-Hartman
Quoted 38 lines · Kees Cook
Quoted 28 lines · Greg Kroah-Hartman
Quoted 27 lines · Paul E. McKenney
Quoted 25 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---

This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I figure this patch can stand alone to at least make EXPERIMENTAL go away from the menus, and give us a taste of what the removal would do to builds.

Quoted 5 lines
Quoted 2 lines

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

So, should I update the commit description to include a suggested alternative? (If so, which one?)

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Which do you prefer?

I think developers that want something harder that strongly worded text in the Kconfig title or description should throw a printk.

But having agreed-upon wording in the Kconfig title or description is still goodness. Those of us who want printk()s, add_taint()s, or even WARN_ON()s can always add them.

I agree. I think, actually, it might make sense to retain the "(EXPERIMENTAL)" text in the title. This is what has already been done for some of the other subsystems.

Quoted 6 lines · Greg Kroah-Hartman
Quoted 5 lines · Kees Cook
Quoted 3 lines · Greg Kroah-Hartman
Quoted 1 line · Kees Cook

Who is going to carry this initial patch, btw?

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

You? :)

Do you mean to say I should ask Stephen to pull from one of my trees for linux-next? If so, I've made this now:

git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git linux-next

Sounds good to me, good luck.

Stephen, can you add this tree to your pulls for linux-next?

Thanks!

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
#44 lore raw

Hi Kees,

Quoted 11 lines · On Mon, 8 Oct 2012 18:57:51 -0700 Kees Cook <[email protected]> wrote:
Quoted 8 lines · Greg Kroah-Hartman
Quoted 7 lines · Kees Cook
Quoted 4 lines · Greg Kroah-Hartman
Quoted 1 line · Kees Cook

Who is going to carry this initial patch, btw?

You? :)

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

Do you mean to say I should ask Stephen to pull from one of my trees for linux-next? If so, I've made this now:

git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git linux-next

Sounds good to me, good luck.

Stephen, can you add this tree to your pulls for linux-next?

For this single commit, if you want it to go in during this merge window,
I suggest you send it as a patch to Linus. If there is going to be
ongoing work on this topic, then I will be happy to add your tree after v3.7-rc1 is released (since the further work should be destined for v3.8, right?).

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
author
#45 lore raw
Quoted 21 lines · Stephen Rothwell

Hi Kees,

Quoted 18 lines · On Mon, 8 Oct 2012 18:57:51 -0700 Kees Cook <[email protected]> wrote:
Quoted 14 lines · Greg Kroah-Hartman
Quoted 11 lines · Kees Cook
Quoted 4 lines · Greg Kroah-Hartman
Quoted 1 line · Kees Cook

Who is going to carry this initial patch, btw?

You? :)

Do you mean to say I should ask Stephen to pull from one of my trees for linux-next? If so, I've made this now:

git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git linux-next

Sounds good to me, good luck.

Quoted 7 lines
Quoted 1 line

Stephen, can you add this tree to your pulls for linux-next?

For this single commit, if you want it to go in during this merge window,
I suggest you send it as a patch to Linus. If there is going to be
ongoing work on this topic, then I will be happy to add your tree after v3.7-rc1 is released (since the further work should be destined for v3.8, right?).

I'm intending it for 3.8, so waiting is fine.

Thanks!

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
#46 lore raw
In reply to Greg Kroah-Hartman
Quoted 6 lines · Greg Kroah-Hartman
Quoted 3 lines

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

You know that won't not work, just like "everybody is encouraged to upgrade" for -stable. It needs to say "All users must disable this!"

#47 lore raw
Quoted 11 lines · Jan Engelhardt
Quoted 6 lines · Greg Kroah-Hartman
Quoted 3 lines

OK, I will bite... How should I flag an option that is initially only intended for those willing to take some level of risk?

In the text say "You really don't want to enable this option, use at your own risk!" Or something like that :)

You know that won't not work, just like "everybody is encouraged to upgrade" for -stable. It needs to say "All users must disable this!"

The thought expressed earlier in this thread of unconditionally splatting during boot seemed pretty compelling to me. ;-)

Thanx, Paul

#48 lore raw
In reply to Kees Cook
Quoted 15 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>
Quoted 8 lines

---
This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I cherry-picked the hwmon/pmbus patch (commit 41c5b6bb).

Guenter

author
#49 lore raw
Quoted 22 lines · Guenter Roeck
Quoted 21 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---
This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 3 lines
Quoted 2 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I cherry-picked the hwmon/pmbus patch (commit 41c5b6bb).

Great, thanks!

-Kees

Signature · 2 lines
Kees Cook
Chrome OS Security
#50 lore raw
Quoted 23 lines · Kees Cook
Quoted 22 lines · Guenter Roeck
Quoted 21 lines · Kees Cook

This config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, it should be removed. As a first step, remove it from being listed, and default it to on. Once it has been removed from all subsystem Kconfigs, it will be dropped entirely.

CC Greg KH <[email protected]>
CC "Eric W. Biederman" <[email protected]>
CC Serge Hallyn <[email protected]>
CC "Paul E. McKenney" <[email protected]>
CC Andrew Morton <[email protected]>
CC Frederic Weisbecker <[email protected]>

---
This is the first of a series of 202 patches removing EXPERIMENTAL from all the Kconfigs in the tree. Should I send them all to lkml (with all the associated CCs), or do people want to cherry-pick changes from my tree? I don't want to needlessly flood the list.

Quoted 6 lines
Quoted 3 lines
Quoted 2 lines

http://git.kernel.org/?p=linux/kernel/git/kees/linux.git;a=shortlog;h=refs/heads/experimental

I cherry-picked the hwmon/pmbus patch (commit 41c5b6bb).

Great, thanks!

I also picked the Documentation/hwmon patch (fbe3d657620).

Guenter