NetBSD Problem Report #52279

From john@tim.nextvr.com  Wed Jun  7 00:20:48 2017
Return-Path: <john@tim.nextvr.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F11CF7A1FE
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  7 Jun 2017 00:20:47 +0000 (UTC)
Message-Id: <201706062306.v56N6r95010474@tim.nextvr.com>
Date: Tue, 6 Jun 2017 23:06:53 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: Boot hangs with recent -current and security/cyrus-saslauthd
X-Send-Pr-Version: 3.95

>Number:         52279
>Category:       pkg
>Synopsis:       NetBSD cannot go multiuser with saslauthd launched from rc.conf
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 07 00:25:00 +0000 2017
>Originator:     john@ziaspace.com
>Release:        NetBSD 7.99.75
>Organization:

>Environment:


System: NetBSD tim.nextvr.com 7.99.75 NetBSD 7.99.75 (GENERIC) #0: Wed May 31 05:05:38 UTC 2017 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

I've noticed now on a few machines, both amd64 and evbarm, that updating
to -current within the last week or so has resulted in a system which
boots but which hangs before getty launches, meaning no console login and
no ssh login even though sshd is already running.

I didn't have time to really diagnose the issue, but I did narrow it down
to saslauthd. It was getting launched from /etc/rc.conf with:

saslauthd=YES
saslauthd_flags="-a getpwent"

Setting it to NO lets the system get all the way to multiuser.

I don't know if this is related to -current or to the update to
cyrus-saslauthd at the end of April, 2017.

>How-To-Repeat:

Install pkgsrc/security/cyrus-saslauthd with PKG_RCD_SCRIPTS=YES
echo 'saslauthd=YES' >> /etc/rc.conf
echo 'saslauthd_flags="-a getpwent"' >> /etc/rc.conf
reboot
>Fix:

None known besides not starting saslauthd via rc.conf.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.