https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90673
Kees Cook <kees at outflux dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kees at outflux dot net
--- Comment #5 from Kees Cook <kees at outflux dot net> ---
From the linked code:
missing = copy_from_user(dbg_buff, buf, sizeof(buf));
dbg_buff is a global variable -- is writing to it thread safe?
sizeof(buf) is 8. (it's a pointer not an array), so that seems the wrong size?
I bet the error message for __bad_copy_to is busted and it really means
__bad_copy_from.