I'm thinking about adding a mode where the kernel doesn't actually write out a coredump but instead just uses the socket we'll add as a synchronization mechanism (see an earlier discussion with @jann). The userpace coredump server would use SO_PEERPIDFD to get a pidfd for the crashing process and the kernel would wait for it to tell it to finish (closing the socket).
Userpace would then be able to generate its own coredump based on /proc/<PID>. I wonder if @osandov could use this for drgn.
@osandov (As a side-effect this would e.g., allow to solve a problem where the kernel currently sends potentially massive amounts of zeroed data to the coredump server (a big executable that as allocated a lot of zeroed memory).)