This change merges devctl notification for userland coredumps.
Notify devd(8) when a process crashed. This change implements a notification (via devctl) to userland when the kernel produces coredumps after a process has crashed. devd can then run a specific command to produce a human readable crash report. The command is most usually a helper that runs gdb/lldb commands on the file/coredump pair. It's possible to use this functionality for implementing automatic generation of crash reports. devd(8) will be notified of the full path of the binary that crashed and the full path of the coredump file.
Sanitise the coredump file names sent to devd. While there, add a sysctl to turn this feature off as requested by kib@.
Remove a printf and an strlen() from the coredump code.
Restore the data array in coredump(), but use a different style to calculate the length.
Remove check against NULL after M_WAITOK.
Keep a reference on the coredump vnode for vn_fullpath() call. Do it by moving vn_close() after the point where notification is sent.
Disable coredump_devctl because it could lead to leaking paths to jails.