[Bug 264599] blacklistd: message too short/no message errors

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 10 Jun 2022 17:20:35 UTC

            Bug ID: 264599
           Summary: blacklistd: message too short/no message errors
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: jlduran@gmail.com

After upgrading a public-facing SSH server, error messages have started to spam
dmesg logs:

blacklistd: message too short 144
blacklistd: no message (No such file or directory)

Filing this as a bug to track it.

In the meantime, I have done this horrible thing:

--- crypto/openssh/auth.c
+++ crypto/openssh/auth.c
@@ -555,7 +555,7 @@ getpwnamallow(struct ssh *ssh, const char *user)
        if (pw == NULL) {
-               BLACKLIST_NOTIFY(ssh, BLACKLIST_BAD_USER, user);
+               BLACKLIST_NOTIFY(ssh, BLACKLIST_BAD_USER, "user");
                logit("Invalid user %.100s from %.100s port %d",
                    user, ssh_remote_ipaddr(ssh), ssh_remote_port(ssh));

You are receiving this mail because:
You are the assignee for the bug.