Hi,
I just noticed that this is not completely correct. readlink() does not
append a NULL byte, so you'll probably want to make the buffer one byte
longer and either initialize it or set buf[ret] = '\0' (after the
truncation check).
Benjamin
On Thu, 2024-10-10 at 16:14 +0200, Johannes Berg wrote
From: Johannes Berg
After the execve() to disable ASLR, comm is now "exe",
which is a bit confusing. Use readlink() to get this
to the right name again.
Disable stack frame size warnings on main.o since it's
part of the initial userspace and can use larger stack.
Fixes: 68b9883cc16e ("um: Disco