Message ID | 20230602101313.3557775-16-ardb@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp926557vqr; Fri, 2 Jun 2023 03:32:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+nayJQEw2S8oRAgV87sh9WtdYDkbn4wjfLQZi4osiyC0QVPSS66S2o36O6H+ZiM4/T51Q X-Received: by 2002:a05:6a00:1a88:b0:643:8496:e41c with SMTP id e8-20020a056a001a8800b006438496e41cmr14423103pfv.20.1685701961830; Fri, 02 Jun 2023 03:32:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685701961; cv=none; d=google.com; s=arc-20160816; b=VLXTDTx1fb2hLkqbgqOxADRmwS6U0sfUptZ0ZD9tyj1trYVpdXI1TZpB7dIIATPAgB JKDhPS1c/p53k9q3DyJv3zqZOsW53dHPYDCM7LB5AfPO/PyM8+G6LEGdbSGybwfJ8PgU /8q2xIKZd35U9ZYcwtBFlKeEPUSqpR085XJzv5wRvp9W4wpwqFXMJ9mQ/pwt9WeNLvYx n15uBJVc+3rPjntISBnfQ7worc3yRcAnsb/mk9RtThfe0EVrtg0z2NMDDmK8cb9AX8E8 TVUIjMuczKBnR2/EO/8Oh6Cip2HpaHEKjf/tahd6s1x7p7U77BRP2FjSiG4o54JrigAT SpFA== 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=; b=dskHVcfZbpqp4nZyo5aXoYY4fe/csqAb1QJLFK8TEgyg8jpgdVcUO6qvmSn5/iHq+V G+2k56qe/6sVAJcSH1PtXXhiwHvlXmtCcjfXx6Xiqt8OyCi14yL7Xj1iBklBCAvHXQTQ VfWcgxzgUmc/Esswuxs6XwFGlKNHEuyN+P0KvlFwjYIIHRs/0LFyYcshQRMZ+VkabhYs UiqdLO8kjgHFrVggCH3o7K/Keubvn1SjtgEddS7Yl3zDbjNSvuzzhqvjRdEOcYL/mD+R L0h8jJguEnVP6F3zGrfsCgz5Enwbn3DzPGLTfeHByeyJLGxsM3a6GDXprVFhHq/8ge/v AShA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JDWx2x8N; 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 76-20020a63004f000000b0053ef51d3fa8si788130pga.401.2023.06.02.03.32.27; Fri, 02 Jun 2023 03:32:41 -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=JDWx2x8N; 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 S235564AbjFBKYd (ORCPT <rfc822;limurcpp@gmail.com> + 99 others); Fri, 2 Jun 2023 06:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235182AbjFBKXq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 2 Jun 2023 06:23:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F11E10E4; Fri, 2 Jun 2023 03:23:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A89A664E63; Fri, 2 Jun 2023 10:23:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1853FC4339E; Fri, 2 Jun 2023 10:23:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685701393; bh=TDhagb7/1BjVNI9fsBOdvguiTH1+pJKnlE7Km5AKGt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JDWx2x8NS3EXWONbS4ao2cLywwjBkOxSVub0aB4TdyV8RL9twr4aztr/IY/zCAljA K2quBW9clDp8TUhlmV9LD7TzM4L//8fZFYHZxvLElvz+tgnqe5I6lJvMhD7jblttSS 1N1vZZRsCxgUl/E46/JyddBynvcCdonJFVvlc+uuAJM52e6vBet/2QZaRFHfx+Cut9 kDEFCXx3l8l31o6QLZXmYpe6EdwwX2LiIBnkKJ+Ez4/OIGufEmZEr10tw3rXyWY14F UCzGLja/1kx6eg7oMFgPqx5tOR1ZsTRI6M8pmsxCLN/hL0tsJdjZm0+enwFpL9tMHp MLatLcXPzWj8Q== 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 v4 15/21] decompress: Use 8 byte alignment Date: Fri, 2 Jun 2023 12:13:07 +0200 Message-Id: <20230602101313.3557775-16-ardb@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230602101313.3557775-1-ardb@kernel.org> References: <20230602101313.3557775-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=owGbwMvMwCFmkMcZplerG8N4Wi2JIaXywCbH4HPMVjN2iPOzhUuqy3Wvr7hRdEN69SXmiLqDH FP5A+50lLIwiHEwyIopsgjM/vtu5+mJUrXOs2Rh5rAygQxh4OIUgIlE32b4pxNVkM2cIBzz1En+ xx4jBomCA/ICNzRFHvntseObOCV2CyPD4fyFE/jqUv6/lGutyexOcKy+msrx/7ZPzWwdR2abMxq sAA== X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767586620589005410?= X-GMAIL-MSGID: =?utf-8?q?1767586620589005410?= |
Series |
efi/x86: Avoid bare metal decompressor during EFI boot
|
|
Commit Message
Ard Biesheuvel
June 2, 2023, 10:13 a.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;