------- Comment From <email address hidden> 2021-06-01 09:37 EDT------- Here is a small test that doesn't require installing extra tools or building code:
echo "r:bash_readline /bin/bash:0x$(nm -D /bin/bash | awk '/T readline$/ {print $1}')" >/sys/kernel/debug/tracing/uprobe_events echo 1 >/sys/kernel/debug/tracing/events/uprobes/bash_readline/enable cat /sys/kernel/debug/tracing/trace
With the unfixed qemu you will lose your shell (provided it's bash) after step 2.
------- Comment From <email address hidden> 2021-06-01 09:37 EDT-------
Here is a small test that doesn't require installing extra tools or building code:
echo "r:bash_readline /bin/bash:0x$(nm -D /bin/bash | awk '/T readline$/ {print $1}')" >/sys/kernel/ debug/tracing/ uprobe_ events debug/tracing/ events/ uprobes/ bash_readline/ enable debug/tracing/ trace
echo 1 >/sys/kernel/
cat /sys/kernel/
With the unfixed qemu you will lose your shell (provided it's bash) after step 2.