Message ID | 20230802154831.2147855-19-ardb@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp584374vqx; Wed, 2 Aug 2023 09:40:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHymG4v1eKh9Ftks8lxQk5ObNGPr8w6sOS8eUFk+3J0NgwEzsihLFOKot/miQn8Ns1g5jiI X-Received: by 2002:a05:6a00:983:b0:686:25fe:d575 with SMTP id u3-20020a056a00098300b0068625fed575mr19397505pfg.11.1690994412815; Wed, 02 Aug 2023 09:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690994412; cv=none; d=google.com; s=arc-20160816; b=wWoUVamBQNnQgxugA/ylqA+XnQv0Zh75Vz1ANpV7ctUysyjA6D9XLOI4GX0l5NHG3Z R6HflbL4l1bd7xv1u6q8bTwUaYTy6RcdVjhSNyjAojSIsLPWSz0oYKoKdgr1tvQqhxD4 OMehPPHGnnbVT9gw9B8hzji1f4YVWkhDM8roERU2cn1MDMiyIDtbfSihjNEtmn2ta/0f RMcvgKKUVWLPndGXlgPzU/9JcgDc7lKb6rOsohqAbLjgvZJk8ijCon2wc9yGhM8za2WA 8txX2yGB8qlTrtsyXi/obyzh/O1f+4H+pS+beo7ml3HfKPhVApYGJ77CbGSo0wJIGDRN YJYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DB8oL3jXiN9e2dZTst6BBU9MW8a+CwDXQ55OFaZVfRU=; fh=UoPnrMfWVKGOqsML3Cwqzr4dYAyNRBpPmY/ITnBmPi0=; b=aC2vEc2yPAIq/p+FSRa1QVDvANELfc5i0d9cG6szXdq16i/PlXoTNIVqNt0RCBsqbD uxni7hbQgs3uQPayC1+wKlNgC9XQvJqQGO/NpBqg1+M8REVx8kQSUpMR2ouOGWt0hl6c v3B1aDt9LpLEWAIEQ9I3W2FGlUkzgTaGK0vTL/XaynJhjMzaf98ysGaY9I0GlfE6lFE2 fEWo43eB6jwTBXoUCWN3XpaEtJDJap4CZ6lOxDY9ugdHLK+2gCgWHvBv6lT4qw38cm81 5jskBc0HPL7/zYkbxNlY/54RUVBeTarilnYeA0zOeVFp7Ph79pR5Ljehv3ct5hhqZ3kC QU/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CYfnDuhd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt17-20020a056a00439100b0068269b1ebcbsi9604483pfb.394.2023.08.02.09.39.58; Wed, 02 Aug 2023 09:40:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CYfnDuhd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234206AbjHBPvx (ORCPT <rfc822;maxi.paulin@gmail.com> + 99 others); Wed, 2 Aug 2023 11:51:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235437AbjHBPvX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 2 Aug 2023 11:51:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E1C3421F; Wed, 2 Aug 2023 08:50:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1B8DA619EC; Wed, 2 Aug 2023 15:50:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E766C433CA; Wed, 2 Aug 2023 15:50:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690991410; bh=TDhagb7/1BjVNI9fsBOdvguiTH1+pJKnlE7Km5AKGt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CYfnDuhdTaU1r3SBZNBoU83bXfBGTj46jVbQYhzaMOLkCsfgmM9K8QK5480YFebBB t1jGz9h1g7SvB5P9kgRR2UYZRkyt/xS/fpW+i8IoI+Ru0ZiIw9Vy1bAecv54oEpfrM Z7woLWW68K2D2d2yrzFbtUyfY6cawfFU2kphTSOcgdJo/1fFemVNHnYWqwW9rEe2xv AuzurtuYCOijnYPC1xz9aDsOpIbSPVxFutcuL4eWWQ/+rKp0v3XvLIasjEdxePqtIt sO/97LBTYfD16T5Ommj3VkDJrj49XDmO9DGz2x+Q2I1MX3j2+oKPXLI4oLTmQtw4pS KdXKLZZ5rjEsw== From: Ard Biesheuvel <ardb@kernel.org> To: linux-efi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel <ardb@kernel.org>, Evgeniy Baskov <baskov@ispras.ru>, Borislav Petkov <bp@alien8.de>, Andy Lutomirski <luto@kernel.org>, Dave Hansen <dave.hansen@linux.intel.com>, Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Thomas Gleixner <tglx@linutronix.de>, Alexey Khoroshilov <khoroshilov@ispras.ru>, Peter Jones <pjones@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>, Dave Young <dyoung@redhat.com>, Mario Limonciello <mario.limonciello@amd.com>, Kees Cook <keescook@chromium.org>, Tom Lendacky <thomas.lendacky@amd.com>, "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>, Linus Torvalds <torvalds@linux-foundation.org>, Joerg Roedel <jroedel@suse.de> Subject: [PATCH v8 18/23] decompress: Use 8 byte alignment Date: Wed, 2 Aug 2023 17:48:26 +0200 Message-Id: <20230802154831.2147855-19-ardb@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230802154831.2147855-1-ardb@kernel.org> References: <20230802154831.2147855-1-ardb@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=737; i=ardb@kernel.org; h=from:subject; bh=TDhagb7/1BjVNI9fsBOdvguiTH1+pJKnlE7Km5AKGt0=; b=owGbwMvMwCFmkMcZplerG8N4Wi2JIeVU1QnH4HPMVjN2iPOzhUuqy3Wvr7hRdEN69SXmiLqDH FP5A+50lLIwiHEwyIopsgjM/vtu5+mJUrXOs2Rh5rAygQxh4OIUgIkc3sDwz2Ddj8yuuZ1c94/0 HA1Y5egZF/qpOX8Ot110RVqdaM+0XIb/qasupC8+6Rvskfjjf35qZS3Xui7dm1O+O9zdq7avuf8 zNwA= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773136157625443062 X-GMAIL-MSGID: 1773136157625443062 |
Series |
efi/x86: Avoid bare metal decompressor during EFI boot
|
|
Commit Message
Ard Biesheuvel
Aug. 2, 2023, 3:48 p.m. UTC
The ZSTD decompressor requires malloc() allocations to be 8 byte
aligned, so ensure that this the case.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
include/linux/decompress/mm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/decompress/mm.h b/include/linux/decompress/mm.h index 9192986b1a731323..ac862422df158bef 100644 --- a/include/linux/decompress/mm.h +++ b/include/linux/decompress/mm.h @@ -48,7 +48,7 @@ MALLOC_VISIBLE void *malloc(int size) if (!malloc_ptr) malloc_ptr = free_mem_ptr; - malloc_ptr = (malloc_ptr + 3) & ~3; /* Align */ + malloc_ptr = (malloc_ptr + 7) & ~7; /* Align */ p = (void *)malloc_ptr; malloc_ptr += size;