I wrote:
> I'm going to generate a smaller test program showing this and file
> a bug report at Red Hat.
Filed as
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=246509
in case anyone wants to track it. (I suspect the Red Hat kernel guys
will just bounce it upstream, but that's their call not mine.)
> In the mean time, it looks like we should assume EIDRM means EINVAL
> on Linux, because AFAICS there is not actually anyplace in that code
> that should return EIDRM; their data structure doesn't really have
> any state that would justify returning such a code.
Patch for this committed in all active branches.
regards, tom lane