The linux kernel itself appears to never generate this error message.
The POSIX standard says:
Bad message. During a read( ), getmsg( ), getpmsg( ), or ioctl( ) I_RECVFD request to a STREAMS device, a message arrived at the head of the STREAM that is inappropriate for the function receiving the message. read( ) Message waiting to be read on a STREAM is not a data message.
No page links to EBADMSG.
lib/blame.php:177: Warning: Invalid argument supplied for foreach()
lib/plugin/WlugLicense.php:99: Warning: Invalid argument supplied for foreach()