Sean Fu wrote on Sat, Sep 29, 2018:
Implemented support for 16k stack size that was introduced by commit
6538b8ea886e472f4431db8ca1d60478f838d14b titled "x86_64: expand kernel
stack to 16K".
Without the patch, kernels has 16k stack, leading to errors in commands
such as "bt" and any command regarding 8K stack.
Add a new "--machdep stacksize=<value>" option that can be used to
override the default machdep->stacksize value which is 8k.
Instead of making that an option it could be possible to autodetect this
by looking at __start_init_task / __end_init_task symbols, the
difference should be the proper size (the symbols have been around since
91ed140d6c1e168b11bbbddac4f6066f40a0c6b5 in 4.7 so that might not be old
enough for you though, as your commit dates 3.15 ; but there might be
other methods of getting stack size I haven't thought of, I only grepped
in a recent kernel)
--
Dominique Martinet