Generating segfault from a custom syscall

Viewed 428

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?

1 Answers
Related