From nobody Sat Nov 26 19:17:23 2022 X-Original-To: freebsd-stable@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 4NKM233vvBz4hrbX for ; Sat, 26 Nov 2022 19:17:47 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (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 4NKM2248F8z4FXq for ; Sat, 26 Nov 2022 19:17:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=F7lFBgEx; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2a00:1450:4864:20::62a) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-ej1-x62a.google.com with SMTP id vv4so17050380ejc.2 for ; Sat, 26 Nov 2022 11:17:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=w1llOuScL+8eqpZ+mVtacXZLyymjA+yNaTFSrqDnvOw=; b=F7lFBgExRNrsG9eI8PMZCOepJK9Wpkrt8Wj1hxtu8N1ny/pCENui9OWVborQUv5TgT QJY9bTZ51WM+7x+ozrQ0GKtUTQjjZIEqh+lVaOeiH7K3HYgOOh2d3laxYuV/REmyOk57 nqqhD1UbtH2V46sLuN5KjXiwUvJalAqPkYsP1k1Cq4TFTtuwMaqYqfetkt2s6ILV7Tn2 BoOo0oKdav/2gymLcmc4s1zRmWvD5zjxeHNblboTpr/cw+o/DEvRT2vLOAcG7JjToTgB ijRcQ7IK0lw49aKpYeJ97ncSM6GV7r6OqYZJRPPuD85KmmjsRUqXCR8zQAINav3T34oR thzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=w1llOuScL+8eqpZ+mVtacXZLyymjA+yNaTFSrqDnvOw=; b=z8lB3KVqtcUR+UnN282aOz6J6z85FZWdQqTXiKq1cxt+wwwm1nvN7i/11w+UnhmhYe nyUcawYO4IjdIN5dRrWXvt72U7f3n7dJZy9wrjvc4kIcGxruhe1jOLeKi/qYF8GOVigb +QvqevwtgeqT7qUukA4q3prxFjUpd9N8E+E+Xc2HJkBjMpe7b1nwEIERJUbagw/pK9QE zSBfUbg2m/KDDPXihuZPAg7y7zAt3QDuKbWiTJRqSkaKYZO1tHt7nlN0GPtbfyANiUxb qDL4ildX3ar0GmOnLdXeWjfF51rT/z4HWSeKvZgUfNR9HfY1UTXJanrvOw16Ej6GZkiC AYSA== X-Gm-Message-State: ANoB5pmiMq+2aKRW6kOhJlXCxLwbsEZrtKJCpjcpfEmvkMbW4PSSQTsI 0XiLJYiMj2Z0FG7EE2TPBKEllt31VvisjOaiD6DUww3e4OA= X-Google-Smtp-Source: AA0mqf4WtZJ1VufaA5nUPdsmKSKQ9cMisRA0a55X2P07mYxNvFCmk44UoZJ29gRwVbsqbWkg7SNqfpHf10us2H09X0I= X-Received: by 2002:a17:906:f84d:b0:7b9:631b:7dfb with SMTP id ks13-20020a170906f84d00b007b9631b7dfbmr18360762ejb.32.1669490264607; Sat, 26 Nov 2022 11:17:44 -0800 (PST) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Sat, 26 Nov 2022 12:17:23 -0700 Message-ID: Subject: Re: savecore: operation not permitted To: FreeBSD-STABLE Mailing List Content-Type: multipart/alternative; boundary="0000000000002da9d305ee647e18" X-Spamd-Result: default: False [-2.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.987]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62a:from]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_SPF_NA(0.00)[no SPF record]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4NKM2248F8z4FXq X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --0000000000002da9d305ee647e18 Content-Type: text/plain; charset="UTF-8" On Sat, Nov 26, 2022, 11:19 AM void wrote: > On 13-stable (n253148), am seeing in the console at startup > > savecore[1415]: /dev/ada0s1b: Operation not permitted > Writing crash summary to /var/crash/core.txt.3. > > It's enabled in rc.conf: > > # sysrc savecore_enable > savecore_enable: YES > > # dumpon -l > ada0s1b > > What's broken? > What's your secure level? Can you run the command by hand after boot? (Usually on modern systems you don't swap right away and have time for a test like that). Trying to see if this is prohibited by secure level or other MAC, vs sone snafu that leads to /var/crash not being writable. All this assumes this isn't inside a jail... Warner > tia, > -- > > --0000000000002da9d305ee647e18 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Nov 26, 2022, 11:19 AM void <void@f-m.fm> wrote:
On 13-stable (n253148), am seeing in the console at startup

savecore[1415]: /dev/ada0s1b: Operation not permitted
Writing crash summary to /var/crash/core.txt.3.

It's enabled in rc.conf:

# sysrc savecore_enable
savecore_enable: YES

# dumpon -l
ada0s1b

What's broken?

=

What's your secure level?= Can you run the command by hand after boot? (Usually on modern systems you= don't swap right away and have time for a test like that).

Trying to see if this is prohibited= by secure level or other MAC, vs sone snafu that leads to /var/crash not b= eing writable.

All this = assumes this isn't inside a jail...

Warner
tia,
--

--0000000000002da9d305ee647e18--