From owner-freebsd-hackers@freebsd.org Fri Sep 13 00:12:23 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2B096DF557 for ; Fri, 13 Sep 2019 00:12:23 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Tx0Q2fXWz3wnT for ; Fri, 13 Sep 2019 00:12:22 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-io1-xd2e.google.com with SMTP id n197so59179980iod.9 for ; Thu, 12 Sep 2019 17:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=MpBGxOsjSCLfs+fLMxANL0ej09nkV50Irz/FKzuT60k=; b=fHHP1FB5uEP7t0uSRkVGnEVpLL7ENLtjFaPb9RgAUZ9nPH976cvTBbFo6r+Al9s7dh RGTq/KDb2dGhSAC6gcggylMC1TNvsCeTsgcCGicCgGtB11EwN3G5UZO/D+CcE5ukN+yN berGbwmYFVAsjbDf6oxGIhfcYdleiDS8pgd5lbkTUYLLrnjQOqwrRBrrbSMnQN+t+ttP tuiP/zNg7hJyfUteBP/scWY7h+NInP8w28KUZZfPsmmcbhuW/IXL41Q6v9PDpm3xZ+yJ Nk1fXnOkY/pTjxYrR+5y4dRMq6EKMzhfQYkKhDbiPq0mnne4DpnNCVblBg5rM5B/ZJCt nGUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=MpBGxOsjSCLfs+fLMxANL0ej09nkV50Irz/FKzuT60k=; b=tszrgzJ33F7SsAlHfCBUeQAwIKbyiXo5b9cnx96lZTz+zLCSNPU0chInvH1XBueZX7 9SEX6d49ER7lw96YNa7EjaWaUizlhQBG6sUmql7SHdETeib2Nb9c+bvw1bdyLZK1eDwK N6B/PYspfiVgYwkU9baqtG8shsRPQ6jLnGGUr7taqUZwTgIPW9tE1yxZcda2vUN/nmB5 BEfQS38M5m2D8pN8c8XoTog8Sxeit60c7ZavI1J+SBFU6Gqrqs6tRnn6gJCG17gbusEY gw70rbvv+hgrXnYY9nnuF56F2FodSj7rIGBI6I7ceeRHewSMpbU9KwuA9fa1yfZscXWq Wceg== X-Gm-Message-State: APjAAAWRisYLpyesvmRA6+faxv6n3NwcIQusGdtmRS7UljNIH70xOUD1 76p75ZYWFaEHHCWfe3+KTvoj7GIk X-Google-Smtp-Source: APXvYqxM2X9L0OnTztfHBOWjLoI4bnMce4kGu7vT+aHdHEa7UBOV4TPO8BmX+xvVZFkJPqv+7gFrCw== X-Received: by 2002:a6b:f80f:: with SMTP id o15mr5016342ioh.174.1568333540998; Thu, 12 Sep 2019 17:12:20 -0700 (PDT) Received: from raichu (toroon0560w-lp140-01-69-159-39-167.dsl.bell.ca. [69.159.39.167]) by smtp.gmail.com with ESMTPSA id a13sm16719687ioh.8.2019.09.12.17.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2019 17:12:20 -0700 (PDT) Sender: Mark Johnston Date: Thu, 12 Sep 2019 20:12:18 -0400 From: Mark Johnston To: Ryan Stone Cc: freebsd-hackers@freebsd.org Subject: Re: /etc/rc.d/dumpon runs before netdump can be configured Message-ID: <20190913001218.GH8397@raichu> References: <20190912161342.GB8397@raichu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-Rspamd-Queue-Id: 46Tx0Q2fXWz3wnT X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=fHHP1FB5; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-3.70 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[e.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.00)[ip: (-5.01), ipnet: 2607:f8b0::/32(-2.71), asn: 15169(-2.25), country: US(-0.05)]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; FREEMAIL_TO(0.00)[gmail.com]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Sep 2019 00:12:23 -0000 On Thu, Sep 12, 2019 at 02:30:58PM -0400, Ryan Stone wrote: > The POLA violation would be that kernel panics during some parts of > the boot process, like during network configuration, wouldn't be > captured. I think it would reasonable to add a dumponlate, following the pattern of mountlate and swaplate, to handle this. > On Thu, Sep 12, 2019 at 12:13 PM Mark Johnston wrote: > > > > On Thu, Sep 12, 2019 at 11:32:23AM -0400, Ryan Stone wrote: > > > Hi everyone, > > > > > > I recently tried enabling the netdump client on a system via rc.conf. > > > However, this isn't working for me because dumpon runs before netif, > > > and netdump requires the interface to have been ifconfig'ed up before > > > it will allow netdump to be enabled on an interface. > > > > > > As a result, I get this message during boot, and have to manually run > > > "service dumpon start" after boot to get netdump configured. > > > > > > dumpon: Unable to configure netdump because the interface's link is down. > > > > > > I'm not sure what the best way to clean this up is. Moving dumpon to > > > later in the boot process would be a POLA violation for people dumping > > > to disk. Perhaps we need a separate netdump_client rc.d script? > > > > What exactly is the POLA violation there? > > > > A separate rc script could be helpful for static network > > configurations. For DHCP, I don't see a good solution other than to use > > /etc/dhclient-exit-hooks; there is an example for this in the dumpon(8) > > man page.