Good news; this is really easy. The Linux kernel makes the stack visible via the usual mechanism to expose kernel internals to user space – the powerful proc filesystem interfaces. Just peek under /proc/<pid>/stack.
So, okay, let's look up the kernel-mode stack of our Bash process. Let's say that, on our x86_64 Ubuntu guest (running the 5.4 kernel), our Bash process' PID is 3085:
On modern kernels, to avoid information leakage, viewing the kernel-mode stack of a process or thread requires root access as a security requirement.
$ sudo cat /proc/3085/stack
[<0>] do_wait+0x1cb/0x230
[<0>] kernel_wait4+0x89/0x130
[<0>] __do_sys_wait4+0x95/0xa0
[<0>] __x64_sys_wait4+0x1e/0x20
[<0>] do_syscall_64+0x5a/0x120
[<0>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
$
In the preceding output, each line represents a call frame on the stack. To help...