From nobody Sun Nov 27 11:23:43 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 4NKmSq08Xlz4hcKT for ; Sun, 27 Nov 2022 11:23:55 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NKmSp3gKYz4QkZ for ; Sun, 27 Nov 2022 11:23:54 +0000 (UTC) (envelope-from david@catwhisker.org) Authentication-Results: mx1.freebsd.org; none Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.16.1/8.15.2) with ESMTP id 2ARBNiPi066890; Sun, 27 Nov 2022 11:23:44 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.16.1/8.16.1/Submit) id 2ARBNhgG066889; Sun, 27 Nov 2022 03:23:43 -0800 (PST) (envelope-from david) Date: Sun, 27 Nov 2022 03:23:43 -0800 From: David Wolfskill To: Jonathan Vasquez Cc: void@f-m.fm, freebsd-stable@freebsd.org Subject: Re: savecore: operation not permitted Message-ID: Mail-Followup-To: David Wolfskill , Jonathan Vasquez , void@f-m.fm, freebsd-stable@freebsd.org References: <_nTojcbkVMksWqsbOXlWk4Vktpu7EU7wJRDP3NjXeCTbrs7GCiAt6Ubb34v-3-1vT8vKCqWvPXYlM8iIeeX8pawVT6JwlKfD2jJLsm3TZMg=@xyinn.org> 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 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jP4+lvZQEFAr1e0c" Content-Disposition: inline In-Reply-To: <_nTojcbkVMksWqsbOXlWk4Vktpu7EU7wJRDP3NjXeCTbrs7GCiAt6Ubb34v-3-1vT8vKCqWvPXYlM8iIeeX8pawVT6JwlKfD2jJLsm3TZMg=@xyinn.org> X-Rspamd-Queue-Id: 4NKmSp3gKYz4QkZ X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --jP4+lvZQEFAr1e0c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 27, 2022 at 05:48:13AM +0000, Jonathan Vasquez wrote: > Make sure you aren't using an encrypted swap (i.e if you have the .eli ex= tension for your swap entry in /etc/fstab, then it's being encrypted). That= was the issue I had, it makes sense that you can't get the dumped data if = the swap is being re-encrypted on every boot. > .... For this use case (desire to be able to get crash dumps while having swap encrypted), I find that adding the "late" attribute to the "swap" entry in /etc/fstab is useful, thus: g1-51(12.4-S)[1] grep swap /etc/fstab /dev/ada0s4b.eli none swap sw,late 0 0 (Thta is, of course, assuming that one uses fstab to control the swap allocation. If not, arranging to perform the allocation as part of execution of /etc/rc.d/swaplate -- which is what the "late" attribute accomplishes -- should work for you.) I have used the above technique successfully for stable/12, stable/13, and head (current/14). Peace, david --=20 David H. Wolfskill david@catwhisker.org "attempts made by certain countries to rewrite and reshape world history are becoming increasingly aggressive, ultimately and obviously seeking to divide our society, take away our guiding lines and eventually weaken Russia." -- V. Putin, obviously referring to his own efforts See https://www.catwhisker.org/~david/publickey.gpg for my public key. --jP4+lvZQEFAr1e0c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQSr0Kzv+UJRY3wfOii0+6PfV4Ix1AUCY4NIv18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QUJE MEFDRUZGOTQyNTE2MzdDMUYzQTI4QjRGQkEzREY1NzgyMzFENAAKCRC0+6PfV4Ix 1GaGAQD2CBCckDWUqsbwxyX3WRQ7UO/bhQg7XdqLRDHHr8VJTQEA1Fw58VZrvBQD bKxSfjxdn6p8pRrKLci34GJToXbuiwQ= =A4s3 -----END PGP SIGNATURE----- --jP4+lvZQEFAr1e0c--