From patchwork Tue Jul 16 20:29:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Becker X-Patchwork-Id: 1961314 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WNrJr3Wntz20Ct for ; Wed, 17 Jul 2024 06:29:31 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sTonY-0002TT-De; Tue, 16 Jul 2024 20:29:20 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sTonX-0002TF-IA for kernel-team@lists.ubuntu.com; Tue, 16 Jul 2024 20:29:19 +0000 Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 9FB3E4107F for ; Tue, 16 Jul 2024 20:29:18 +0000 (UTC) Received: by mail-ot1-f72.google.com with SMTP id 46e09a7af769-703775b7dbeso6297574a34.1 for ; Tue, 16 Jul 2024 13:29:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721161757; x=1721766557; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JKMIzYj48N5POV+Jw5F2ENMipUw7XC1c8deaS7LXGZY=; b=FQtjLnRbXZ5E0/GLVZM3Ro0o6CQnc7p3qpjKFtysJ02u7AIJw3foeQejhsA+M54/a8 62ssYLRxWaFVUc//FZ9VlTQKGOsiWq29ji/bMSCD7VQ3bmMtzFj8MYXcH039Tp5Q2iu0 7bxIVTmiAIXUXkIs3M4Z3kWgTDRAnjzuhPOCjuqH1GT4DVprtvQj+0PUcrp33xr5Qmr4 /UiRSyqDT+Piah2hv7QPYGNqzsy1HnyxyCKVyf8IIIQ3jqtzOIFPH1fAG+mq1Fn2rTzP iqccV7ZAsL7EyGqkkabTbTZuOqEVSzsKlDguEpkvY1wjxQwazG/VLPe99uBFeKZIG5rm WRZw== X-Gm-Message-State: AOJu0YxlPs2Ysl9X0KeI7z5hUMA9iVTzQAFw4e84E9dMKsdjLz/wjbEn cfew214P6qxeDfHAeMnfjLyoKR1rp3tBpsW4QFAODRELSSMIb0FlnGZiNJ6dw+kaERBwRSJdFrd XLFCQITMtE1Xrr8bOqU3wkpb1BAwG2xw6SXmkRe3TXhHe8/WIlZ9Csi+W6avztQKVJVpVy2tCep tJJtwEPmqrKQ== X-Received: by 2002:a05:6830:6589:b0:703:6311:7798 with SMTP id 46e09a7af769-708d991d0d6mr3831200a34.5.1721161757291; Tue, 16 Jul 2024 13:29:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOaY/hN3HoeXO7y1giT/uJ1jdu1qy3QLqxCY7ULkkpGQ09c91WaEHA72UnKmbegoGLsmLlrA== X-Received: by 2002:a05:6830:6589:b0:703:6311:7798 with SMTP id 46e09a7af769-708d991d0d6mr3831188a34.5.1721161756894; Tue, 16 Jul 2024 13:29:16 -0700 (PDT) Received: from localhost.localdomain ([72.75.204.92]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a160ba801bsm327423985a.21.2024.07.16.13.29.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 13:29:16 -0700 (PDT) From: Kevin Becker To: kernel-team@lists.ubuntu.com Subject: [SRU][N][PATCH 0/1] UBUNTU: [Config]: Enable CONFIG_KEXEC_IMAGE_VERIFY_SIG on arm64 Date: Tue, 16 Jul 2024 16:29:12 -0400 Message-ID: <20240716202914.1927239-1-kevin.becker@canonical.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2033007 [Impact] The kdump service operates by utilizing the kexec_file_load system call, which loads a new kernel image intended for subsequent execution. However, this process encounters a problem on ARM64 with Secure Boot when CONFIG_KEXEC_IMAGE_VERIFY_SIG option isn't enabled to facilitate signature verification. [Fix] Enabling the CONFIG_KEXEC_IMAGE_VERIFY_SIG option is necessary. [Test Plan] 1. Set up a VM with UEFI secure boot and enabled kernel lockdown on ARM64 2. Install kdump-tools: 'apt install linux-crashdump' 3. Reboot and verify kdump status with 'kdump-config show' 4. Check the log using 'systemctl status kdump-tools' [Where problems could occur] The problem is specific to kexec image signature verification on ARM64. This change impacts only the ARM64 kexec_file_load system call. Kevin Becker (1): UBUNTU: [Config]: Enable CONFIG_KEXEC_IMAGE_VERIFY_SIG on arm64 debian.master/config/annotations | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Noah Wager Acked-by: Paolo Pisati