From nobody Sun Jan 23 23:58:27 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 73794196877A for ; Sun, 23 Jan 2022 23:58:39 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ua1-x932.google.com (mail-ua1-x932.google.com [IPv6:2607:f8b0:4864:20::932]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jhqnp5V3lz3lpS for ; Sun, 23 Jan 2022 23:58:38 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-ua1-x932.google.com with SMTP id b16so27787835uaq.4 for ; Sun, 23 Jan 2022 15:58:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nFj+MsrS32BMYy5lHIifMDiR1PbQCF1epl53KH6sjXQ=; b=lnNeEInd6WFw8M8FA3KfCDUN33GDQ7rANX8oMmlJmahWo3QZMR+XSl4WNyjWTJib5d QwN4WPrS/3kmHcC2aJZO0GM/X8btE1KDNvKJFo9UuevciTMjwm69GFH0qjfvKSqbGWB8 rRH3AjVuMbes4b81dO/xlrLXupJqh/QLNQP/MIVL4Td3Ku/HKV+oOfCxTkdI0sFucUbf UcWybe8qfGi1QMucu5nFrmvOwejy+OWe9bzejXFGbFSmV6ubAtpCctoX5uFX2Jwp/G6X QJ+hAbtv2k3m9X62SgOUJw2K9+9YjkEOwofP3ZhQWt2b8cvENnmi8+p7+L7H81cMb590 OOeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nFj+MsrS32BMYy5lHIifMDiR1PbQCF1epl53KH6sjXQ=; b=MA8ANZpbJn3doD0rubNjOl6KZbmhzeDgHmpGwb/iRDo7wxhNeAEAMqJ1uyJRjscCmL RoPf3dz/gZny/l1E5GjUcu49PRjjQ2R51QMkg/q4QjLdtKHGKpubdIw9JWB1NfMyjG2o Op451Uc1js/zWbT3THFXG2jmVmVIlbaOZ1SkkdWO5cUytWrngJrM8f4FTsF0nhSOiGCV t0Lknd0zn4h9sKrjaefjRgwdX2KXjk9Hfnf9jeBpM8qwvLH21QIWWNOZ7TR5PMzYfEDL lPizUySIq7OHi49aB6wBx4s+FMH2fa8+nNLbXOtYKyzF0a40VixkcuOEaGDOmotHV1X6 1TOw== X-Gm-Message-State: AOAM532SUO/lXDlQNa1dtC58bugtgAy5uJYcbbLVPJO2V//w1DjILvcm YT+JB5KuLwkYmNmYSjjTF56d1IBXtjv0+fdLcucDaA== X-Google-Smtp-Source: ABdhPJwj9JmLz4cZYeJmi7VTPB42pVh6iCIf3+Ku9IZd+ymOtngUCKcUMaR47WaKi4+j7pc1eXbEJuR7oHOSQKnXNWM= X-Received: by 2002:ab0:23c1:: with SMTP id c1mr4535539uan.11.1642982317823; Sun, 23 Jan 2022 15:58:37 -0800 (PST) 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 References: <8BA9DE0C-81B4-420E-B326-7B7133EC31BA@dons.net.au> In-Reply-To: From: Warner Losh Date: Sun, 23 Jan 2022 16:58:27 -0700 Message-ID: Subject: Re: POLLHUP detected on devd socket To: Dima Panov Cc: FreeBSD Current , tech-lists , "freebsd-arm@freebsd.org" Content-Type: multipart/alternative; boundary="0000000000006d2b8105d648a136" X-Rspamd-Queue-Id: 4Jhqnp5V3lz3lpS X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=lnNeEInd; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::932) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-0.83 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; NEURAL_HAM_MEDIUM(-0.83)[-0.828]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; NEURAL_SPAM_SHORT(1.00)[1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::932:from]; MLMMJ_DEST(0.00)[freebsd-arm]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --0000000000006d2b8105d648a136 Content-Type: text/plain; charset="UTF-8" On Sun, Jan 23, 2022 at 1:07 PM Dima Panov wrote: > Moin! > > > I saw a such issue on amd64, both 13.0-RELEASE and -CURRENT. > Both hosts have zfsd enabled, and after devd die by signal 15 all other > daemons such as sshd, crond, syslogd (almost all runned daemons) stopeed by > signal 15 too. At least, as it shows by system logs. > Signal 15 is SIGTERM, which is the software signal from kill(1).... Warner > Will try to play with zfsd disabled, as suggested. > > -- > Dima. (desktop, kde, x11, office, ports-secteam)@FreeBSD team > (fluffy@FreeBSD.org, https://t.me/dima_panov) > > On Sunday, Jan 23, 2022 at 12:03 PM, tech-lists > wrote: > On Sun, Jan 23, 2022 at 04:10:40PM +1030, Daniel O'Connor wrote: > > 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. > > > I can try that, thanks for the suggestion. > > Right now I'm thinking it's tied to zfsd, since disabling that > service I've not seen the issue. > -- > J. > > --0000000000006d2b8105d648a136 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sun, Jan 23, 2022 at 1:07 PM Dima = Panov <fluffy@freebsd.org> = wrote:
3D""<= div id=3D"gmail-m_5433901728503372578CanaryBody">
Moin!

I saw a such issue on amd64, both 13.0-RELEASE a= nd -CURRENT.=C2=A0
Both hosts have zfsd enabled, and after devd d= ie by signal 15 all other daemons such as sshd, crond, syslogd (almost all = runned daemons) stopeed by signal 15 too. At least, as it shows by system l= ogs.

Signal 15 is SIGTERM= , which is the software signal from kill(1)....

Warner
=C2=A0
=
Will try to play wit= h zfsd disabled, as suggested.

--
Dima. (desktop, kde, x11, office, ports-secteam)@FreeBSD team<= /div>
(fluffy@FreeBSD.org, https://t.me/dima_panov)

=
On Sun= day, Jan 23, 2022 at 12:03 PM, tech-lists <tech-lists@zyxst.net> wrote:
=
On Sun, Jan 23, 2022 at 04:10:40PM +1030, Daniel O'Connor wrote: <= br>
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 w= ould be to hack up devd's rc.d script and run it under
ktrace and t= ry and get some clues.

I can try that, thanks for the= suggestion.

Right now I'm thinking it's tied to zfsd, sin= ce disabling that
service I've not seen the issue.
--
J.
--0000000000006d2b8105d648a136--