I'm doing copy_to_user() from a syscall.
How can I get it to generate a segfault or sigbus on error, as if userspace was trying to access the same memory?
I'm doing copy_to_user() from a syscall.
How can I get it to generate a segfault or sigbus on error, as if userspace was trying to access the same memory?