PROBLEM: Default initial config options all N
Please cc me on replies.
[1.] One line summary of the problem:
Defaults for oldconfig options not set correctly in recent 2.4 kernels
[2.] Full description of the problem/report:
Built 2.4.21 kernel, starting with config file from 2.4.20 and running oldconfig. *All* new config options had default values of N. The help text for the following options suggested "if unsure, pick Y":PF_KEYCONFIG_INET_AHCONFIG_INET_ESPCONFIG_INET_IPCOMPCONFIG_IP_NF_TFTPCONFIG_XFRM_USER
I did not check the help text for all options, so there may be others.
I speculate that as new options are introduced into the kernel the default values are not getting set. In the past I've seen default values that are not N. Alternately, perhaps oldconfig is ignoring the defaults.
Built the Debian way with Debianised kernel-source (2.4.21-5) and make-kpkg. Various patches applied to kernel (new NTFS, EVMS, XFS) applied before configuration ran. Debian kernel-package maintainer thinks the issue (if any) is with the original sources.
[3.] Keywords (i.e., modules, networking, kernel):
configuration; 2.4.21; defaults; build; Debian; 2.4.19; 2.4.20; oldconfig
[4.] Kernel version (from /proc/version):
Building 2.4.21 on a 2.4.20 kernel
Also an issue for 2.4.19 and 2.4.20
[5.] Output of Oops.. message (if applicable) with symbolic information
resolved (see Documentation/oops-tracing.txt)
Sample from the config dialog:
PF_KEY sockets (CONFIG_NET_KEY) [N/y/m/?] (NEW) ?
CONFIG_NET_KEY:
PF_KEYv2 socket family, compatible to KAME ones. They are required if you are going to use IPsec tools ported from KAME.
Say Y unless you know what you are doing.PF_KEY sockets (CONFIG_NET_KEY) [N/y/m/?] (NEW) y
[6.] A small shell script or example program which triggers the
problem (if possible)
N/A. Invoked with
make-kpkg --revision rb.1 --append-to-version advncdfs --rootcmd fakeroot configure
[7.] Environment
[7.1.] Software (add the output of the ver_linux script here)
Probably not relevant, but here it is:
Linux wheat 2.4.20advncdfs #1 Thu May 15 22:28:21 PDT 2003 i686 GNU/Linux
Gnu C 3.3.1 Gnu make 3.80 binutils 2.14.90.0.4 util-linux 2.11z mount 2.11z modutils 2.4.21 e2fsprogs 1.34-WIP PPP 2.4.1 Linux C Library 2.3.1 Dynamic linker (ldd) 2.3.1 Procps 3.1.9 Net-tools 1.60 Console-tools 0.2.3 Sh-utils 5.0 Modules Loaded parport_pc lp ipt_MASQUERADE ipt_LOG ipt_limit iptable_mangle iptable_filter iptable_nat ip_tables ip_conntrack_ftp ip_conntrack ppp_deflate zlib_inflate zlib_deflate bsd_comp ppp_async ppp_generic slhc af_packet snd-seq-midi snd-emu8000-synth snd-emux-synth snd-seq-virmidi snd-util-mem snd-opl3-synth snd-seq-instr snd-seq-midi-emul snd-ainstr-fm snd-seq-oss snd-seq-midi-event snd-seq rtc reiserfs nls_iso8859-1 nls_cp437 vfat fat mga agpgart scanner usb-ohci usbcore eeprom w83781d i2c-proc i2c-core isofs sg sr_mod ide-scsi ide-cd cdrom scsi_mod snd-pcm-oss snd-mixer-oss snd-sbawe snd-sb16-dsp snd-pcm snd-page-alloc snd-sb16-csp snd-sb-common snd-opl3-lib
snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device snd soundcore
[7.2.] Processor information (from /proc/cpuinfo):
processor : 0vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 2
cpu MHz : 807.985
cache size : 256 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips : 1612.18
[7.3.] Module information (from /proc/modules):
[7.4.] Loaded driver and hardware information (/proc/ioports, /proc/iomem) [7.5.] PCI information ('lspci -vvv' as root)
[7.6.] SCSI information (from /proc/scsi/scsi)
[7.7.] Other information that might be relevant to the problem
(please look in /proc and include all information that you think to be relevant):
[X.] Other notes, patches, fixes, workarounds:
Workaround is to pay attention and not accept the default response. If the defaults are wrong it would be good to fix them.
If the procedure generating the defaults for new options is wrong, it would be good to fix that.
2.4.19 and 2.4.20 oldconfig also shows all default options as N. I'm not sure when this behavior started.
Possibly the problem is specific to oldconfig, rather than other configuration methods.
I can provide the full log of the build, if that would help.
Thanks.
Quoted 4 lines · Ross Boylan
Please cc me on replies.
[1.] One line summary of the problem:
Defaults for oldconfig options not set correctly in recent 2.4 kernels
Define "correctly". Hint: it's user-dependent.
Quoted 10 lines
[2.] Full description of the problem/report:
Built 2.4.21 kernel, starting with config file from 2.4.20 and running oldconfig. *All* new config options had default values of N. The help text for the following options suggested "if unsure, pick Y":PF_KEYCONFIG_INET_AHCONFIG_INET_ESPCONFIG_INET_IPCOMPCONFIG_IP_NF_TFTPCONFIG_XFRM_USER
Not a bug.
Quoted 4 lines
Sample from the config dialog:
PF_KEYsockets (CONFIG_NET_KEY) [N/y/m/?] (NEW) ?
Quoted 8 lines
CONFIG_NET_KEY:
PF_KEYv2socket family, compatible to KAME ones. They are required if you are going to use IPsec tools ported from KAME.Say Y unless you know what you are doing.
PF_KEYsockets (CONFIG_NET_KEY) [N/y/m/?] (NEW) y
Still not a bug. oldconfig stopped and asked you what to do, you checked the help text and chose Y.
Option authors tend to want people to enable them (enable this cool feature!) but in real life, most are Ok to disable.
If oldconfig were to choose Y for new options, then _that_ would be a bug.
Quoted 7 lines · Mikael Pettersson
Quoted 4 lines · Ross Boylan
Please cc me on replies.
[1.] One line summary of the problem:
Defaults for oldconfig options not set correctly in recent 2.4 kernelsDefine "correctly". Hint: it's user-dependent.
As I'm sure you're aware, defaults are not user-dependent; whether to accept the default is user-dependent.
Correctly = appropriate default setting as determined by kernel developers. For all the new options to default to N requires both of the following statements to be true:
1) All the defaults are properly N.
2) Defaults should be inconsistent with the textual help's specification of what you should do if you're unsure.
1) seems unlikely and 2) is inconsistent with previous practice in the kernel configuration, as well as inconsistent with reasonable behavior.
Quoted 24 lines
Quoted 11 lines
[2.] Full description of the problem/report:
Built 2.4.21 kernel, starting with config file from 2.4.20 and running oldconfig. *All* new config options had default values of N. The help text for the following options suggested "if unsure, pick Y":PF_KEYCONFIG_INET_AHCONFIG_INET_ESPCONFIG_INET_IPCOMPCONFIG_IP_NF_TFTPCONFIG_XFRM_USERNot a bug.
Quoted 10 lines
Sample from the config dialog:
PF_KEYsockets (CONFIG_NET_KEY) [N/y/m/?] (NEW) ?
CONFIG_NET_KEY:
PF_KEYv2socket family, compatible to KAME ones. They are required if you are going to use IPsec tools ported from KAME.
Quoted 5 lines
Quoted 2 lines
Say Y unless you know what you are doing.
PF_KEYsockets (CONFIG_NET_KEY) [N/y/m/?] (NEW) yStill not a bug. oldconfig stopped and asked you what to do, you checked the help text and chose Y.
Are you saying that oldconfig defaults to all N, but regular config does something else?
I'd consider that undesirable behavior. Whether it's a bug is a philosophical question.
Quoted 3 lines
Option authors tend to want people to enable them (enable this cool feature!) but in real life, most are Ok to disable.
Are you saying option authors write the help text, but someone else sets the default response? So one may recommend Y while the other recommends N? If so, that seems undesirable (and, to repeat, not consistent with my earlier experiences).
Quoted 4 lines
If oldconfig were to choose Y for new options, then _that_ would be a bug.