linux_dsm_epyc7002/scripts/kconfig
Ben Hutchings 3ba4162115 kconfig: Avoid buffer underrun in choice input
Commit 40aee729b3 ('kconfig: fix default value for choice input')
fixed some cases where kconfig would select the wrong option from a
choice with a single valid option and thus enter an infinite loop.

However, this broke the test for user input of the form 'N?', because
when kconfig selects the single valid option the input is zero-length
and the test will read the byte before the input buffer.  If this
happens to contain '?' (as it will in a mips build on Debian unstable
today) then kconfig again enters an infinite loop.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: stable@kernel.org [2.6.17+]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-04-24 08:24:31 -07:00
..
lxdialog kconfig: fix menuconfig on debian lenny 2010-09-20 14:09:31 +02:00
.gitignore scripts: add nconf into gitignore file 2010-06-03 10:12:40 +02:00
check.sh kbuild: check if we can link gettext not just compile 2007-10-12 21:13:50 +02:00
conf.c kconfig: Avoid buffer underrun in choice input 2011-04-24 08:24:31 -07:00
confdata.c kconfig: fix typos 2010-12-15 14:42:11 +01:00
expr.c kconfig: Make expr_copy() take a const argument 2010-12-21 17:59:16 +01:00
expr.h Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 2011-01-10 08:28:17 -08:00
gconf.c kconfig: replace KERNELVERSION usage by the mainmenu's prompt 2010-09-19 22:53:53 -04:00
gconf.glade scripts/kconfig/gconf.glade Update broken web addresses. 2010-09-17 16:54:42 +02:00
images.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kconfig_load.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kxgettext.c kconfig: Propagate const 2010-09-30 22:17:48 +02:00
lex.zconf.c_shipped kconfig: regen parser 2010-09-19 18:19:44 -04:00
lkc_proto.h Merge branch 'message-callback' into kbuild/kconfig 2010-10-28 00:54:25 +02:00
lkc.h Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 2011-01-10 08:28:17 -08:00
Makefile Merge branch 'kbuild/kconfig/kbuild-generic-v7' of http://github.com/lacombar/linux-2.6 into kbuild/kconfig 2010-09-27 23:24:53 +02:00
mconf.c kconfig: replace KERNELVERSION usage by the mainmenu's prompt 2010-09-19 22:53:53 -04:00
menu.c Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 2011-01-10 08:28:17 -08:00
nconf.c nconf: handle comment entries within choice/endchoice 2011-01-07 15:45:28 +01:00
nconf.gui.c kbuild: fix typo 2010-08-17 11:00:43 +02:00
nconf.h nconfig: add search support 2010-08-16 22:04:55 +02:00
POTFILES.in kconfig: gettext support for lxdialog 2008-01-28 23:14:39 +01:00
qconf.cc kconfig: replace KERNELVERSION usage by the mainmenu's prompt 2010-09-19 22:53:53 -04:00
qconf.h kconfig qconf: port to QT4 2010-09-01 16:14:29 +02:00
streamline_config.pl trivial: Fix Steven's Copyright typos 2011-02-08 17:14:31 -05:00
symbol.c Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 2011-01-10 08:28:17 -08:00
util.c kconfig: expand file names 2010-09-19 22:54:07 -04:00
zconf.gperf kconfig: add an option to determine a menu's visibility 2010-11-22 11:27:17 -02:00
zconf.hash.c_shipped kconfig: regen parser 2010-11-22 11:27:32 -02:00
zconf.l kconfig: use the file's name of sourced file 2010-09-19 22:54:04 -04:00
zconf.tab.c_shipped kconfig: regen parser 2010-11-22 11:27:32 -02:00
zconf.y kconfig: add an option to determine a menu's visibility 2010-11-22 11:27:17 -02:00