From nobody Sun Jan 23 05:40:40 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E8B1219788C8 for ; Sun, 23 Jan 2022 05:41:31 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (2403-5800-5200-4700-225-90ff-fe47-39b4.ip6.aussiebb.net [IPv6:2403:5800:5200:4700:225:90ff:fe47:39b4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "dons.net.au", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JhMRs07DMz4hj9 for ; Sun, 23 Jan 2022 05:41:28 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (localhost [127.0.0.1]) by midget.dons.net.au (8.17.1/8.16.1) with ESMTPS id 20N5f3Cm010409 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sun, 23 Jan 2022 16:11:15 +1030 (ACDT) (envelope-from darius@dons.net.au) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dons.net.au; s=default; t=1642916479; bh=1mswWN42ByTZdoYQKC5IeHvDNSiSGlIcN0qjuoch+wo=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=SZVjmTW41DYn9T6zEMOxY87DT6fxfz3cmpsXvGaGAdoB0t2FIsHp4UYlf5xbPS2SD nvSm2+zI/DOSRFow4Md85y6KppXpfN0cT6rSD9elGbHmHgg/b0eBRjfZYF1ORCz0cl x/QLfg+GfqkJD0XSFCmXx9ds8m75i0e9R+Zs0VRg= Received: (from mailnull@localhost) by midget.dons.net.au (8.17.1/8.16.1/Submit) id 20N5eeDn010383 for ; Sun, 23 Jan 2022 16:10:40 +1030 (ACDT) (envelope-from darius@dons.net.au) X-MIMEDefang-Relay-0ce1a11234c790b6ab6410cd70c6fdb820520472: 2403:5800:5200:4700:1d21:970e:2d9e:8d3e Received: from smtpclient.apple (2403-5800-5200-4700-1d21-970e-2d9e-8d3e.ip6.aussiebb.net [2403:5800:5200:4700:1d21:970e:2d9e:8d3e]) by 2403-5800-5200-4700-225-90ff-fe47-39b4.ip6.aussiebb.net (envelope-sender ) (MIMEDefang) with ESMTP id 20N5ee7P010377; Sun, 23 Jan 2022 16:10:40 +1030 Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Subject: Re: POLLHUP detected on devd socket From: "Daniel O'Connor" In-Reply-To: Date: Sun, 23 Jan 2022 16:10:40 +1030 Cc: freebsd-arm@freebsd.org, freebsd-current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8BA9DE0C-81B4-420E-B326-7B7133EC31BA@dons.net.au> References: To: tech-lists X-Mailer: Apple Mail (2.3693.40.0.1.81) X-Spam-Score: 0.7 () No, score=0.7 required=5.0 tests=KHOP_HELO_FCRDNS, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.5 X-Scanned-By: MIMEDefang 2.83 on 10.0.2.1 X-Rspamd-Queue-Id: 4JhMRs07DMz4hj9 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dons.net.au header.s=default header.b=SZVjmTW4; dmarc=pass (policy=quarantine) header.from=dons.net.au; spf=pass (mx1.freebsd.org: domain of darius@dons.net.au designates 2403:5800:5200:4700:225:90ff:fe47:39b4 as permitted sender) smtp.mailfrom=darius@dons.net.au X-Spamd-Result: default: False [-1.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[dons.net.au:s=default]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dons.net.au:+]; DMARC_POLICY_ALLOW(-0.50)[dons.net.au,quarantine]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:4764, ipnet:2403:5800:5000::/36, country:AU]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 23 Jan 2022, at 01:04, tech-lists wrote: > context is a usb3-booting rpi4 running main-n252544-7406ec4ea99 >=20 > I see this in /var/log/daemon.log: >=20 > Jan 22 13:24:54 redacted zfsd[886]: POLLHUP detected on devd socket. > Jan 22 13:24:54 redacted zfsd[886]: Disconnecting from devd. > Jan 22 13:24:54 redacted zfsd[886]: ConnectToDevd: Connecting to devd. > Jan 22 13:24:54 redacted zfsd[886]: Unable to connect to devd > Jan 22 13:24:54 redacted zfsd[886]: Disconnecting from devd. >=20 > When this happens, several other things happen: >=20 > 1. the sshd server dies. Already-established sessions still run, but = the server itself stops and no new ssh connections can be made. >=20 > 2. syslogd dies. so does exim, nginx, smartd, sshguard, pf >=20 > I don't know where to start looking for reasons for this. Is it > a known issue? In the meantime I've turned off zfsd as it's not > really needed in this machine's context (headless, zfs on single > disk), from what I can tell. Is it reproducible? ie can you trigger it post boot? It is very strange that devd dying would kill anything else running - I = have stopped and started it a lot while testing devd scripts and I = haven't seen anything else break. One idea would be to hack up devd's rc.d script and run it under ktrace = and try and get some clues. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum