WSL2-Linux-Kernel/tools/bootconfig
Masami Hiramatsu (Google) 0cb68c307e bootconfig: Fix testcase to increase max node
[ Upstream commit b69245126a ]

Since commit 6c40624930 ("bootconfig: Increase max nodes of bootconfig
from 1024 to 8192 for DCC support") increased the max number of bootconfig
node to 8192, the bootconfig testcase of the max number of nodes fails.
To fix this issue, we can not simply increase the number in the test script
because the test bootconfig file becomes too big (>32KB). To fix that, we
can use a combination of three alphabets (26^3 = 17576). But with that,
we can not express the 8193 (just one exceed from the limitation) because
it also exceeds the max size of bootconfig. So, the first 26 nodes will just
use one alphabet.

With this fix, test-bootconfig.sh passes all tests.

Link: https://lore.kernel.org/all/167888844790.791176.670805252426835131.stgit@devnote2/

Reported-by: Heinz Wiesinger <pprkut@slackware.com>
Link: https://lore.kernel.org/all/2463802.XAFRqVoOGU@amaterasu.liwjatan.org
Fixes: 6c40624930 ("bootconfig: Increase max nodes of bootconfig from 1024 to 8192 for DCC support")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-30 12:47:47 +02:00
..
include/linux tools/bootconfig: Define memblock_free_ptr() to fix build error 2021-09-15 09:49:48 -07:00
samples tools/bootconfig: Support mixed value and subkey test cases 2021-06-10 13:41:26 -04:00
scripts tools/bootconfig: fix single & used for logical condition 2023-03-10 09:40:10 +01:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile bootconfig: Support O=<builddir> option 2020-03-03 17:38:42 -05:00
main.c bootconfig: Fix missing return check of xbc_node_compose_key function 2021-09-08 15:28:50 -04:00
test-bootconfig.sh bootconfig: Fix testcase to increase max node 2023-03-30 12:47:47 +02:00