From owner-freebsd-cloud@freebsd.org Wed Jan 20 18:54:33 2021 Return-Path: Delivered-To: freebsd-cloud@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 E0F2E4FEFA9 for ; Wed, 20 Jan 2021 18:54:33 +0000 (UTC) (envelope-from 010001772125f524-74bf0b19-cd7c-4091-b0bb-e9fcb9ededdf-000000@amazonses.com) Received: from a8-26.smtp-out.amazonses.com (a8-26.smtp-out.amazonses.com [54.240.8.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DLZSn0p21z3hjM for ; Wed, 20 Jan 2021 18:54:32 +0000 (UTC) (envelope-from 010001772125f524-74bf0b19-cd7c-4091-b0bb-e9fcb9ededdf-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ae7m2yrxjw65l2cqdpjxuucyrvy564tn; d=tarsnap.com; t=1611168871; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=wqewkETTzHCs9Le5YH3JpsPHXDK0W4nBygPeBLQrHIQ=; b=mJFqH8AdOk2DGBsPmuNeIo3mDMb48+Ixt4a2Ul3vbiyNMJjupR+kWspebvS3pS1v 8qJ3m3i3P1rEyT6tDhAnvPhk/Id1Fd+z38jYSxXUB64ziH1tiDr3xXPpRf+Rphns07Y QA6FDZJmWd3q4PY6GlpuhhRjuu7E5FcbWgoY0N10= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1611168871; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=wqewkETTzHCs9Le5YH3JpsPHXDK0W4nBygPeBLQrHIQ=; b=Sf08fgq+0l4uGZrboYMs9a6cR8qHIp3k9Rcdh6roZoPrAYbNDWhUJMBoglXQNRAC o++HRacjWjZdpekeYBt2ssTFgS3rk2rV+OQkBUI1p2k9hj11PExe3GHMiENeySiIkV+ XZTCuxnPuHH/YA+0A7zQcNCJlg53bc8PWuiG6n5s= Subject: Re: FreeBSD on AWS Graviton (t4g) To: Rafal Lukawiecki Cc: freebsd-cloud@freebsd.org References: <01000176816d1718-26a08928-e08c-466a-8550-552bc746d81f-000000@email.amazonses.com> <30C35A29-17E2-481D-A335-5B1FBB9FB22C@rafal.net> From: Colin Percival Message-ID: <010001772125f524-74bf0b19-cd7c-4091-b0bb-e9fcb9ededdf-000000@email.amazonses.com> Date: Wed, 20 Jan 2021 18:54:31 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <30C35A29-17E2-481D-A335-5B1FBB9FB22C@rafal.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SES-Outgoing: 2021.01.20-54.240.8.26 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-Rspamd-Queue-Id: 4DLZSn0p21z3hjM X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tarsnap.com header.s=ae7m2yrxjw65l2cqdpjxuucyrvy564tn header.b=mJFqH8Ad; dkim=pass header.d=amazonses.com header.s=224i4yxa5dv7c2xz3womw6peuasteono header.b=Sf08fgq+; dmarc=pass (policy=none) header.from=tarsnap.com; spf=pass (mx1.freebsd.org: domain of 010001772125f524-74bf0b19-cd7c-4091-b0bb-e9fcb9ededdf-000000@amazonses.com designates 54.240.8.26 as permitted sender) smtp.mailfrom=010001772125f524-74bf0b19-cd7c-4091-b0bb-e9fcb9ededdf-000000@amazonses.com X-Spamd-Result: default: False [-1.20 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[tarsnap.com:s=ae7m2yrxjw65l2cqdpjxuucyrvy564tn,amazonses.com:s=224i4yxa5dv7c2xz3womw6peuasteono]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:54.240.0.0/18]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(0.00)[54.240.8.26:from]; SPAMHAUS_ZRD(0.00)[54.240.8.26:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[tarsnap.com:+,amazonses.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[54.240.8.26:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[tarsnap.com,none]; FORGED_SENDER(0.30)[cperciva@tarsnap.com,010001772125f524-74bf0b19-cd7c-4091-b0bb-e9fcb9ededdf-000000@amazonses.com]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[54.240.8.26:from]; ASN(0.00)[asn:14618, ipnet:54.240.8.0/21, country:US]; FROM_NEQ_ENVFROM(0.00)[cperciva@tarsnap.com,010001772125f524-74bf0b19-cd7c-4091-b0bb-e9fcb9ededdf-000000@amazonses.com]; MAILMAN_DEST(0.00)[freebsd-cloud] X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2021 18:54:33 -0000 On 1/20/21 5:12 AM, Rafal Lukawiecki wrote: > Colin, I am only slowly realising the impact of the points you have made. :) > >>> On 20 Dec 2020, at 18:33, Colin Percival >> > wrote: >>> >>> * The EC2 API "shutdown" / "reboot" message is sent via a pl061 GPIO device >>> and we're dropping it on the floor; consequently "reboot" does nothing at >>> all, while "shutdown" does nothing until EC2 times out and does a hard >>> poweroff (without filesystems being unmounted etc). > > I have noticed a bunch of artefacts left over from unclean shutdowns, which I > assume are caused by the above not calling the shutdown rc.d scripts. Do you > know if this is likely to get implemented any time soon, or are you aware of a > simple workaround? If you run 'shutdown' from inside the EC2 instance it should work fine. Just don't use the EC2 API to stop the ARM instances. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid